new games

This commit is contained in:
Sky 2023-05-31 16:50:03 -04:00
parent 0106affe5d
commit e384ef53b9
4 changed files with 56 additions and 0 deletions

Binary file not shown.

BIN
60sburgerrun/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

35
60sburgerrun/index.html Normal file
View File

@ -0,0 +1,35 @@
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XVTVBR1D5V"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XVTVBR1D5V');
</script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Achievement Unlocked</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("achievementunlocked.swf");
});
</script>
</body>
</html>

21
js/open.js Normal file
View File

@ -0,0 +1,21 @@
var url = "https://egamepass.pages.dev";
var urlObj = new window.URL(window.location.href);
document.getElementById("create").onclick = function () {
if (url.value.substring(0, 8) !== "https://" && url.value.substring(0, 7) !== "http://") {
url.value = "https://" + url.value.split("https://").pop();
} else if (url.value.substring(0, 7) == "http://") {
url.value = "https://" + url.value.split("http://").pop();
}
win = window.open();
win.document.body.style.margin = "0";
win.document.body.style.height = "100vh";
var iframe = win.document.createElement("iframe");
iframe.style.border = "none";
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.margin = "0";
iframe.referrerpolicy = "no-referrer";
iframe.allow = "fullscreen";
iframe.src = url.value;
win.document.body.appendChild(iframe);
}