Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Last active December 16, 2015 16:08
Show Gist options
  • Save cfjedimaster/5460602 to your computer and use it in GitHub Desktop.
Save cfjedimaster/5460602 to your computer and use it in GitHub Desktop.
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,"&lt;").replace(/>/g,"&gt;");
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