Skip to content

Commit

Permalink
fix: revealjs static files path
Browse files Browse the repository at this point in the history
  • Loading branch information
linyibing committed Mar 17, 2024
1 parent e9258cd commit 731fc22
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion source/res/revealjs/plugin/notes-server/notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h4 class="label">Notes</h4>
</div>

<script src="/socket.io/socket.io.js"></script>
<script src="/plugin/markdown/marked.js"></script>
<script src="/res/revealjs/plugin/markdown/marked.js"></script>

<script>
(function() {
Expand Down
2 changes: 1 addition & 1 deletion source/res/revealjs/plugin/notes/notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h4 class="label">Notes</h4>
</div>
</div>

<script src="../../plugin/markdown/marked.js"></script>
<script src="/res/revealjs/plugin/markdown/marked.js"></script>
<script>

(function() {
Expand Down
16 changes: 8 additions & 8 deletions source/res/share/2016-07-29.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<script type="text/template">
## 基于Nodejs的公众号开发
#### 扫我聊我
![扫我关注](images/2016-07-29/2.jpg)
![扫我关注](/share-img/2016-07-29/2.jpg)
</script>
</section>
<section data-markdown>
Expand All @@ -37,7 +37,7 @@
<section data-markdown>
<script type="text/template">
### 填写服务器配置
![](images/2016-07-29/1.png)
![](/share-img/2016-07-29/1.png)
</script>
</section>
<section data-markdown>
Expand Down Expand Up @@ -218,19 +218,19 @@

// Optional reveal.js plugins
dependencies: [
{src: './lib/js/classList.js', condition: function () { return !document.body.classList; }},
{src : './plugin/markdown/marked.js',
{src: '/res/revealjs/lib/js/classList.js', condition: function () { return !document.body.classList; }},
{src : '/res/revealjs/plugin/markdown/marked.js',
condition: function () { return !!document.querySelector('[data-markdown]'); }
},
{src : './plugin/markdown/markdown.js',
{src : '/res/revealjs/plugin/markdown/markdown.js',
condition: function () { return !!document.querySelector('[data-markdown]'); }
},
{src : './plugin/highlight/highlight.js',
{src : '/res/revealjs/plugin/highlight/highlight.js',
condition: function () { console.log(document.querySelector('pre code')); return !!document.querySelector('pre code'); },
callback : function () { hljs.initHighlightingOnLoad(); }
},
{src: './plugin/zoom-js/zoom.js', async: true},
{src: './plugin/notes/notes.js', async: true}
{src: '/res/revealjs/plugin/zoom-js/zoom.js', async: true},
{src: '/res/revealjs/plugin/notes/notes.js', async: true}
]
});

Expand Down

0 comments on commit 731fc22

Please sign in to comment.