|
|
@@ -8,9 +8,6 @@
|
|
|
</head>
|
|
|
<body>
|
|
|
|
|
|
- <div id="overlay">
|
|
|
- <button id="startButton">Play</button>
|
|
|
- </div>
|
|
|
<div id="container"></div>
|
|
|
|
|
|
<div id="info">
|
|
|
@@ -18,7 +15,7 @@
|
|
|
playing <a href="http://durian.blender.org/" target="_blank" rel="noopener">sintel</a> trailer
|
|
|
</div>
|
|
|
|
|
|
- <video id="video" loop crossOrigin="anonymous" playsinline style="display:none">
|
|
|
+ <video id="video" loop muted crossOrigin="anonymous" playsinline style="display:none">
|
|
|
<source src="textures/sintel.ogv" type='video/ogg; codecs="theora, vorbis"'>
|
|
|
<source src="textures/sintel.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
|
|
|
</video>
|
|
|
@@ -63,18 +60,10 @@
|
|
|
xgrid = 20,
|
|
|
ygrid = 10;
|
|
|
|
|
|
- const startButton = document.getElementById( 'startButton' );
|
|
|
- startButton.addEventListener( 'click', function () {
|
|
|
-
|
|
|
- init();
|
|
|
-
|
|
|
- } );
|
|
|
+ init();
|
|
|
|
|
|
function init() {
|
|
|
|
|
|
- const overlay = document.getElementById( 'overlay' );
|
|
|
- overlay.remove();
|
|
|
-
|
|
|
container = document.createElement( 'div' );
|
|
|
document.body.appendChild( container );
|
|
|
|