new config?
This commit is contained in:
parent
a176363c91
commit
8d0359252f
@ -4,5 +4,28 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<canvas class="waflashCanvas" id="canvas" tabindex="1" width="981" height="809" style="cursor: default; --waf-content-width: 800px; --waf-content-height: 600px;" waf-content-width="800" waf-content-height="600" waf-content-fps="30">
|
||||
</canvas>
|
||||
|
||||
<div id="waflashContainer" style="position:relative">
|
||||
<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 './js/waflash-player.min.js'; createWaflash(gameConfig.swfUrl, window.wafOptions ||
|
||||
{});
|
||||
</script>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user