ebiten/_docs/examplecontent.tmpl.html
2016-11-27 02:10:53 +09:00

30 lines
815 B
HTML

<!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 = '{{.Example.Name}}.js';
if (isProduction()) {
src = 'https://hajimehoshi.github.io/ebiten.pagestorage/1.4/' + src;
}
s.src = src;
s.onload = function() {
var notice = document.getElementById('notice');
notice.parentNode.removeChild(notice);
};
document.body.appendChild(s);
});
</script>
<p id="notice" style="color: white;">Now Loading...</p>