diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-10 14:45:12 -0500 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-10 14:45:12 -0500 |
| commit | edc8404f49bada3f8105f129afba887c39aaa207 (patch) | |
| tree | 701ddff503b53120c470110a31c48be40fe5798b | |
| parent | 52bf5f3a090296718c35d961dd3733369423478b (diff) | |
#76 - warm and fuzzy first use message
Former-commit-id: 3c93c3c9c9fe4c0b3aeb316cf46ea35791273456
| -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"); + + }, |
