Skip to content

Commit

Permalink
#76 - warm and fuzzy first use message
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Nov 10, 2015
1 parent 7757059 commit a9152f1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions www/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -572,5 +572,9 @@ input[type=range]::-webkit-slider-thumb {
-webkit-animation-duration: 200ms;
}

#firstuse
{
-webkit-animation-delay: 1s;
}


1 change: 1 addition & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
13 changes: 13 additions & 0 deletions www/js/DataModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

},



Expand Down

0 comments on commit a9152f1

Please sign in to comment.