修改音乐控件键盘事件

This commit is contained in:
底层用户 2022-07-14 16:25:08 +08:00
parent fa99da9260
commit e3ea1e7364
4 changed files with 10 additions and 4 deletions

View File

@ -5,7 +5,7 @@
简单的小主页,原来的看够了,重新弄了一个
</p>
![無名の主页](https://img.imsyy.top/other/imsyy-home.webp)
![無名の主页](https://s2.loli.net/2022/07/14/K5JigfvDoNewtuS.webp)
>主页的 Logo 字体已经过压缩,若用本站 Logo 以外的字母会变回默认字体,这里是 [完整字体](https://file.imsyy.top/font/Pacifico-Regular.ttf)

View File

@ -5,7 +5,7 @@ English | [Chinese](./README.md)
Simple little homepage, had enough of the original one and made a new one
</p>
![無名の主页](https://img.imsyy.top/other/imsyy-home.webp)
![無名の主页](https://s2.loli.net/2022/07/14/K5JigfvDoNewtuS.webp)
>The logo font on the home page has been compressed, so if you use a font other than this logo, it will change back to the default font, Here is the [full font](https://file.imsyy.top/font/Pacifico-Regular.ttf)

View File

@ -100,7 +100,7 @@
<div class="des" id="des">
<i class="fa-solid fa-quote-left"></i>
<div class="des-title"><span id="change">Hello&nbsp;World&nbsp;!</span><br /><span
id="change1">一个建立于 21 世纪的小站,存活于互联网的边缘</span></div>
id="change1">一个建立于 21 世纪的小站,主域名正在备案中</span></div>
<i class="fa-solid fa-quote-right"></i>
</div>
</div>

View File

@ -109,6 +109,12 @@ $.ajax({
$("#music-name").html($(".aplayer-title").text() + $(".aplayer-author").text());
});
window.onkeydown = function (e) {
if (e.keyCode == 32) {
ap.toggle();
}
}
/* 打开音乐列表 */
$('#music-open').on('click', function () {
if ($(document).width() >= 990) {