From 5ee93e513eb7fbdbb6805582f36345e61a3bdbb8 Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Mon, 23 Nov 2015 10:24:26 -0600 Subject: [PATCH] Added a sound to the end of each cycle to signal the end of the high intensity period. --- interval-timer.sublime-workspace | 119 ++++++++++++++++++++++++------- js/app.js | 1 + 2 files changed, 93 insertions(+), 27 deletions(-) diff --git a/interval-timer.sublime-workspace b/interval-timer.sublime-workspace index 380097a..715c005 100644 --- a/interval-timer.sublime-workspace +++ b/interval-timer.sublime-workspace @@ -3,6 +3,42 @@ { "selected_items": [ + [ + "time", + "timeRemaining" + ], + [ + "cool", + "coolDownTime" + ], + [ + "cyc", + "cycles" + ], + [ + "re", + "repeat" + ], + [ + "warm", + "warmUpTime" + ], + [ + "save", + "savedimer" + ], + [ + "d", + "defaults" + ], + [ + "default", + "defaultTimer" + ], + [ + "h", + "high_intensity" + ], [ "text", "text-decoration" @@ -215,10 +251,6 @@ "min", "min-height" ], - [ - "d", - "display" - ], [ "b-cont", "b-container-text" @@ -255,7 +287,7 @@ "file": "js/app.js", "settings": { - "buffer_size": 120, + "buffer_size": 7790, "line_ending": "Unix" } }, @@ -263,7 +295,7 @@ "file": "index.html", "settings": { - "buffer_size": 1358, + "buffer_size": 5006, "line_ending": "Unix" } }, @@ -271,7 +303,7 @@ "file": "manifest.webapp", "settings": { - "buffer_size": 393, + "buffer_size": 379, "line_ending": "Unix", "name": "{" } @@ -280,7 +312,7 @@ "file": "css/styles.css", "settings": { - "buffer_size": 1597, + "buffer_size": 3066, "line_ending": "Unix" } } @@ -454,6 +486,19 @@ "case_sensitive": false, "find_history": [ + "http://www.yoursite.com", + " = 1;", + "round", + "rounds", + "cycles", + "repeat", + "cycles", + "startWarmUp", + "$scope.cycle", + "$scope.coolDownTime", + "$scope.highIntensityTime", + "$scope.lowIntensityTime", + "$scope.warmUpTime", "\"", "is_user_sub", "write_log", @@ -565,11 +610,19 @@ "travelzeeky" ], "highlight": true, - "in_selection": true, + "in_selection": false, "preserve_case": false, "regex": false, "replace_history": [ + "images", + "cycles", + "rounds", + "$scope.timer.cycle", + "$scope.timer.coolDownTime", + "$scope.timer.highIntensityTime", + "$scope.timer.lowIntensityTime", + "$scope.timer.warmUpTime", "\\\"", "category_title", "category_slug", @@ -585,7 +638,7 @@ "groups": [ { - "selected": 3, + "selected": 1, "sheets": [ { @@ -593,25 +646,25 @@ "file": "js/app.js", "settings": { - "buffer_size": 120, + "buffer_size": 7790, "regions": { }, "selection": [ [ - 118, - 118 + 2249, + 2249 ] ], "settings": { "syntax": "Packages/JavaScript/JavaScript.tmLanguage", - "tab_size": 2, + "tab_size": 4, "translate_tabs_to_spaces": true }, "translation.x": 0.0, - "translation.y": 0.0, + "translation.y": 1466.0, "zoom_level": 1.0 }, "type": "text" @@ -621,15 +674,15 @@ "file": "index.html", "settings": { - "buffer_size": 1358, + "buffer_size": 5006, "regions": { }, "selection": [ [ - 852, - 852 + 91, + 91 ] ], "settings": @@ -639,7 +692,7 @@ "translate_tabs_to_spaces": true }, "translation.x": 0.0, - "translation.y": 108.0, + "translation.y": 0.0, "zoom_level": 1.0 }, "type": "text" @@ -649,15 +702,15 @@ "file": "manifest.webapp", "settings": { - "buffer_size": 393, + "buffer_size": 379, "regions": { }, "selection": [ [ - 389, - 389 + 0, + 0 ] ], "settings": @@ -678,15 +731,27 @@ "file": "css/styles.css", "settings": { - "buffer_size": 1597, + "buffer_size": 3066, "regions": { }, "selection": [ [ - 1458, - 1458 + 2845, + 2845 + ], + [ + 2891, + 2891 + ], + [ + 2932, + 2932 + ], + [ + 2970, + 2970 ] ], "settings": @@ -696,7 +761,7 @@ "translate_tabs_to_spaces": false }, "translation.x": 0.0, - "translation.y": 1188.0, + "translation.y": 2656.0, "zoom_level": 1.0 }, "type": "text" @@ -1007,7 +1072,7 @@ [ [ "", - "/home/billy/Documents/the-floor.sublime-project" + "/home/billy/Documents/PersonalWebsite/my-site.sublime-project" ] ], "width": 380.0 diff --git a/js/app.js b/js/app.js index e0ac385..828177a 100644 --- a/js/app.js +++ b/js/app.js @@ -114,6 +114,7 @@ } else if ($scope.round == $scope.timer.rounds && $scope.cycle < $scope.timer.cycles) { $scope.cycle++; $scope.round = 1; + $scope.coolDownBeep.play(); $scope.setWarmUp(); } else { $scope.setLowIntensity();