23 lines
740 B
JavaScript
23 lines
740 B
JavaScript
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 Mirror’s 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';
|
||
});
|