Delete main.js

This commit is contained in:
James 2025-09-23 01:49:42 -07:00 committed by GitHub
parent 8950ed79a5
commit fb28ab8fd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 22 deletions

22
main.js
View File

@ -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 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';
});