Skip to content

Commit

Permalink
Font Awesomeが利用できなくなっていたのでUnicodeに差し替え
Browse files Browse the repository at this point in the history
  • Loading branch information
kznrluk committed Dec 13, 2024
1 parent fddbb61 commit acfe7c3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,14 @@ <h4 class="howto__head"><a href="manual.html">よくある質問</a></h4>
<div class="changelog">
<h4 class="changelog__head">更新履歴</h4>
<div class="changelog__list">
<div class="changelog__content">
<div class="changelog__date">
2024-12-14
</div>
<div class="changelog__description">
<p>アイコンが表示されない問題を修正</p>
</div>
</div>
<div class="changelog__content">
<div class="changelog__date">
2024-12-01
Expand Down
6 changes: 3 additions & 3 deletions static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,16 @@ 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');
store.audioInstance.play();
} 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 = [
Expand Down
7 changes: 3 additions & 4 deletions static/session.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<script src="js/socket.io.min.js"></script>
<script type="module" src="js/script.js"></script>
<script src="https://kit.fontawesome.com/0c1dabc956.js" crossorigin="anonymous"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="style/session.css">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
Expand Down Expand Up @@ -76,17 +75,17 @@
<div class="controllers">
<div class="controllers__item">
<button id="openShareModal" class="controllers__button controllers__button--shadow">
<i class="fas fa-share-alt"></i>
🔗
</button>
</div>
<div class="controllers__item">
<button id="volume_button" class="controllers__button controllers__button--shadow">
<i id="volume_button_icon" class="fas fa-volume-mute"></i>
🔇
</button>
</div>
<div class="controllers__item">
<button id="image_button" class="controllers__button controllers__button--shadow">
<i class="far fa-images"></i>
🖼️
</button>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions static/style/session.css
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ body {

.controllers__button {
border: 0 none;
font-size: 1.4rem;
border-radius: 4px;
padding: 10px;
height: 100%;
Expand Down

0 comments on commit acfe7c3

Please sign in to comment.