From fa6187072e70ed8c8f08df6a4a6bd4d68db8074e Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sun, 4 May 2014 08:13:03 +0200 Subject: [PATCH] clicking on notes timer now resets it #779 --- plugin/notes/notes.html | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 30e1669f..43385bff 100644 --- a/plugin/notes/notes.html +++ b/plugin/notes/notes.html @@ -82,6 +82,17 @@ margin-bottom: 10px; padding: 10px 16px; padding-bottom: 20px; + cursor: pointer; + } + + .speaker-controls-time .reset-button { + opacity: 0; + float: right; + color: #666; + text-decoration: none; + } + .speaker-controls-time:hover .reset-button { + opacity: 1; } .speaker-controls-time .timer, @@ -144,7 +155,7 @@
UPCOMING:
-

Time

+

Time Click to Reset

0:00 AM
@@ -340,6 +351,12 @@ // Then update every second setInterval( _updateTimer, 1000 ); + timeEl.addEventListener( 'click', function() { + start = new Date(); + _updateTimer(); + return false; + } ); + } function zeroPadInteger( num ) {