Closed MichielDeMey closed 10 years ago
This is hacky and problematic, see http://stackoverflow.com/questions/1197575/can-scripts-be-inserted-with-innerhtml. (By the way, I admit the whole loading external html snippets thing is hacky, we should simply concat everything together as part of the (grunt) build
step, but anyway...)
In general, embed your js
as external .js
files and use reveal.js events like slide-changed to execute specific code on specific slides.
Ah, I didn't know about the Reveal events. Thanks for pointing me in the right direction!
This will allow
<script class="live"></script>
tags inside slides to execute their javascript. By default, they don't get executed when inserting them through Ajax calls.