ebiten/docs/examples/life.content.html

30 lines
802 B
HTML
Raw Normal View History

2016-09-02 19:44:29 +02:00
<!DOCTYPE html>
<script>
'use strict';
window.addEventListener('load', function() {
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;
}
var s = document.createElement('script');
var src = 'life.js';
if (isProduction()) {
2016-11-26 18:10:53 +01:00
src = 'https://hajimehoshi.github.io/ebiten.pagestorage/1.4/' + src;
2016-09-02 19:44:29 +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-09-02 19:44:29 +02:00
document.body.appendChild(s);
});
</script>
2016-11-26 17:51:52 +01:00
<p id="notice" style="color: white;">Now Loading...</p>