From 0d4da71785daba7042069865faa4514ef592002f Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Wed, 24 Apr 2019 21:49:31 +0200 Subject: [PATCH] move bower comps to theme --- theme/templates/_index.html | 42 ++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/theme/templates/_index.html b/theme/templates/_index.html index 187487ce..d7b81f14 100644 --- a/theme/templates/_index.html +++ b/theme/templates/_index.html @@ -11,18 +11,18 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> - <link rel="stylesheet" href="bower_components/reveal.js/css/reveal.min.css"> + <link rel="stylesheet" href="theme/reveal.js/css/reveal.min.css"> - <link rel="stylesheet" href="bower_components/reveal.js/css/theme/lcsb.css" id="theme"> + <link rel="stylesheet" href="theme/reveal.js/css/theme/lcsb.css" id="theme"> <link rel="stylesheet" href="theme/css/style.css"> <!-- For syntax highlighting --> - <link rel="stylesheet" href="bower_components/reveal.js/lib/css/zenburn.css" id="highlight-theme"> + <link rel="stylesheet" href="theme/reveal.js/lib/css/zenburn.css" id="highlight-theme"> <!-- If the query includes 'print-pdf', use the PDF print sheet --> <script> - document.write( '<link rel="stylesheet" href="bower_components/reveal.js/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); + document.write( '<link rel="stylesheet" href="theme/reveal.js/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); </script> <!--[if lt IE 9]> @@ -59,8 +59,8 @@ </div> </div> - <script src="bower_components/reveal.js/lib/js/head.min.js"></script> - <script src="bower_components/reveal.js/js/reveal.min.js"></script> + <script src="theme/reveal.js/lib/js/head.min.js"></script> + <script src="theme/reveal.js/js/reveal.min.js"></script> <script> // Configure Reveal // Full list of configuration options available here: @@ -69,24 +69,32 @@ controls: true, progress: true, history: true, - center: true, + center: false, fragments: true, + // The "normal" size of the presentation, aspect ratio will be preserved + // when the presentation is scaled to fit different resolutions + width: 1600, + height: 1200, + + // Factor of the display size that should remain empty around the content + margin: 0, + + // Bounds for smallest/largest possible scale to apply to content + minScale: 0.2, + maxScale: 1.0, + theme: Reveal.getQueryHash().theme, // available themes are in /css/theme transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none // Optional libraries used to extend on reveal.js dependencies: [ - { src: 'bower_components/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } }, - { src: 'bower_components/reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, - { src: 'bower_components/reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, - { src: 'bower_components/reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, - { src: 'bower_components/reveal.js/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, - { src: 'bower_components/reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, - // { src: 'plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } } - //{ src: 'bower_components/reveal.js/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } } - - { src: 'theme/js/loadhtmlslides.js', condition: function() { return !!document.querySelector( '[data-html]' ); } } + { src: 'theme/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } }, + { src: 'theme/reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, + { src: 'theme/reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, + { src: 'theme/reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, + { src: 'theme/reveal.js/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, + { src: 'theme/reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, ] }); </script> -- GitLab