ebiten/_docs/examplecontent.tmpl.html
2016-02-15 11:35:05 +09:00

26 lines
595 B
HTML

<!DOCTYPE html>
{{comment .License}}
<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 = '//hajimehoshi.github.io/ebiten.pagestorage/{{.CurrentBranch}}/' + src;
}
s.src = src;
document.body.appendChild(s);
});
</script>