From ede851b2b82b2f37e220ba5ca322ca30e476d389 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Thu, 4 Jun 2015 11:55:42 -0400 Subject: Added option for a more compact montage view (still needs more work) --- www/index.html | 4 ++-- www/js/MontageCtrl.js | 8 ++++++-- www/templates/montage.html | 13 ++++++++++--- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/www/index.html b/www/index.html index f5c9e47e..33fe6cb6 100644 --- a/www/index.html +++ b/www/index.html @@ -107,7 +107,7 @@ Events - + System Status @@ -120,7 +120,7 @@ - + Developer Settings diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 9313d660..3fff9c7c 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -7,6 +7,12 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', '$rootScope', 'ZMDataModel', 'message', '$ionicSideMenuDelegate', '$timeout', '$interval', '$ionicModal', '$ionicLoading', '$http', function ($scope, $rootScope, ZMDataModel, message, $ionicSideMenuDelegate, $timeout, $interval, $ionicModal, $ionicLoading, $http) { var timestamp = new Date().getUTCMilliseconds(); + $scope.isMinimal = false; + + $scope.switchMinimal = function() + { + $scope.minimal = !$scope.minimal; + }; $scope.togglePTZ = function () { $scope.showPTZ = !$scope.showPTZ; @@ -125,8 +131,6 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' }; function controlPTZ(monitorId, cmd) { - // curl -X POST "http://arjunrc.ddns.net:9898/zm/index.php" -d "view=request&request=control&user=admin&passwd=indiglo&id=4&control=moveConLeft" - //curl -X POST "http://server.com/zm/index.php?view=request" -d "request=control&user=admin&passwd=xx&id=4&control=moveConLeft" diff --git a/www/templates/montage.html b/www/templates/montage.html index b1141905..d69fdfa7 100644 --- a/www/templates/montage.html +++ b/www/templates/montage.html @@ -3,6 +3,10 @@ + + + + @@ -19,15 +23,16 @@ - +
  {{monitor.Monitor.Name}} 
+
- +
@@ -37,6 +42,8 @@
+ + - +
-- cgit v1.2.3