From acfe7c34b4d72c07759f0212f8da9cc1dc2ba442 Mon Sep 17 00:00:00 2001 From: kznrluk Date: Sat, 14 Dec 2024 03:15:03 +0900 Subject: [PATCH] =?UTF-8?q?Font=20Awesome=E3=81=8C=E5=88=A9=E7=94=A8?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=9F=E3=81=AE=E3=81=A7Unicode=E3=81=AB=E5=B7=AE?= =?UTF-8?q?=E3=81=97=E6=9B=BF=E3=81=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 8 ++++++++ static/js/script.js | 6 +++--- static/session.html | 7 +++---- static/style/session.css | 1 + 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/static/index.html b/static/index.html index 4f40f8f..239f4a9 100644 --- a/static/index.html +++ b/static/index.html @@ -170,6 +170,14 @@

よくある質問

更新履歴

+
+
+ 2024-12-14 +
+
+

アイコンが表示されない問題を修正

+
+
2024-12-01 diff --git a/static/js/script.js b/static/js/script.js index 4c06d93..574e484 100644 --- a/static/js/script.js +++ b/static/js/script.js @@ -218,8 +218,8 @@ shareButton.addEventListener('click', () => { }); document.getElementById('volume_button').addEventListener('click', () => { - const muteIconClass = 'fas fa-volume-mute'; - const unmuteIconClass = 'fas fa-volume-up'; + const muteIcon = '🔇'; + const unmuteIcon = '🔊'; store.isMute = !store.isMute; if (!store.isMute) { store.audioInstance = new Audio('/sound/pochi.wav'); @@ -227,7 +227,7 @@ document.getElementById('volume_button').addEventListener('click', () => { } else { store.audioInstance = null; } - document.getElementById('volume_button_icon').className = store.isMute ? muteIconClass : unmuteIconClass; + document.getElementById('volume_button').innerText = store.isMute ? muteIcon : unmuteIcon; }); const simpleBackgroundList = [ diff --git a/static/session.html b/static/session.html index 74bf6dc..90e3893 100644 --- a/static/session.html +++ b/static/session.html @@ -3,7 +3,6 @@ - @@ -76,17 +75,17 @@
diff --git a/static/style/session.css b/static/style/session.css index 37f86ca..e963ebc 100644 --- a/static/style/session.css +++ b/static/style/session.css @@ -326,6 +326,7 @@ body { .controllers__button { border: 0 none; + font-size: 1.4rem; border-radius: 4px; padding: 10px; height: 100%;