Last active
December 16, 2015 16:08
-
-
Save cfjedimaster/5460602 to your computer and use it in GitHub Desktop.
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
document.addEventListener("DOMContentLoaded", init, false); | |
function init() { | |
console.log("Run my init, yo!"); | |
var cblocks = document.querySelectorAll("pre code"); | |
if(cblocks.length) { | |
for(var i=0, len=cblocks.length; i<len; i++) { | |
var dom = cblocks[i]; | |
var html = dom.innerHTML; | |
html = html.replace(/</g,"<").replace(/>/g,">"); | |
dom.innerHTML = html; | |
} | |
} | |
// Full list of configuration options available here: | |
// https://github.com/hakimel/reveal.js#configuration | |
Reveal.initialize({ | |
controls: true, | |
progress: true, | |
history: true, | |
center: true, | |
//i cut some stuff out here to save space in the code block | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment