Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
303 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
=== Hot new web technologies and how to promote them === | ||
=== Hot new web technologies and how to promote them === | ||
|
||
At this year's Mozilla All Hands one of the sessions was this one. Instead of | ||
sharing slides in Keynote or Powerpoint format we decided to make this a | ||
re-usable way of advocating technologies. | ||
sharing slides in Keynote or Powerpoint format we decided to make this a | ||
re-usable way of advocating technologies. | ||
|
||
For starters, we set up a wiki page on Mozilla where we'll keep screencasts, | ||
For starters, we set up a wiki page on Mozilla where we'll keep screencasts, | ||
explanations and demos to pick and mix for your own presentations: | ||
|
||
https://wiki.mozilla.org/Engagement/Developer_Engagement/Grab_bag | ||
|
||
This here, however is going further. It is an HTML5 presentation based on | ||
This here, however is going further. It is an HTML5 presentation based on | ||
DZSlides that allows you to pick and mix and show the final presentation at | ||
the same time. | ||
the same time. | ||
|
||
You can see it in action at: | ||
|
||
http://icant.co.uk/talks/opentech/ | ||
|
||
Just uncheck the slides you want not to show, and hit the start presentation | ||
button. | ||
|
||
|
||
|
||
Just uncheck the slides you want not to show, and hit the start presentation | ||
button. |
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,59 @@ | ||
(function(){ | ||
|
||
var slides = document.querySelectorAll( 'body > section' ); | ||
var newidx = ~~window.location.hash.split( "#" )[ 1 ]; | ||
if ( newidx ) { | ||
setup(); | ||
} else { | ||
for(var i = 1; slides[i]; i++) { | ||
slides[i].innerHTML += '<input type="checkbox" checked class="check">'; | ||
slides[i].className += ' active'; | ||
} | ||
slides[0].innerHTML += '<p class="presentationinfo">Uncheck the slides below that you don\'t want to include and press the button below to start the presentation. In presentation mode press the N key to toggle the display of notes. <button>Start Presentation</button></p>'; | ||
|
||
var button = slides[ 0 ].querySelector( 'button' ); | ||
|
||
button.addEventListener( 'click', setup ,false ); | ||
|
||
for(var i = 1; slides[i]; i++) { | ||
slides[i].innerHTML += '<input type="checkbox" checked class="check">'; | ||
slides[i].className += ' active'; | ||
} | ||
|
||
slides[0].innerHTML += ''+ | ||
'<p class="presentationinfo">Uncheck the slides below that you don\'t '+ | ||
'want to include and press the button below to start the presentation.'+ | ||
' In presentation mode press the N key to toggle the display of notes.'+ | ||
' <button>Start Presentation</button></p>'; | ||
|
||
var button = slides[ 0 ].querySelector( 'button' ); | ||
button.addEventListener( 'click', setup ,false ); | ||
if ( newidx ) { | ||
setup(); | ||
} | ||
function setup( ev ) { | ||
|
||
for ( var i = 1; slides[i]; i++ ) { | ||
if ( slides[ i ].className.indexOf( 'remove' ) !== -1 ) { | ||
slides[ i ].parentNode.removeChild( slides[ i ] ); | ||
} | ||
} | ||
var info = document.querySelector( '.presentationinfo' ); | ||
if ( info ) { info.style.display = 'none'; } | ||
|
||
document.querySelector( 'link' ).disabled = true; | ||
|
||
var link = document.createElement( 'link' ); | ||
link.href = 'styles/styles.css'; | ||
link.rel = 'StyleSheet'; | ||
document.querySelector( 'head' ).appendChild( link ); | ||
|
||
var s = document.createElement( 'script' ); | ||
s.src = 'js/dzslides.js'; | ||
document.querySelector( 'head' ).appendChild( s ); | ||
|
||
if(ev){ ev.preventDefault(); } | ||
|
||
} | ||
|
||
document.addEventListener( 'click', function( ev ) { | ||
|
||
var t = ev.target; | ||
if( t.tagName === 'INPUT' && t.className.indexOf( 'check' ) !== -1 ) { | ||
var mom = t.parentNode; | ||
if( mom.className.indexOf('active') !== -1 ) { | ||
if( mom.className.indexOf( 'active' ) !== -1 ) { | ||
mom.className = mom.className.replace( 'active', 'remove' ); | ||
} else { | ||
mom.className = mom.className.replace( 'remove', 'active' ); | ||
} | ||
} | ||
|
||
}, false ); | ||
|
||
})(); |
Oops, something went wrong.