mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 19:58:54 +01:00
25 lines
625 B
HTML
25 lines
625 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 = 'infinitescroll.js';
|
||
|
if (isProduction()) {
|
||
|
src = 'https://dl.dropboxusercontent.com/u/3692507/ebiten.examples/' + src;
|
||
|
}
|
||
|
s.src = src;
|
||
|
document.body.appendChild(s);
|
||
|
});
|
||
|
</script>
|