Added button for fullscreen

This commit is contained in:
Thomas FORGIONE 2015-05-13 11:58:20 +02:00
parent bcff6a7647
commit f8be821cc9
2 changed files with 2 additions and 2 deletions

View File

@ -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'})

View File

@ -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();}