diff options
author | Cheng-Han, Wu | 2016-02-16 20:08:44 -0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-02-16 20:08:44 -0800 |
commit | b2b1be3dda406312add39997ad8bd9494f20b7f8 (patch) | |
tree | 997403359ffc0f585fa52752c399ce87287222c3 /public/views/slide | |
parent | 3f2f063e9b6c6d36169f6acefc27df87d0bd176b (diff) |
Support set url path and use relative url, move raphael to bower and fixed minor issue in history
Diffstat (limited to 'public/views/slide')
-rw-r--r-- | public/views/slide/listing.hbs | 2 | ||||
-rw-r--r-- | public/views/slide/reveal.hbs | 40 |
2 files changed, 21 insertions, 21 deletions
diff --git a/public/views/slide/listing.hbs b/public/views/slide/listing.hbs index 371f4ac3..7da8ebab 100644 --- a/public/views/slide/listing.hbs +++ b/public/views/slide/listing.hbs @@ -3,7 +3,7 @@ <head> <meta charset="utf-8"> <title>Directory Listing</title> - <link rel="stylesheet" href="/vendor/reveal.js/{{{theme}}}" id="theme"> + <link rel="stylesheet" href="{{{url}}}/vendor/reveal.js/{{{theme}}}" id="theme"> <style type="text/css"> body { margin: 1em; diff --git a/public/views/slide/reveal.hbs b/public/views/slide/reveal.hbs index fd87ddb3..8a93c267 100644 --- a/public/views/slide/reveal.hbs +++ b/public/views/slide/reveal.hbs @@ -6,19 +6,19 @@ <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="mobile-web-app-capable" content="yes"> <title>{{title}}</title> - <link rel="icon" type="image/png" href="https://hackmd.io/favicon.png"> - <link rel="apple-touch-icon" href="https://hackmd.io/apple-touch-icon.png"> + <link rel="icon" type="image/png" href="{{{url}}}/favicon.png"> + <link rel="apple-touch-icon" href="{{{url}}}/apple-touch-icon.png"> - <link rel="stylesheet" href="/vendor/reveal.js/css/reveal.css"> - <link rel="stylesheet" href="/vendor/reveal.js/{{{theme}}}" id="theme"> + <link rel="stylesheet" href="{{{url}}}/vendor/reveal.js/css/reveal.css"> + <link rel="stylesheet" href="{{{url}}}/vendor/reveal.js/{{{theme}}}" id="theme"> <!-- For syntax highlighting --> - <link rel="stylesheet" href="/vendor/reveal.js/lib/css/{{{highlightTheme}}}.css"> - <link rel="stylesheet" href="/css/site.css"> - <link rel="stylesheet" href="/css/slide.css"> + <link rel="stylesheet" href="{{{url}}}/vendor/reveal.js/lib/css/{{{highlightTheme}}}.css"> + <link rel="stylesheet" href="{{{url}}}/css/site.css"> + <link rel="stylesheet" href="{{{url}}}/css/slide.css"> <!-- If the query includes 'print-pdf', use the PDF print sheet --> <script> - document.write( '<link rel="stylesheet" href="/vendor/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="{{{url}}}/vendor/reveal.js/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); </script> <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> </head> @@ -27,12 +27,12 @@ <div class="reveal"> <div class="slides">{{{slides}}}</div> </div> - - <script src="/vendor/reveal.js/lib/js/head.min.js"></script> - <script src="/vendor/reveal.js/js/reveal.js"></script> - <script src="/vendor/string.min.js"></script> - <script src="/vendor/xss/dist/xss.min.js"></script> - <script src="/js/render.js"></script> + + <script src="{{{url}}}/vendor/reveal.js/lib/js/head.min.js"></script> + <script src="{{{url}}}/vendor/reveal.js/js/reveal.js"></script> + <script src="{{{url}}}/vendor/string.min.js"></script> + <script src="{{{url}}}/vendor/xss/dist/xss.min.js"></script> + <script src="{{{url}}}/js/render.js"></script> <script> var body = $(".slides").html(); @@ -53,12 +53,12 @@ // Optional libraries used to extend on reveal.js var deps = [ - { src: '/vendor/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } }, - { src: '/vendor/reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector('[data-markdown]'); } }, - { src: '/js/reveal-markdown.js', condition: function() { return !!document.querySelector('[data-markdown]'); } }, - { src: '/vendor/reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, - { src: '/vendor/reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, - { src: '/vendor/reveal.js/plugin/math/math.js', async: true } + { src: '{{{url}}}/vendor/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } }, + { src: '{{{url}}}/vendor/reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector('[data-markdown]'); } }, + { src: '{{{url}}}/js/reveal-markdown.js', condition: function() { return !!document.querySelector('[data-markdown]'); } }, + { src: '{{{url}}}/vendor/reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, + { src: '{{{url}}}/vendor/reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, + { src: '{{{url}}}/vendor/reveal.js/plugin/math/math.js', async: true } ]; // default options to init reveal.js |