diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-05-04 08:13:03 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-05-04 08:13:09 +0200 |
commit | fa6187072e70ed8c8f08df6a4a6bd4d68db8074e (patch) | |
tree | 42f9adeb498eb730e61ec2391814f43d539fd7ee /plugin | |
parent | 1b236bdf211ac2a9600a89fe4efae9619193a410 (diff) | |
download | fosdem-2018-presentation-fa6187072e70ed8c8f08df6a4a6bd4d68db8074e.tar fosdem-2018-presentation-fa6187072e70ed8c8f08df6a4a6bd4d68db8074e.tar.gz |
clicking on notes timer now resets it #779
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/notes/notes.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 30e1669..43385bf 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 @@ <div id="upcoming-slide"><span class="label">UPCOMING:</span></div> <div id="speaker-controls"> <div class="speaker-controls-time"> - <h4 class="label">Time</h4> + <h4 class="label">Time <span class="reset-button">Click to Reset</span></h4> <div class="clock"> <span class="clock-value">0:00 AM</span> </div> @@ -340,6 +351,12 @@ // Then update every second setInterval( _updateTimer, 1000 ); + timeEl.addEventListener( 'click', function() { + start = new Date(); + _updateTimer(); + return false; + } ); + } function zeroPadInteger( num ) { |