diff website/src/fschmidt/stopwatch.html @ 1287:d9b86675be24

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 27 Dec 2018 12:01:30 -0700
parents fad40fe3282d
children fb802d8aba0b
line wrap: on
line diff
--- 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();
 			}