|
@@ -39,15 +39,6 @@
|
|
|
display:none;
|
|
|
}
|
|
|
|
|
|
- #start {
|
|
|
- color:#fff;
|
|
|
- text-shadow: #000 0px 0px 2px;
|
|
|
- padding:0.1em 0.3em;
|
|
|
- width:3em;
|
|
|
- text-align: center;
|
|
|
- display:none;
|
|
|
- }
|
|
|
-
|
|
|
.shadow {
|
|
|
-moz-box-shadow: 0px 0px 5px #000;
|
|
|
-webkit-box-shadow: 0px 0px 5px #000;
|
|
@@ -97,7 +88,6 @@
|
|
|
|
|
|
<center>
|
|
|
<div id="progressbar" class="shadow"><div id="bar" class="shadow"></div></div>
|
|
|
- <div id="start" class="disabled">Start</div>
|
|
|
</center>
|
|
|
</div>
|
|
|
|
|
@@ -186,8 +176,6 @@
|
|
|
stats.domElement.style.zIndex = 100;
|
|
|
container.appendChild( stats.domElement );
|
|
|
|
|
|
- $( "start" ).addEventListener( 'click', onStartClick, false );
|
|
|
-
|
|
|
var callbackProgress = function( progress, result ) {
|
|
|
|
|
|
var bar = 250,
|
|
@@ -207,8 +195,6 @@
|
|
|
|
|
|
$( "message" ).style.display = "none";
|
|
|
$( "progressbar" ).style.display = "none";
|
|
|
- $( "start" ).style.display = "block";
|
|
|
- $( "start" ).className = "enabled";
|
|
|
|
|
|
result.scene.traverse( function ( object ) {
|
|
|
|
|
@@ -237,6 +223,16 @@
|
|
|
|
|
|
} );
|
|
|
|
|
|
+ //
|
|
|
+
|
|
|
+ $( "progress" ).style.display = "none";
|
|
|
+
|
|
|
+ camera = loaded.currentCamera;
|
|
|
+ camera.aspect = window.innerWidth / window.innerHeight;
|
|
|
+ camera.updateProjectionMatrix();
|
|
|
+
|
|
|
+ scene = loaded.scene;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
$( "progress" ).style.display = "block";
|
|
@@ -276,24 +272,6 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
- function setButtonActive( id ) {
|
|
|
-
|
|
|
- $( "start" ).style.backgroundColor = "green";
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- function onStartClick() {
|
|
|
-
|
|
|
- $( "progress" ).style.display = "none";
|
|
|
-
|
|
|
- camera = loaded.currentCamera;
|
|
|
- camera.aspect = window.innerWidth / window.innerHeight;
|
|
|
- camera.updateProjectionMatrix();
|
|
|
-
|
|
|
- scene = loaded.scene;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
function onDocumentMouseMove( event ) {
|
|
|
|
|
|
mouseX = ( event.clientX - windowHalfX );
|