From 1219564e0560702b1d0d4df9983bae0fbac7fde4 Mon Sep 17 00:00:00 2001 From: Nigel Stanger Date: Thu, 2 May 2013 12:02:46 +1200 Subject: Added clear:left to notes DIV Resolves an issue where the first label (e.g., first bullet or first number) of a list would wrap to the right side of the window and be hidden under the clock element. --- plugin/notes/notes.html | 1 + 1 file changed, 1 insertion(+) (limited to 'plugin/notes/notes.html') diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index e14c6ac..5726fbd 100644 --- a/plugin/notes/notes.html +++ b/plugin/notes/notes.html @@ -14,6 +14,7 @@ font-size: 24px; width: 640px; margin-top: 5px; + clear: left; } #wrap-current-slide { -- cgit v1.2.3 From 28d370f2aff34806f3c2d91bff06bf8f72c4b8ac Mon Sep 17 00:00:00 2001 From: Thomas Rosenau Date: Sun, 2 Jun 2013 11:02:53 +0200 Subject: Use Math.floor instead of parseInt to avoid problems with very small numbers like 2e-10 --- plugin/notes/notes.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/notes/notes.html') diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 830045d..e75be28 100644 --- a/plugin/notes/notes.html +++ b/plugin/notes/notes.html @@ -212,9 +212,9 @@ now = new Date(); diff = now.getTime() - start.getTime(); - hours = parseInt( diff / ( 1000 * 60 * 60 ) ); - minutes = parseInt( ( diff / ( 1000 * 60 ) ) % 60 ); - seconds = parseInt( ( diff / 1000 ) % 60 ); + hours = Math.floor( diff / ( 1000 * 60 * 60 ) ); + minutes = Math.floor( ( diff / ( 1000 * 60 ) ) % 60 ); + seconds = Math.floor( ( diff / 1000 ) % 60 ); clockEl.innerHTML = now.toLocaleTimeString(); hoursEl.innerHTML = zeroPadInteger( hours ); -- cgit v1.2.3