From 7ccbec3822d21c506fd9dbee73661197f8acac21 Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Sat, 21 Nov 2015 20:22:35 -0600 Subject: [PATCH] Added Angular cookies module to store timer info. --- index.html | 2 +- js/angular-cookies.min.js | 10 ++++++++++ js/app.js | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 js/angular-cookies.min.js diff --git a/index.html b/index.html index 1d0289b..151443a 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - + diff --git a/js/angular-cookies.min.js b/js/angular-cookies.min.js new file mode 100644 index 0000000..bc99ddd --- /dev/null +++ b/js/angular-cookies.min.js @@ -0,0 +1,10 @@ +/* + AngularJS v1.4.8 + (c) 2010-2015 Google, Inc. http://angularjs.org + License: MIT +*/ +(function(p,c,n){'use strict';function l(b,a,g){var d=g.baseHref(),k=b[0];return function(b,e,f){var g,h;f=f||{};h=f.expires;g=c.isDefined(f.path)?f.path:d;c.isUndefined(e)&&(h="Thu, 01 Jan 1970 00:00:00 GMT",e="");c.isString(h)&&(h=new Date(h));e=encodeURIComponent(b)+"="+encodeURIComponent(e);e=e+(g?";path="+g:"")+(f.domain?";domain="+f.domain:"");e+=h?";expires="+h.toUTCString():"";e+=f.secure?";secure":"";f=e.length+1;4096 4096 bytes)!");k.cookie=e}}c.module("ngCookies",["ng"]).provider("$cookies",[function(){var b=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(a,g){return{get:function(d){return a()[d]},getObject:function(d){return(d=this.get(d))?c.fromJson(d):d},getAll:function(){return a()},put:function(d,a,m){g(d,a,m?c.extend({},b,m):b)},putObject:function(d,b,a){this.put(d,c.toJson(b),a)},remove:function(a,k){g(a,n,k?c.extend({},b,k):b)}}}]}]);c.module("ngCookies").factory("$cookieStore", +["$cookies",function(b){return{get:function(a){return b.getObject(a)},put:function(a,c){b.putObject(a,c)},remove:function(a){b.remove(a)}}}]);l.$inject=["$document","$log","$browser"];c.module("ngCookies").provider("$$cookieWriter",function(){this.$get=l})})(window,window.angular); +//# sourceMappingURL=angular-cookies.min.js.map + diff --git a/js/app.js b/js/app.js index 51f4e54..2d38061 100644 --- a/js/app.js +++ b/js/app.js @@ -40,11 +40,11 @@ $scope.round = 1; $scope.cycle = 1; $scope.timer = timer; - $scope.warmUp = true; $scope.warmUpTime = timer.warm_up; $scope.lowIntensityTime = timer.low_intensity; $scope.highIntensityTime = timer.high_intensity; $scope.coolDownTime = timer.cool_down; + $scope.warmUp = true; $scope.time = $scope.warmUpTime; $scope.settingsOpen = false; $scope.closeSettings = false;