changeset 1287:d9b86675be24

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 27 Dec 2018 12:01:30 -0700
parents 9eb3a9724853
children 8432d20a2729
files website/src/fschmidt/stopwatch.html
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
diff -r 9eb3a9724853 -r d9b86675be24 website/src/fschmidt/stopwatch.html
--- a/website/src/fschmidt/stopwatch.html	Wed Dec 26 16:58:53 2018 -0700
+++ b/website/src/fschmidt/stopwatch.html	Thu Dec 27 12:01:30 2018 -0700
@@ -33,9 +33,9 @@
 				var minutes = time % 60;
 				time = Math.floor(time/60);
 				var hours = time;
-				seconds = ("0"+seconds).slice(-2);
-				minutes = ("0"+minutes).slice(-2);
-				time = hours + ":" + minutes + ":" + seconds;
+				seconds = ('0'+seconds).slice(-2);
+				minutes = ('0'+minutes).slice(-2);
+				time = hours + ':' + minutes + ':' + seconds;
 				document.querySelector('[time]').innerHTML = time;
 			}
 
@@ -61,7 +61,7 @@
 				if( !stop ) {
 					localStorage.start = now();
 				} else {
-					localStorage.removeItem("stop");
+					localStorage.removeItem('stop');
 					localStorage.start = now() - (stop - localStorage.start);
 				}
 				fixButtons();
@@ -73,8 +73,8 @@
 			}
 
 			function reset() {
-				localStorage.removeItem("start");
-				localStorage.removeItem("stop");
+				localStorage.removeItem('start');
+				localStorage.removeItem('stop');
 				showTime();
 				fixButtons();
 			}