From 7da09391cbeddd3481deb2ad300bdb4d3af2180f Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Thu, 19 May 2016 13:45:31 -0400 Subject: #252 should work now Former-commit-id: d49ab80a48e00c4d1fda1d6cdb3d24969849d268 --- www/css/style.css | 41 +++--- www/js/EventModalCtrl.js | 25 +++- www/templates/events-modal.html | 282 +++++++++++++++------------------------- 3 files changed, 144 insertions(+), 204 deletions(-) diff --git a/www/css/style.css b/www/css/style.css index 05e4907b..0261e6e2 100644 --- a/www/css/style.css +++ b/www/css/style.css @@ -975,21 +975,35 @@ body { font-family: sans-serif; } position:absolute; width: 80%; height: 20px; - bottom:70px; + bottom:80px; left:20px; opacity:1; z-index:99; } + +#event_canvas_video { + position:absolute; + width: 100%; + height: 20px; + bottom:140px; + left:0px; + opacity:1; + z-index:99; + +} + + + #event_slider { position:absolute; width: 80%; height: 20px; - bottom:50px; + bottom:60px; left:20px; opacity:1; - z-index:100; + z-index:9999; } @@ -997,32 +1011,15 @@ body { font-family: sans-serif; } #event_rate_text { position:absolute; width: 80%; - bottom:10px; + bottom:20px; left:43px; opacity:1; color:#fff; - z-index:100; + z-index:9998; } -/* -#event_slider { - width: 100%; - height: 100%; - position: absolute; - top: 50%; - left: 0; -} -#event_canvas -{ -position:absolute; - bottom:30px; - left:30px; - z-index:99; - opacity:1; - width:100%; -}*/ diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index f6c7fe2a..0d33254c 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -146,6 +146,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro { //console.log ("Event timer"); //console.log ("Event timer"); + $scope.checkEventOn = true; if ($scope.defaultVideo !== undefined && $scope.defaultVideo !='') { console.log ("playing video, not using zms, skipping event commands"); @@ -228,6 +229,12 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro function processEvent(cmd,connkey) { + + if ($scope.blockSlider) + { + console.log ("Not doing ZMS Command as slider is depressed..."); + return; + } var loginData = ZMDataModel.getLogin(); console.log ("sending process Event command to " + loginData.url); @@ -346,12 +353,19 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro }; + $scope.enableSliderBlock = function() + { + $scope.blockSlider = true; + }; $scope.youChangedSlider = function() { + console.log("YOU changed " + $scope.sliderProgress.progress); $scope.currentProgress.progress = $scope.sliderProgress.progress; $timeout( function () { sendCommand('14',$scope.connKey, '&offset='+$scope.currentProgress.progress);},500); + // give this command some time to complete + $timeout (function(){$scope.blockSlider = false;},1500); }; @@ -710,6 +724,8 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro $scope.loginData = ZMDataModel.getLogin(); $scope.singleImageQuality = ld.singleImageQuality; + $scope.blockSlider = false; + $scope.checkEventOn = false; //$scope.singleImageQuality = 100; @@ -814,16 +830,13 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro $scope.$on('modal.removed', function (e,m) { - + $interval.cancel(eventQueryHandle); if (m.id != 'footage') return; - //console.log ("************** MODAL INSIDE FOOTAGE CLOSED"); + $scope.isModalActive = false; - - //console.log("**MODAL REMOVED: Stopping modal timer"); - $interval.cancel(eventQueryHandle); - //$timeout.cancel(eventQueryHandle); + ZMDataModel.zmDebug ("Modal removed - killing connkey"); sendCommand(17,$scope.connKey); //$timeout (function(){ZMDataModel.stopNetwork("Modal removed inside EventModalCtrl");},400); diff --git a/www/templates/events-modal.html b/www/templates/events-modal.html index 51b389f1..bc3d40ac 100644 --- a/www/templates/events-modal.html +++ b/www/templates/events-modal.html @@ -1,203 +1,133 @@ -
+
- -
- - - - + +
+ + + + - +
- + -
- - -
-   - paused  +
+ + +
+   paused 
- +
- - + +
- + - +
-
+
- - - - - - {{ timeLeft | date:'mm:ss':'+0000' }} - - - - - + + + + + + {{ timeLeft | date:'mm:ss':'+0000' }} + + + + +
- +
+ +
+
- -
- - - - +
+ + - - - - - - - - - - - - - - - - -
showing event: {{d_eventId}}
- - -
- - -
- - - - -
- -
- -
-
- -
-
- -
- @{{currentRate}}x at:{{currentProgress.progress}}s -
- - -
+
+ @{{currentRate}}x at:{{currentProgress.progress}}s +
+
+ + + + + + + + + + + + + + +
showing event: {{d_eventId}}
+ +
+ + +
+ +
\ No newline at end of file -- cgit v1.2.3