Skip to content

Commit

Permalink
feat: auto upload
Browse files Browse the repository at this point in the history
  • Loading branch information
WL2O2O committed Dec 21, 2023
1 parent 7987eda commit ff85633
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
<select id="handle" onchange="handleSelection(this)">
<option value="hot-songs">热歌榜</option>
<option value="pop-songs">飙升榜</option>
<option value="zh-songs">新歌榜</option>
<option value="new-songs">新歌榜</option>
<option value="tk-songs">抖音榜</option>
<option value="elec-songs">电音榜</option>
</select>
Expand All @@ -213,10 +213,10 @@
<script>
// 设置一个状态,用于防止无限次执行
var animationExecuted = false;
var selectedValue = "";
var MUSIC_SORT = "";
var selectedValue = "hot-songs";
var MUSIC_SORT = "https://api.uomg.com/api/rand.music?sort=热歌榜";
const MUSIC_SORT_HOT = "https://api.uomg.com/api/rand.music?sort=热歌榜";
const MUSIC_SORT_ZH = "https://api.uomg.com/api/rand.music?sort=新歌榜";
const MUSIC_SORT_NEW = "https://api.uomg.com/api/rand.music?sort=新歌榜";
const MUSIC_SORT_POP = "https://api.uomg.com/api/rand.music?sort=飙升榜";
const MUSIC_SORT_TK = "https://api.uomg.com/api/rand.music?sort=抖音榜";
const MUSIC_SORT_ELEC = "https://api.uomg.com/api/rand.music?sort=电音榜";
Expand All @@ -225,10 +225,8 @@
}
function runHighEffect(handle) {
if (selectedValue === "hot-songs") {
MUSIC_SORT = MUSIC_SORT_HOT;
} else if (selectedValue === "zh-songs") {
MUSIC_SORT = MUSIC_SORT_ZH;
if (selectedValue === "new-songs") {
MUSIC_SORT = MUSIC_SORT_NEW;
} else if (selectedValue === "tk-songs") {
MUSIC_SORT = MUSIC_SORT_TK;
} else if (selectedValue === "pop-songs") {
Expand Down

0 comments on commit ff85633

Please sign in to comment.