jsbin/views/runner.html
Remy Sharp 3bd9a970c5 refactor: revert appcache stuff
Not ready and very unstable
2017-05-10 13:22:21 +01:00

37 lines
764 B
HTML

<!doctype html>
<html>
<meta charset=utf-8>
<title>JS Bin Runner</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
background: transparent;
}
iframe {
border: none;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100%;
width: 100%;
}
</style>
<div id="sandbox-wrapper"></div>
{{#if settings.is_production}}
<script>
if ('serviceWorker' in navigator && location.origin.indexOf('null') !== -1) {
navigator.serviceWorker.register('{{root}}/sw-runner.js', { scope: '/' });
}
</script>
<script src="{{static}}/js/prod/runner-{{settings.version}}.min.js"></script>
{{{analytics}}}
{{else}}
{{#scripts}}<script src="{{../static}}{{.}}"></script>
{{/scripts}}
{{/if}}