diff --git a/xiaomusic/static/default/debug.html b/xiaomusic/static/default/debug.html index 3caa92b..89e98fa 100644 --- a/xiaomusic/static/default/debug.html +++ b/xiaomusic/static/default/debug.html @@ -6,9 +6,9 @@ Debug For XiaoMusic - + - + diff --git a/xiaomusic/static/default/downloadtool.html b/xiaomusic/static/default/downloadtool.html index f5c881c..6a21ed0 100644 --- a/xiaomusic/static/default/downloadtool.html +++ b/xiaomusic/static/default/downloadtool.html @@ -4,8 +4,8 @@ 歌曲下载工具 - - + + diff --git a/xiaomusic/static/default/index.html b/xiaomusic/static/default/index.html index ec4e9c2..0fc7adb 100644 --- a/xiaomusic/static/default/index.html +++ b/xiaomusic/static/default/index.html @@ -6,8 +6,8 @@ 小爱音箱操控面板 - - + + @@ -182,7 +182,7 @@ Powered by XiaoMusic - diff --git a/xiaomusic/static/default/m3u.html b/xiaomusic/static/default/m3u.html index 0382c99..da1a6bc 100644 --- a/xiaomusic/static/default/m3u.html +++ b/xiaomusic/static/default/m3u.html @@ -5,7 +5,7 @@ M3U to JSON Converter - + diff --git a/xiaomusic/static/default/setting.html b/xiaomusic/static/default/setting.html index c044b0f..b432341 100644 --- a/xiaomusic/static/default/setting.html +++ b/xiaomusic/static/default/setting.html @@ -5,9 +5,9 @@ 小爱音箱操控面板 - - - + + + diff --git a/xiaomusic/static/default/style.css b/xiaomusic/static/default/style.css deleted file mode 100644 index b2688e0..0000000 --- a/xiaomusic/static/default/style.css +++ /dev/null @@ -1,165 +0,0 @@ -.button { - line-height: 50px; - font-size: 14px; -} -button, .button { - margin: 10px; - width: 100px; - height: 50px; - border: none; - color: white; - text-align: center; - text-decoration: none; - display: inline-block; - border-radius: 10px; - background-color: #008CBA; -} -button:active, .button:active { - font-weight:bold; - background-color: #007CBA; - transform: translateY(2px); -} -label { - margin-left: 10px; -} -input,select { - margin-left: 5%; - margin-right: 5%; - margin-top: 10px; - margin-bottom: 10px; - width: 90%; - max-width: 400px; - height: 40px; -} - -.rows { - display: flex; - flex-direction: column; - justify-content: center; -} - -footer { - bottom: 0; - width: 100%; - text-align: center; - padding: 10px 0; -} - - textarea{ - margin-left: 5%; - margin-right: 5%; - margin-top: 10px; - margin-bottom: 10px; - width: 90%; - max-width: 400px; - height: 200px; -} - -.custom-checkbox { - display: inline-block; - margin: 10px; - width: 20px; - height: 20px; - vertical-align: middle; /* 确保与标签垂直居中对齐 */ -} - -.checkbox-label { - display: inline-block; - width: 260px; - background-color: #fff; - border: 0px solid #ccc; - border-radius: 3px; - position: relative; - cursor: pointer; - vertical-align: middle; /* 确保与复选框垂直居中对齐 */ - margin-left: 1px; /* 给复选框和标签之间一些距离,如果需要的话 */ -} - -.text { - margin: 10px; - width: 150px; - height: 50px; - text-align: center; - text-decoration: none; - display: inline-block; -} - -.qrcode { - width: 100%; - max-width: 480px; - height: auto; -} - -@keyframes blink { - 0%, 100% { opacity: 1; } - 50% { opacity: 0; } -} - -.blink { - animation: blink 1s infinite; -} - -.login-tips { - color: red; - font-size: 12px; - margin-left: 10px; -} -.login-tips a { - color: rgb(9, 105, 218); - text-decoration: underline; -} -#valid-host { - padding: 20px; - border: none; - border-radius: 10px; - background-color: #fff; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); -} - -#valid-host::backdrop { - background-color: rgba(0, 0, 0, 0.5); -} - - -#valid-host form input { - width: fit-content; - margin: 0; - height: fit-content; -} -#valid-host p { - word-break: break-all; -} -#valid-host p span { - color: red; -} -#valid-host a, #valid-host a:visited { - color: rgb(9, 105, 218);; - text-decoration: underline; - display: flex; - align-items: center; -} -#valid-host a:hover { - color: rgb(9, 95, 198); -} -#valid-host .btn-list { - display: flex; - justify-content: center; - margin-top: 20px; -} - -#valid-host .btn-list button { - width: fit-content; - min-width: 60px; - height: 40px; - border: none; - color: white; - text-align: center; - text-decoration: none; - display: inline-block; - border-radius: 10px; - background-color: #008CBA; -} -#valid-host .btn-list button:hover { - font-weight:bold; - background-color: #007CBA; -} \ No newline at end of file diff --git a/xiaomusic/static/default_past/app.js b/xiaomusic/static/default_past/app.js index 2df7b6d..48d75b8 100644 --- a/xiaomusic/static/default_past/app.js +++ b/xiaomusic/static/default_past/app.js @@ -155,7 +155,7 @@ $(function(){ } else { // 使用本地记录的 playlist = localStorage.getItem('cur_playlist'); - if (data.includes(playlist)) { + if (data.hasOwnProperty(playlist)) { $('#music_list').val(playlist); $('#music_list').trigger('change'); }