I create website with angulaJS and responsive bootstrap.
The question is I want my website run in full screen mode or remove the address-bar. My user use IOS safari IOS chrome android browser and android chrome
I create website with angulaJS and responsive bootstrap.
The question is I want my website run in full screen mode or remove the address-bar. My user use IOS safari IOS chrome android browser and android chrome
is it helpful ? Controller:
function MainCtrl($scope, Fullscreen) {
$scope.goFullscreen = function () {
if (Fullscreen.isEnabled())
Fullscreen.cancel();
else
Fullscreen.all();
// Set Fullscreen to a specific element (bad practice)
// Fullscreen.enable( document.getElementById('img') )
}
}
HTML:
<button ng-click="goFullscreen()">Enable/Disable fullscreen</button>