ebiten/_docs/public/examples/font.content.html

25 lines
605 B
HTML
Raw Normal View History

2016-04-13 18:26:31 +02:00
<!DOCTYPE html>
<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;
2016-04-13 18:26:31 +02:00
}
2016-08-27 18:07:44 +02:00
var s = document.createElement('script');
var src = 'font.js';
if (isProduction()) {
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
}
s.src = src;
document.body.appendChild(s);
2016-04-13 18:26:31 +02:00
});
</script>