2015-02-15 18:24:17 +01:00
|
|
|
<!DOCTYPE html>
|
2017-08-18 16:26:17 +02:00
|
|
|
<meta charset="utf-8">
|
2015-02-15 18:24:17 +01:00
|
|
|
<script>
|
|
|
|
'use strict';
|
|
|
|
window.addEventListener('load', function() {
|
2016-08-27 18:07:44 +02:00
|
|
|
function isProduction() {
|
|
|
|
var l = window.top.location;
|
|
|
|
if (l.hash === '#_production') {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (l.hostname === 'localhost' || l.hostname === '127.0.0.1') {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
2015-02-15 18:24:17 +01:00
|
|
|
}
|
|
|
|
|
2016-08-27 18:07:44 +02:00
|
|
|
var s = document.createElement('script');
|
|
|
|
var src = 'gamepad.js';
|
|
|
|
if (isProduction()) {
|
2017-05-29 15:01:47 +02:00
|
|
|
src = 'https://hajimehoshi.github.io/ebiten.pagestorage/latest/' + src;
|
2016-08-27 18:07:44 +02:00
|
|
|
}
|
|
|
|
s.src = src;
|
2016-11-26 17:51:52 +01:00
|
|
|
s.onload = function() {
|
|
|
|
var notice = document.getElementById('notice');
|
|
|
|
notice.parentNode.removeChild(notice);
|
|
|
|
};
|
2016-08-27 18:07:44 +02:00
|
|
|
document.body.appendChild(s);
|
2015-02-15 18:24:17 +01:00
|
|
|
});
|
|
|
|
</script>
|
2017-08-18 16:26:17 +02:00
|
|
|
<title>(Example)</title>
|
2016-11-26 17:51:52 +01:00
|
|
|
<p id="notice" style="color: white;">Now Loading...</p>
|