-
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 ) {
--
cgit v1.2.3
From f28b380fac76583c1572c82abc229b49f54dc2fc Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Sun, 28 Sep 2014 17:13:49 +0200
Subject: prevent auto-sliding in notes frames #1004
---
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 43385bf..1429004 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -282,6 +282,7 @@
'progress=false',
'history=false',
'transition=none',
+ 'autoSlide=0',
'backgroundTransition=none'
].join( '&' );
--
cgit v1.2.3
From cef19486b89ed7d101acfc1992af2e49e88c371d Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Thu, 16 Oct 2014 13:09:54 +0200
Subject: better handling of overflowing speaker notes #1017
---
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 1429004..0cc8cf6 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -59,6 +59,7 @@
right: 0;
width: 35%;
height: 60%;
+ overflow: auto;
font-size: 18px;
}
--
cgit v1.2.3
From 9bcd1484bc583ffe015c5296e6a42c17f578ae49 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Fri, 25 Sep 2015 09:41:05 +0200
Subject: notes defined in data-notes attributes retain preformatted whitespace
---
plugin/notes/notes.html | 1 +
plugin/notes/notes.js | 2 ++
2 files changed, 3 insertions(+)
(limited to 'plugin/notes/notes.html')
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 0cc8cf6..75f1b9b 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -239,6 +239,7 @@
// No need for updating the notes in case of fragment changes
if ( data.notes ) {
notes.classList.remove( 'hidden' );
+ notesValue.style.whiteSpace = data.whitespace;
if( data.markdown ) {
notesValue.innerHTML = marked( data.notes );
}
diff --git a/plugin/notes/notes.js b/plugin/notes/notes.js
index e42329d..a0e8021 100644
--- a/plugin/notes/notes.js
+++ b/plugin/notes/notes.js
@@ -55,12 +55,14 @@ var RevealNotes = (function() {
type: 'state',
notes: '',
markdown: false,
+ whitespace: 'normal',
state: Reveal.getState()
};
// Look for notes defined in a slide attribute
if( slideElement.hasAttribute( 'data-notes' ) ) {
messageData.notes = slideElement.getAttribute( 'data-notes' );
+ messageData.whitespace = 'pre-wrap';
}
// Look for notes defined in an aside element
--
cgit v1.2.3
From 6d0b52026a773559407a452b94f8ab60d80aac1e Mon Sep 17 00:00:00 2001
From: Benjamin Tan
Date: Sun, 6 Mar 2016 18:28:08 +0800
Subject: Fix query parameter issue in notes plugin.
Closes #1392.---
plugin/notes/notes.html | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'plugin/notes/notes.html')
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 75f1b9b..d0d88dc 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -288,9 +288,10 @@
'backgroundTransition=none'
].join( '&' );
+ var urlSeparator = /?/.test(data.url) ? '&' : '?';
var hash = '#/' + data.state.indexh + '/' + data.state.indexv;
- var currentURL = data.url + '?' + params + '&postMessageEvents=true' + hash;
- var upcomingURL = data.url + '?' + params + '&controls=false' + hash;
+ var currentURL = data.url + urlSeparator + params + '&postMessageEvents=true' + hash;
+ var upcomingURL = data.url + urlSeparator + params + '&controls=false' + hash;
currentSlide = document.createElement( 'iframe' );
currentSlide.setAttribute( 'width', 1280 );
--
cgit v1.2.3
From 922677ac66d6a40eba23e5f9ac3fc10d9145b203 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Wed, 9 Mar 2016 09:37:10 +0100
Subject: fix notes regex #1522 #1392
---
plugin/notes/notes.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'plugin/notes/notes.html')
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index d0d88dc..8523e98 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -288,7 +288,7 @@
'backgroundTransition=none'
].join( '&' );
- var urlSeparator = /?/.test(data.url) ? '&' : '?';
+ var urlSeparator = /\?/.test(data.url) ? '&' : '?';
var hash = '#/' + data.state.indexh + '/' + data.state.indexv;
var currentURL = data.url + urlSeparator + params + '&postMessageEvents=true' + hash;
var upcomingURL = data.url + urlSeparator + params + '&controls=false' + hash;
--
cgit v1.2.3
From 8e3a7f03d189391f88f56b8ac7c96db709d7cba7 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Wed, 9 Mar 2016 09:57:58 +0100
Subject: notes plugin no longer syncs overview mode #1446
---
plugin/notes/notes.html | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
(limited to 'plugin/notes/notes.html')
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 8523e98..c80e77f 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -188,6 +188,10 @@
var data = JSON.parse( event.data );
+ // The overview mode is only useful to the reveal.js instance
+ // where navigation occurs so we don't sync it
+ if( data.state ) delete data.state.overview;
+
// Messages sent by the notes plugin inside of the main window
if( data && data.namespace === 'reveal-notes' ) {
if( data.type === 'connect' ) {
@@ -203,8 +207,10 @@
// Send a message back to notify that the handshake is complete
window.opener.postMessage( JSON.stringify({ namespace: 'reveal-notes', type: 'connected'} ), '*' );
}
- else if( /slidechanged|fragmentshown|fragmenthidden|overviewshown|overviewhidden|paused|resumed/.test( data.eventName ) && currentState !== JSON.stringify( data.state ) ) {
+ else if( /slidechanged|fragmentshown|fragmenthidden|paused|resumed/.test( data.eventName ) && currentState !== JSON.stringify( data.state ) ) {
+
window.opener.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ]} ), '*' );
+
}
}
--
cgit v1.2.3
From ad86772f206d7abd119a8ca7b89a31e237e93584 Mon Sep 17 00:00:00 2001
From: Timothep
Date: Wed, 9 Mar 2016 11:47:23 +0100
Subject: Horizontal 2-1 View for the speaker notes instead of a vertical 1-2
---
plugin/notes/notes.html | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
(limited to 'plugin/notes/notes.html')
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index c80e77f..53d50c3 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -38,8 +38,8 @@
#current-slide {
position: absolute;
- width: 65%;
- height: 100%;
+ width: 50%;
+ height: 50%;
top: 0;
left: 0;
padding-right: 0;
@@ -47,20 +47,19 @@
#upcoming-slide {
position: absolute;
- width: 35%;
- height: 40%;
+ width: 50%;
+ height: 50%;
right: 0;
top: 0;
}
#speaker-controls {
position: absolute;
- top: 40%;
- right: 0;
- width: 35%;
- height: 60%;
+ top: 50%;
+ left: 0;
+ width: 100%;
+ height: 50%;
overflow: auto;
-
font-size: 18px;
}
--
cgit v1.2.3