更新
This commit is contained in:
parent
1646a276ce
commit
5109ccbeed
@ -71,11 +71,11 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
render() {
|
||||
if (!this.options.id) return (this.innerHTML = '网易云歌曲ID未填写!');
|
||||
this.innerHTML = '<span style="display: block" class="_content"></span>';
|
||||
fetch('https://api.i-meto.com/meting/api?server=netease&type=song&id=' + this.options.id).then(async response => {
|
||||
fetch('https://vvhan.com/usr/themes/Joe/NeteaseCloudMusicApi.php?id=' + this.options.id).then(async response => {
|
||||
const audio = await response.json();
|
||||
new APlayer({
|
||||
container: getChildren(this, '_content'),
|
||||
lrcType: 3,
|
||||
lrcType: 1,
|
||||
theme: this.options.color,
|
||||
autoplay: this.options.autoplay,
|
||||
audio
|
||||
|
2
assets/js/joe.short.min.js
vendored
2
assets/js/joe.short.min.js
vendored
File diff suppressed because one or more lines are too long
@ -189,7 +189,7 @@ class Editor
|
||||
<script src="https://cdn.jsdelivr.net/npm/typecho-joe-next@6.2.4/plugin/prism/prism.min.js"></script>
|
||||
<script src="<?php Helper::options()->themeUrl('typecho/write/parse/parse.min.js') ?>"></script>
|
||||
<script src="<?php Helper::options()->themeUrl('typecho/write/dist/index.js?v=20210602') ?>" type="module"></script>
|
||||
<script src="<?php Helper::options()->themeUrl('assets/js/joe.short.min.js') ?>"></script>
|
||||
<script src="<?php Helper::options()->themeUrl('assets/js/joe.short.min.js?v=20210602') ?>"></script>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -40,6 +40,6 @@
|
||||
<?php if ($this->options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?>
|
||||
<script src="<?php $this->options->themeUrl('assets/cursor/' . $this->options->JCursorEffects); ?>" async></script>
|
||||
<?php endif; ?>
|
||||
<script src="<?php $this->options->themeUrl('assets/js/joe.global.min.js?v=20210525'); ?>"></script>
|
||||
<script src="<?php $this->options->themeUrl('assets/js/joe.short.min.js'); ?>"></script>
|
||||
<script src="<?php $this->options->themeUrl('assets/js/joe.global.min.js'); ?>"></script>
|
||||
<script src="<?php $this->options->themeUrl('assets/js/joe.short.min.js?v=20210602'); ?>"></script>
|
||||
<?php $this->options->JCustomHeadEnd() ?>
|
||||
|
Loading…
Reference in New Issue
Block a user