explode
This commit is contained in:
parent
56eb9e3f0d
commit
ef815cc443
6 changed files with 2 additions and 2 deletions
BIN
game.ico
Normal file
BIN
game.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
BIN
game.png
BIN
game.png
Binary file not shown.
Before Width: | Height: | Size: 4.3 KiB |
|
@ -31,7 +31,7 @@
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
<div id="presence" style="display: none; margin-bottom: 12px;">
|
<div id="presence" style="display: none; margin-bottom: 12px;">
|
||||||
<img src="game.png" id="presence-icon">
|
<img src="game.ico" id="presence-icon">
|
||||||
<p id="presence-content"></p>
|
<p id="presence-content"></p>
|
||||||
</div>
|
</div>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
2
index.js
2
index.js
|
@ -53,7 +53,7 @@ function onUpdate(data) {
|
||||||
});
|
});
|
||||||
document.getElementById("presence").style.display = content == "" ? "none": "flex"
|
document.getElementById("presence").style.display = content == "" ? "none": "flex"
|
||||||
document.getElementById("presence-content").innerText = content
|
document.getElementById("presence-content").innerText = content
|
||||||
document.getElementById("presence-icon").src = listening ? "music.png" : "game.png"
|
document.getElementById("presence-icon").src = listening ? "music.ico" : "game.ico"
|
||||||
}
|
}
|
||||||
LanyardWrapper.connectWebSocket("886685857560539176", onUpdate)
|
LanyardWrapper.connectWebSocket("886685857560539176", onUpdate)
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
|
BIN
music.ico
Normal file
BIN
music.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 81 KiB |
BIN
music.png
BIN
music.png
Binary file not shown.
Before Width: | Height: | Size: 4.9 KiB |
Loading…
Reference in a new issue