Open-source IoT Platform - Device management, data collection, processing and visualization.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
527 B

var app = angular.module('DemoApp', ['FBAngular']);
function MainCtrl($scope, Fullscreen) {
$scope.goFullscreen = function () {
// Fullscreen
if (Fullscreen.isEnabled())
Fullscreen.cancel();
else
Fullscreen.all();
// Set Fullscreen to a specific element (bad practice)
// Fullscreen.enable( document.getElementById('img') )
};
$scope.isFullScreen = false;
$scope.goFullScreenViaWatcher = function() {
$scope.isFullScreen = !$scope.isFullScreen;
};
}