Skip to content
This repository was archived by the owner on Aug 16, 2019. It is now read-only.

Commit 4aba9b1

Browse files
author
Matt Conway
committed
Added non-breaking spaces to the clock. Closes #37.
1 parent 6d433e9 commit 4aba9b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tbdhotel.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2011 Portland Transport
2+
Copyright 2011-2012 Portland Transport
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -1355,10 +1355,10 @@ com.transitboard.hotel.prototype.updateClock = function () {
13551355
if (now.getHours() >= 12) var ap = 'PM';
13561356
else var ap = 'AM';
13571357

1358-
var time = days[now.getDay()] + ' ' + hour + ':' +
1359-
mins + ' ' + ap;
1358+
var time = days[now.getDay()] + ' ' + hour + ':' +
1359+
mins + ' ' + ap;
13601360

1361-
$('#bar-datetime span').text(time);
1361+
$('#bar-datetime span').html(time);
13621362
$('#bar-datetime').textfill({maxFontPixels: $('#bar').height() - 5});
13631363
}
13641364

0 commit comments

Comments
 (0)