Delete main.js
This commit is contained in:
parent
8950ed79a5
commit
fb28ab8fd1
22
main.js
22
main.js
|
|
@ -1,22 +0,0 @@
|
|||
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';
|
||||
});
|
||||
Loading…
Reference in New Issue