Files
monkeygg2.github.io/games/flash/index.html
T
2023-08-25 13:31:04 +05:30

44 lines
1.6 KiB
HTML

<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7L02W3ZMS5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-7L02W3ZMS5');
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5648726754785335"
crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Flash Player</title>
<link id="favicon" rel="shortcut icon" type="image/png" href="/">
<script src="/global.js"></script>
</head>
<body>
<div id="ruffle" width="100%" height="100%"></div>
<script src="ruffle.js"></script>
<script>
var game = (new URLSearchParams(window.location.search)).get('game');
if (game){
document.title = (game.replace(/-/g,' ')).toLowerCase().split(' ').map(function(word) {return word[0].toUpperCase() + word.substr(1);}).join(' ');
document.querySelector('#favicon').href = `images/${game}.png`;
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(`files/${game}.swf`);
});
}
</script>
</body>
</html>