Skip to content
Snippets Groups Projects
Commit 480dcce8 authored by Goik Martin's avatar Goik Martin
Browse files

Resolving highlight.js crash issue

parent 08331ca9
No related branches found
No related tags found
No related merge requests found
.header-left {
position: absolute;
top: 0%;
left: 0%;
}
.header-right {
position: absolute;
top: 0%;
right: 0%;
}
.footer-center {
position: absolute;
bottom: 0%;
left: 40%;
}
\ No newline at end of file
Reveal.initialize({
center: true,
controls: true,
progress: true,
history: true,
width: '100%',
height: '100%',
plugins: [ RevealHighlight ],
// transition: 'slide',
// transitionSpeed: 'slow',
// backgroundTransition: 'slide'
});
center: true,
width: '70%',
margin: 0.0,
transition: 'none', // none/fade/slide/convex/concave/zoom
math: {
mathjax: 'mathjax/MathJax.js',
config: 'TeX-AMS-MML_HTMLorMML', // See http://docs.mathjax.org/en/latest/config-files.html
},
// Optional reveal.js plugins
dependencies: [
{
src: 'reveal.js/lib/js/classList.js', condition: function () {
return !document.body.classList;
}
},
{
src: 'reveal.js/plugin/markdown/marked.js', condition: function () {
return !!document.querySelector('[data-markdown]');
}
},
{
src: 'reveal.js/plugin/markdown/markdown.js', condition: function () {
return !!document.querySelector('[data-markdown]');
}
},
{
src: 'https://freedocs.mi.hdm-stuttgart.de/lib/highlight.js/highlight.js',
async: true,
callback: function () {
hljs.initHighlightingOnLoad();
}
},
{src: 'reveal.js/plugin/zoom-js/zoom.js', async: true},
{src: 'reveal.js/plugin/notes/notes.js', async: true},
{src: 'reveal.js/plugin/math/math.js', async: true}
]
});
Reveal.addEventListener('slidechanged', function (event) {
$.currHeaderId = '#__HEADER_' + event.currentSlide.getAttribute("id");
......
This diff is collapsed.
......@@ -147,7 +147,7 @@ SAXONCMD=java -cp "${DBOOK_XSL}/tools/lib/saxon9he.jar:/usr/share/java/xercesImp
%.slide: %.slide.xml
${SAXON6CMD} $< ${DBOOK_XSL_CUSTOM}/slide/xsl/slideHdm.xsl ${dbookXslSlideParam}
rsync -a --exclude .git /usr/share/reveal.js .
#cd reveal.js; patch -p1 < ${DBOOK_XSL_CUSTOM}/slide/patch/reveal.css.patch
cd reveal.js; patch -p1 < ${DBOOK_XSL_CUSTOM}/slide/patch/reveal.css.patch
rsync -a ${DBOOK_XSL_CUSTOM}/slide/slideAssets .
touch $*.slide
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment