summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index 93fdba0e..2371983d 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -160,6 +160,15 @@ angular.module('zmApp.controllers')
// not explictly handling error --> I have a default "No events found" message
// displayed in the template if events list is null
+ $scope.calcMsTimer = function(frames,len)
+ {
+ var myframes, mylen;
+ myframes = parseFloat(frames);
+ mylen = parseFloat(len);
+ // console.log ("frames " + myframes + "length " + mylen);
+ // console.log ("*** MS COUNT " + (1000.0/(myframes/mylen)));
+ return (Math.round(1000/(myframes/mylen)));
+ };
$scope.openMenu = function () {
$ionicSideMenuDelegate.toggleLeft();