Main_Website-Oblistudios/main.js

23 lines
740 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const exploreMore = () => {
alert("Coming soon: a deep dive into the game world!");
};
const downloadDemo = () => {
window.location.href = "https://your-download-link.com"; // Replace with actual URL
};
// Optional: Set the game title dynamically
document.getElementById("game-title").textContent = "Shardbound: The Mirrors Edge";
// Replace 'obi.studios' with a unique name if needed
const namespace = 'obi.studios';
const key = 'homepage';
fetch(`https://api.countapi.xyz/hit/${namespace}/${key}`)
.then(res => res.json())
.then(data => {
document.getElementById('visitor-count').textContent = data.value;
})
.catch(() => {
document.getElementById('visitor-count').textContent = 'N/A';
});