summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html2
-rw-r--r--tempo.js14
2 files changed, 8 insertions, 8 deletions
diff --git a/index.html b/index.html
index 621efe5..154a404 100644
--- a/index.html
+++ b/index.html
@@ -11,7 +11,7 @@
<body>
<div id="container">
<div id="time">
- <p id="timeval"><span id="h"></span>&nbsp;&nbsp;<span id="m"></span>&nbsp;&nbsp;<span id="s"></span></p>
+ <p id="timeval">&nbsp;</p>
</div>
<div id="date">
<p id="dateval">&nbsp;</p>
diff --git a/tempo.js b/tempo.js
index ab217a7..7117884 100644
--- a/tempo.js
+++ b/tempo.js
@@ -2,8 +2,8 @@
// 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'];
var timeformat = null;
@@ -26,15 +26,15 @@ function updateTime() {
var dm = date.getMonth();
var dy = date.getFullYear();
- 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);
+ var str_t = padTime(h) + '&nbsp;&nbsp;' + padTime(m) +
+ '&nbsp;&nbsp' + padTime(s);
+ var str_d = dd + ' ' + months[dm] + ' ' + dy;
+
+ document.getElementById('timeval').innerHTML = str_t;
document.getElementById('dateval').innerHTML = str_d;
}