Begin adding control area. Remove un-needed comment.
This commit is contained in:
		
							
								
								
									
										8
									
								
								js/GUI.Utils.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								js/GUI.Utils.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
function openTab(tabName) {
 | 
			
		||||
    var i;
 | 
			
		||||
    var x = document.getElementsByClassName("tab");
 | 
			
		||||
    for (i = 0; i < x.length; i++) {
 | 
			
		||||
        x[i].style.display = "none"; 
 | 
			
		||||
    }
 | 
			
		||||
    document.getElementById(tabName).style.display = "block"; 
 | 
			
		||||
}
 | 
			
		||||
@@ -4,18 +4,19 @@
 | 
			
		||||
      <script src="js/three.js"></script>
 | 
			
		||||
      <script src="js/OrbitControls.js"></script>
 | 
			
		||||
      <script src="js/three-text2d.js"></script>
 | 
			
		||||
      <script src="js/Detector.js"></script>  <!-- Not sure if this is even needed anymore. -->
 | 
			
		||||
      <script src="js/Detector.js"></script> 
 | 
			
		||||
      <script src="js/mapviewgl.js"></script>
 | 
			
		||||
      <style type="text/css">
 | 
			
		||||
          body { margin: 0; }
 | 
			
		||||
          canvas { width: 100%; height: 100% }
 | 
			
		||||
          canvas { width: 75%; height: 100% ; }
 | 
			
		||||
	  #reset-button { position: absolute; top: 0; left: 90%; background-color: #AAA; width: 50px; height: 25px; color: #FFF; font-weight: bold; text-align: center;}
 | 
			
		||||
	  
 | 
			
		||||
	  #controls { position: fixed; left: 85%; height: 100%; width: 15%; background-color: #FFF; } 
 | 
			
		||||
      </style>
 | 
			
		||||
  </head>
 | 
			
		||||
  <body>
 | 
			
		||||
      <div id="container"></div>
 | 
			
		||||
      <div id="reset-button" onClick="reset_view();"> Reset </div>
 | 
			
		||||
      <div id="controls"> </div>
 | 
			
		||||
  </body>
 | 
			
		||||
  
 | 
			
		||||
</html>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user