summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-02-26 13:13:11 -0800
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-02-26 13:13:11 -0800
commit6e255883e0cb745f182a1ff1e4427704df231400 (patch)
tree34a0757335d800d35c2f56da77c2be8c415767ff
parenteabbe53c13e5fcf45a50b2163c871e6f9d55f991 (diff)
downloadtempo-6e255883e0cb745f182a1ff1e4427704df231400.tar.gz
tempo-6e255883e0cb745f182a1ff1e4427704df231400.tar.xz
Consistent quoting.
-rw-r--r--tempo.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/tempo.js b/tempo.js
index 0d90f5f..738b2f4 100644
--- a/tempo.js
+++ b/tempo.js
@@ -2,11 +2,11 @@
// Distributed under the terms of the GNU General Public License v2.
// See http://www.gnu.org/licenses/gpl-2.0.txt for the full license text.
-var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
+var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
function padTime(x) {
if(x < 10) {
- return "0" + x;
+ return '0' + x;
} else {
return x;
}
@@ -25,16 +25,16 @@ function updateTime() {
var dm = date.getMonth();
var dy = date.getFullYear();
- var str_d = dd + " " + months[dm] + " " + dy;
+ var str_d = dd + ' ' + months[dm] + ' ' + dy;
if(timeformat == '12') {
h = (h + 11) % 12 + 1;
}
- document.getElementById("h").innerHTML = padTime(h);
- document.getElementById("m").innerHTML = padTime(m);
- document.getElementById("s").innerHTML = padTime(s);
- document.getElementById("dateval").innerHTML = str_d;
+ document.getElementById('h').innerHTML = padTime(h);
+ document.getElementById('m').innerHTML = padTime(m);
+ document.getElementById('s').innerHTML = padTime(s);
+ document.getElementById('dateval').innerHTML = str_d;
}
function startTempo() {