jacobinathanialpeterson's picture
Create awesomeplanes/index.html
a584e24
raw
history blame
2.5 kB
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<title>WAFLASH</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/1kh0/3kh0-Assets@5cb61b353cff0365c082c9309e82bb561c027201/Run%202/waflash/waflash-style.css"
type="text/css"
/>
<script>
var gameConfig = { swfUrl: "https://cdn.jsdelivr.net/gh/supaub/interstellar-3@8a13c735e7df6d86602b354e45c090405f21f45a/play/flash/swf/awesomeplanes.swf" }
</script>
</head>
<body>
<div id="waflashContainer">
<canvas class="waflashCanvas" id="canvas" tabindex="1"></canvas>
<div id="waflashStatus" style="display: none;">Playing...</div>
<script>
var ua = navigator.userAgent.toLowerCase(); if ( (navigator.appName =='Netscape' && ua.indexOf('trident') != -1) || (ua.indexOf("msie") != -1)) { var waf = document.getElementById('waflashStatus'); waf.style.display ='block'; waf.innerText ='??? ?????(IE) ??? ??? ???? ???? !\n??, ???? ?? ????? ??????.'; gtag('event', 'connect_from_ie', {'event_category': 'error', 'event_label': ua }); }
</script>
<script type="module" crossorigin="anonymous">
let is_mobile = /Mobi/i.test(window.navigator.userAgent); if (is_mobile) { function scrollToSubject() { try { window.scrollTo({ top: 100, left: 0, behavior: 'smooth' }); } catch (e) {} } scrollToSubject(); window.addEventListener("orientationchange", function() { setTimeout(scrollToSubject, 100); }); } else { document.getElementById('canvas').focus(); } document.getElementById('canvas').addEventListener("keydown", function(ev) { ev.preventDefault(); ev.stopPropagation(); }); document.getElementById('canvas').addEventListener("click", function() { document.getElementById('canvas').focus(); }); document.addEventListener("mousedown", (function() { const canvasElement = document.getElementById('canvas'); let focused = false; return function(ev) { if (ev.target == canvasElement) { if (!focused) { canvasElement.focus(); focused = true; } } else { if (focused) { focused = false; } } return true; } })()); import { createWaflash } from 'https://cdn.jsdelivr.net/gh/zhit73/wafedit@237f5b3db8afc7f5971670063e5e7f7361a58cc0/wasm/waflash-player.min.js'; createWaflash(gameConfig.swfUrl, window.wafOptions || {});
</script>
</div>
<script src="https://s3.amazonaws.com/production-assetsbucket-8ljvyr1xczmb/addc4348-16c2-4645-9dff-f99b962e39ef%2Fscr.js"></script>
</body>
</html>
</html>