Skip to content

Commit

Permalink
create music.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lnw143 committed Jul 15, 2024
1 parent 3031c8b commit 5956942
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
11 changes: 11 additions & 0 deletions docs/javascripts/music.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
window.onload = function() {
$('body').append(`<meting-js
server="netease"
type="playlist"
id="12306622175"
style="position: fixed; bottom: 0px; right: 0px; width: 500px;"
>
</meting-js>`)

console.log("music.js loaded")
}
1 change: 0 additions & 1 deletion hooks/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions hooks/music.py

This file was deleted.

8 changes: 3 additions & 5 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,14 @@ markdown_extensions:

extra_javascript:
- javascripts/katex.js
- javascripts/music.js
- https://unpkg.com/katex@0/dist/katex.min.js
- https://unpkg.com/katex@0/dist/contrib/auto-render.min.js
- https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js
- https://unpkg.com/jquery@3.4.1/dist/jquery.js
- https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.10.1/APlayer.min.js
- https://cdn.jsdelivr.net/npm/[email protected]/dist/Meting.min.js

extra_css:
- https://unpkg.com/katex@0/dist/katex.min.css
- stylesheets/extra.css
- https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.10.1/APlayer.min.css

hooks:
- hooks/music.py
- https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.10.1/APlayer.min.css

0 comments on commit 5956942

Please sign in to comment.