lundi 9 mars 2015

Javascript Include Tags in

To enable markdown in Reveal.js this script is needed:



Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,

transition: 'slide',

dependencies: [
// Cross-browser shim that fully implements classList - http://ift.tt/1vZeZ06
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },

// Interpret Markdown in <section> elements
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
]
});


As I'm implementing this in a rails view, how can I get those src's working?


Aucun commentaire:

Enregistrer un commentaire