summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorPliablePixels <pliablepixels@gmail.com>2015-07-16 15:06:41 -0400
committerPliablePixels <pliablepixels@gmail.com>2015-07-16 15:06:41 -0400
commit89640e9b0212a2525ea132b1d11bb8962f5444dd (patch)
tree22ad88bf288fb83234378d2cbe16dae71b5cb7b4 /www/js/app.js
parent61afc8d7011f8a741b2583708ac1834e8eec44c2 (diff)
general formatting
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 870c041e..40280917 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -14,20 +14,25 @@ angular.module('zmApp', [
])
+// ------------------------------------------
+// Various constants central repository
+// Feel free to change them as you see fit
+//-----------------------------------------------
+
.constant('zm', {
httpTimeout:15000,
largeHttpTimeout:60000,
logFile:'zmNinjaLog.txt',
authoremail:'pliablepixels+zmNinja@gmail.com',
- logFileMaxSize: 50000,
- loginInterval:300000, //5m*60s*1000
+ logFileMaxSize: 50000, // after this limit log gets reset
+ loginInterval:300000, //5m*60s*1000 - ZM auto login after 5 mins
loadingTimeout:15000,
safeMontageLimit:10,
maxFPS:30,
defaultFPS:3,
maxMontageQuality:70,
defaultMontageQuality:50,
- progressIntervalCheck:5000,
+ progressIntervalCheck:5000, // used for progress indicator on event playback
graphFillColor:'rgba(151,187,205,0.5)',
graphStrokeColor: 'rgba(151,187,205,0.8)',
graphHighlightFill: 'rgba(0,163,124,0.5)',
@@ -259,10 +264,7 @@ angular.module('zmApp', [
ZMDataModel.zmLog("Device is ready");
console.log("**** DEVICE READY ***");
-
-
-
- $fileLogger.checkFile().then(function(resp) {
+ $fileLogger.checkFile().then(function(resp) {
if (parseInt(resp.size) > zm.logFileMaxSize)
{
console.log ("Deleting old log file as it exceeds 50K bytes");