From 79d2427d6d44df8cf20907420eccf87c06b821d9 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Tue, 14 Jul 2015 16:02:57 -0400 Subject: Feed screens now have a grey background, also have ability to scale images to crop or fit --- www/js/MonitorCtrl.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'www/js/MonitorCtrl.js') diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js index a98c6b1b..02a6dcce 100644 --- a/www/js/MonitorCtrl.js +++ b/www/js/MonitorCtrl.js @@ -19,6 +19,8 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', ['$ionicPopu monitorStateCheck(); console.log ("Setting Awake to "+ZMDataModel.getKeepAwake()); ZMDataModel.setAwake(ZMDataModel.getKeepAwake()); + $scope.imageStyle=true; + $scope.openMenu = function () { @@ -40,6 +42,8 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', ['$ionicPopu }); }; + + //----------------------------------------------------------------------- // This function takes care of changing monitor parameters // For now, I've only limited it to enable/disable and change monitor mode @@ -345,4 +349,10 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', ['$ionicPopu }; + $scope.scaleImage = function() { + console.log ("Switching image style"); + $scope.imageStyle = !$scope.imageStyle; + + }; + }]); -- cgit v1.2.3