diff --git a/themes/superstar/_www/new-songs.html b/themes/superstar/_www/new-songs.html index 0cb3a87..fd12402 100644 --- a/themes/superstar/_www/new-songs.html +++ b/themes/superstar/_www/new-songs.html @@ -254,7 +254,7 @@ 歌名 歌手 - 語別 + @@ -270,7 +270,7 @@

歌名:

編號:

歌手:

-

語別:

+ diff --git a/themes/superstar/_www/sound-control.html b/themes/superstar/_www/sound-control.html index be26a0c..6c5e639 100644 --- a/themes/superstar/_www/sound-control.html +++ b/themes/superstar/_www/sound-control.html @@ -80,14 +80,20 @@ } .content { display: grid; - grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); - gap: 5px; + grid-template-columns: repeat(3, 1fr); /* 固定3欄 */ + gap: 5px; /* 移除格子之間的空隙 */ + margin: 0; /* 沒有外邊距 */ + padding: 0; /* 沒有內邊距 */ + width: 36.5vw; /* 滿版寬度 */ } @media (max-width: 600px) { .content { display: grid; - grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); - gap: 10px; + grid-template-columns: repeat(3, 1fr); /* 固定3欄 */ + gap: 5px; /* 移除格子之間的空隙 */ + margin: 0; /* 沒有外邊距 */ + padding: 0; /* 沒有內邊距 */ + width: 78vw; /* 滿版寬度 */ } } .card { diff --git a/themes/superstar/_www/top-ranking.html b/themes/superstar/_www/top-ranking.html index 21f953c..18df707 100644 --- a/themes/superstar/_www/top-ranking.html +++ b/themes/superstar/_www/top-ranking.html @@ -259,7 +259,7 @@ 歌名 歌手 - 語別 + @@ -275,7 +275,7 @@

歌名:

編號:

歌手:

-

語別:

+ @@ -348,6 +348,7 @@ }) .then(response => response.json()) .then(data => { + console.log('回傳資料',data); const tableBody = document.querySelector('#results-table tbody'); tableBody.innerHTML = ''; @@ -355,15 +356,15 @@ const row = document.createElement('tr'); const songNameCell = document.createElement('td'); const singerCell = document.createElement('td'); - const languageCell = document.createElement('td'); + // const languageCell = document.createElement('td'); songNameCell.textContent = song.Song; singerCell.textContent = song.ArtistA; - languageCell.textContent = song.Category; + //languageCell.textContent = song.Category; row.appendChild(songNameCell); row.appendChild(singerCell); - row.appendChild(languageCell); + //row.appendChild(languageCell); row.addEventListener('click', (e) => { e.preventDefault(); // 阻止默認行為 @@ -376,7 +377,7 @@ document.getElementById('detail-song-name').textContent = song.Song; document.getElementById('detail-song-number').textContent = song.SongNumber; document.getElementById('detail-singer').textContent = song.ArtistA; - document.getElementById('detail-language').textContent = song.Category; + //document.getElementById('detail-language').textContent = song.Category; // 顯示詳情視窗和遮罩 document.getElementById('song-details').style.display = 'block';