diff options
Diffstat (limited to 'www')
| -rw-r--r-- | www/css/style.css | 4 | ||||
| -rw-r--r-- | www/index.html | 1 | ||||
| -rw-r--r-- | www/js/DataModel.js | 13 |
3 files changed, 18 insertions, 0 deletions
diff --git a/www/css/style.css b/www/css/style.css index 62545261..c9238ff5 100644 --- a/www/css/style.css +++ b/www/css/style.css @@ -572,5 +572,9 @@ input[type=range]::-webkit-slider-thumb { -webkit-animation-duration: 200ms; } +#firstuse +{ + -webkit-animation-delay: 1s; +} diff --git a/www/index.html b/www/index.html index e1c0fde6..958bf490 100644 --- a/www/index.html +++ b/www/index.html @@ -81,6 +81,7 @@ <script src="js/LowVersionCtrl.js"></script> <script src="js/EventServer.js"></script> <script src="js/EventServerSettingsCtrl.js"></script> + <script src="js/FirstUseCtrl.js"></script> <script src="external/ng-websocket.js"></script> diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 4afd4ad4..caca93d6 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -390,6 +390,19 @@ angular.module('zmApp.controllers') isBackground: function() { return isBackground; }, + + isFirstUse: function() { + return ((window.localStorage.getItem("isFirstUse")==undefined)?true:false); + + }, + + //----------------------------------------------------------------- + // Allow the option to reset first use if I need it in future + //----------------------------------------------------------------- + setFirstUse: function(val) { + window.localStorage.setItem("isFirstUse",val?"1":"0"); + + }, |
