Re-addded menus in prototype
This commit is contained in:
parent
d0c4b3e714
commit
09cfce804a
|
@ -4,9 +4,8 @@ layout: withjs
|
|||
extrajs: <script src="/static/js/prototype/main.js"></script>
|
||||
extrahead: <link rel="stylesheet" href="/static/css/prototype.css" />
|
||||
---
|
||||
<div id="main-div" style="margin: 10px;">
|
||||
<div style="display: none;">
|
||||
|
||||
<div id="main-div">
|
||||
<!--<div style="display: none;">-->
|
||||
<h2>3D Interface</h2>
|
||||
|
||||
<p>
|
||||
|
@ -25,7 +24,7 @@ clicking on them. You can reset the camera at anytime by clicking on the reset
|
|||
button.
|
||||
</p>
|
||||
|
||||
<button class="btn btn-primary" id="full" style="margin-bottom: 10px;">Fullscreen</button>
|
||||
<button class="btn btn-primary" id="full" style="margin-bottom: 10px; display: none;">Fullscreen</button>
|
||||
<button class="btn btn-primary" id="reset" style="margin-bottom:10px">Reset camera</button>
|
||||
<input type="checkbox" id="fullarrow" style="margin-bottom:10px">
|
||||
<label for="fullarrow">Full arrow</label>
|
||||
|
@ -34,6 +33,6 @@ button.
|
|||
<input type="checkbox" id="showarrows" style="margin-bottom:10px" checked>
|
||||
<label for="showarrows">Show arrows</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
|
||||
<div id="container" style="padding: 0px; margin: 0px;" tabindex="1"></div>
|
||||
|
|
|
@ -46,8 +46,8 @@ var PointerCamera = function() {
|
|||
var onMouseMove = function(event) {self.onMouseMove(event); };
|
||||
var onMouseUp = function(event) {self.onMouseUp(event); };
|
||||
|
||||
listenerTarget.addEventListener('keydown', onKeyDown, false);
|
||||
listenerTarget.addEventListener('keyup', onKeyUp, false);
|
||||
document.addEventListener('keydown', onKeyDown, false);
|
||||
document.addEventListener('keyup', onKeyUp, false);
|
||||
listenerTarget.addEventListener('mousedown', function(event) { if (event.which == 1) onMouseDown(event);}, false);
|
||||
listenerTarget.addEventListener('mousemove', function(event) { if (event.which == 1) onMouseMove(event);}, false);
|
||||
listenerTarget.addEventListener('mouseup', onMouseUp, false);
|
||||
|
|
Loading…
Reference in New Issue