Adjust styling after code review
This commit is contained in:
parent
d5cc38e666
commit
0fe9b48470
12
shower.js
12
shower.js
|
@ -316,15 +316,17 @@ window.shower = (function(window, document, undefined) {
|
||||||
*/
|
*/
|
||||||
shower.showPresenterNotes = function(slideNumber) {
|
shower.showPresenterNotes = function(slideNumber) {
|
||||||
if (window.console) {
|
if (window.console) {
|
||||||
var slide = slideList[ shower._normalizeSlideNumber(slideNumber) ].id;
|
slideNumber = shower._normalizeSlideNumber(slideNumber);
|
||||||
var nextSlide = slideList[ shower._normalizeSlideNumber(slideNumber + 1) ].id;
|
|
||||||
|
|
||||||
var notes = document.getElementById(slide).querySelector('.presenter-notes');
|
var slideId = slideList[slideNumber].id;
|
||||||
|
var nextSlideId = slideList[slideNumber + 1] ? slideList[slideNumber + 1].id : null;
|
||||||
|
|
||||||
|
var notes = document.getElementById(slideId).querySelector('.presenter-notes');
|
||||||
if (notes) {
|
if (notes) {
|
||||||
console.info(notes.innerHTML.replace(/\n\s+/g,'\n'));
|
console.info(notes.innerHTML.replace(/\n\s+/g,'\n'));
|
||||||
}
|
}
|
||||||
if (nextSlide !== slide) {
|
if (nextSlideId) {
|
||||||
var next = document.getElementById(nextSlide).querySelector('h2');
|
var next = document.getElementById(nextSlideId).querySelector('h2');
|
||||||
if (next) {
|
if (next) {
|
||||||
next = next.innerHTML.replace(/^\s+|<[^>]+>/g,'');
|
next = next.innerHTML.replace(/^\s+|<[^>]+>/g,'');
|
||||||
console.info('NEXT: ' + next);
|
console.info('NEXT: ' + next);
|
||||||
|
|
Loading…
Reference in New Issue