aboutsummaryrefslogtreecommitdiff
path: root/plugin/notes/notes.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-05-04 08:13:03 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-05-04 08:13:09 +0200
commitfa6187072e70ed8c8f08df6a4a6bd4d68db8074e (patch)
tree42f9adeb498eb730e61ec2391814f43d539fd7ee /plugin/notes/notes.html
parent1b236bdf211ac2a9600a89fe4efae9619193a410 (diff)
downloadfreenode-live-2017-presentation-fa6187072e70ed8c8f08df6a4a6bd4d68db8074e.tar
freenode-live-2017-presentation-fa6187072e70ed8c8f08df6a4a6bd4d68db8074e.tar.gz
clicking on notes timer now resets it #779
Diffstat (limited to 'plugin/notes/notes.html')
-rw-r--r--plugin/notes/notes.html19
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 ) {