From 611688bdb6c810056f5beb62e8d566f1bf0aab10 Mon Sep 17 00:00:00 2001 From: caandt Date: Wed, 18 Sep 2024 23:33:17 -0500 Subject: [PATCH] songlist --- static/music.js | 5 +++-- static/songlist.json | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/static/music.js b/static/music.js index be9b9ba..79f099c 100644 --- a/static/music.js +++ b/static/music.js @@ -72,8 +72,9 @@ let n = 0; function _playSong() { let song = songs[n] ?? songs[n = 0]; audio.src = song.href; - if (song.src) popup(`\u266b - ${song.src} (${song.artist}) - ${song.name}`); - else popup(`\u266b - ${song.artist} - ${song.name}`); + popup(song.src + ? `\u266b - ${song.src} (${song.artist}) - ${song.name}` + : `\u266b - ${song.artist} - ${song.name}`); audio.play(); play.children[1].textContent = '\u23F8' } diff --git a/static/songlist.json b/static/songlist.json index ab1a6f1..cf59a0a 100644 --- a/static/songlist.json +++ b/static/songlist.json @@ -125,6 +125,24 @@ "href": "/music/1-07. Virtual Storm Hard Arrange.mp3", "src": "ブルーアーカイブ" }, + { + "name": "右往左往", + "artist": "平田博信", + "href": "/music/06. 平田博信 - 右往左往.mp3", + "src": "君と彼女と彼女の恋。" + }, + { + "name": "愛の夢 [orig: Franz Liszt - Liebestraum No. 3]", + "artist": "平田博信", + "href": "/music/01. 平田博信 - 愛の夢.mp3", + "src": "君と彼女と彼女の恋。" + }, + { + "name": "衝動・衝動", + "artist": "平田博信", + "href": "/music/25. 平田博信 - 衝動·衝動.mp3", + "src": "君と彼女と彼女の恋。" + }, { "name": "音に出来る事", "artist": "H.B STUDIO",