games and fixes

This commit is contained in:
sky 2024-02-28 10:24:57 -05:00
parent 332ee1a26e
commit e59e807d6e
6 changed files with 38 additions and 10 deletions

View File

@ -1,5 +1,5 @@
{
"version": "1.0.0",
"desc": "This update comes with major improvements, such as new games!",
"timestamp": "1707606758"
"version": "1.0.1",
"desc": "This update comes with 10 new games and a few fixes! (courtesy of astra!!)",
"timestamp": "1709126721"
}

View File

@ -1453,5 +1453,10 @@
"name": "Thumb Fighter",
"directory": "thumbfighter",
"image": "thumbfighter.png"
},
{
"name": "The Enchanted Cave 2",
"directory": "enchantedcave2",
"image": "icon.png"
}
]

View File

@ -116,6 +116,8 @@
</div></a
>
<p id="message">games loading..</p>
<p id="message">games not loading? click ctrl + shift + r</p>
<button id="message" onclick='$.getJSON("/data/games.json", function (data) {loadGames(data)})'>Games not loading? Click here.</button>
</div>
<div id="adcontainer">
<script type="text/javascript" src="//snailthreatenedinvited.com/f9/78/06/f97806fd0f338057a67abb4e5e710970.js"></script>
@ -133,13 +135,6 @@
</footer>
<script>
document.addEventListener("DOMContentLoaded", function () {
if (Math.random() < 0.1 && localStorage.getItem("selenite.adblock") != "true") {
let popunder = document.createElement("script");
popunder.src = "//snailthreatenedinvited.com/6e/cd/f3/6ecdf31757f29a5aea10c063c283af9b.js";
popunder.type = "text/javascript";
document.body.appendChild(popunder);
document.getElementById("popunder").style.display = "block";
}
const adContainers = document.querySelectorAll("[id=adcontainer]");
if (adContainers.length > 0) {
for (let i = 0; i < adContainers.length; i++) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 KiB

View File

@ -0,0 +1,28 @@
<html>
<head>
<script src="/js/all.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>The Enchanted Cave 2</title>
<style>html{background-color:#000;}</style>
</head>
<body>
<div id="ruffle" width="100%" height="100%"></div>
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<script>
window.RufflePlayer = window.RufflePlayer || {};
window.addEventListener("load", (event) => {
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
const container = document.getElementById("ruffle");
player.id = "player";
player.style.width = "100%";
player.style.height = "100%";
container.appendChild(player);
player.load("tec2.swf");
});
</script>
</body>
</html>

Binary file not shown.