Added button for fullscreen
This commit is contained in:
parent
bcff6a7647
commit
f8be821cc9
|
@ -96,7 +96,7 @@ block content
|
|||
p
|
||||
| You may now <a href="#collapseInstructions" data-target="#collapseInstructions" data-toggle="collapse" onclick="setTimeout(onWindowResize,500);">hide this panel</a> and start playing !
|
||||
|
||||
button#full.btn.btn-primary(style={'margin-right': '10px', 'margin-bottom': '10px', display: 'none'}) Fullscreen
|
||||
button#full.btn.btn-primary(style={'margin-right': '10px', 'margin-bottom': '10px'}) Fullscreen
|
||||
button#reset.btn.btn-primary(style={'margin-right': '10px', 'margin-bottom':'10px'}) Reset camera
|
||||
|
||||
button#undo.btn.btn-default(style={'margin-right': '10px', 'margin-bottom': '10px'})
|
||||
|
|
|
@ -13,7 +13,7 @@ var ButtonManager = function(cameras) {
|
|||
this.collisionElement = document.getElementById('collisions');
|
||||
this.showarrowsElement = document.getElementById('showarrows');
|
||||
|
||||
this.fullscreenElement.onclick = function() {};
|
||||
this.fullscreenElement.onclick = function() {fullscreen();};
|
||||
|
||||
(function(self) {
|
||||
self.undoElement.onclick = function() {self.cameras.mainCamera().undo(); self.updateElements();}
|
||||
|
|
Loading…
Reference in New Issue