2015-01-08 15:45:30 +01:00
|
|
|
<!DOCTYPE html>
|
2015-01-09 16:38:17 +01:00
|
|
|
<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;
|
2015-01-09 16:38:17 +01:00
|
|
|
}
|
|
|
|
|
2016-08-27 18:07:44 +02:00
|
|
|
var s = document.createElement('script');
|
|
|
|
var src = 'hue.js';
|
|
|
|
if (isProduction()) {
|
2016-08-27 19:17:00 +02:00
|
|
|
src = '//hajimehoshi.github.io/ebiten.pagestorage/latest/' + src;
|
2016-08-27 18:07:44 +02:00
|
|
|
}
|
|
|
|
s.src = src;
|
|
|
|
document.body.appendChild(s);
|
2015-01-09 16:38:17 +01:00
|
|
|
});
|
|
|
|
</script>
|