This commit is contained in:
@@ -120,3 +120,12 @@
|
||||
#smileos-window-content img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#smileos-restart-music {
|
||||
color: #FF4343;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#smileos-restart-music:hover {
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -93,3 +93,11 @@ document.addEventListener("DOMContentLoaded", async function() {
|
||||
music.loop = true;
|
||||
music.play();
|
||||
});
|
||||
|
||||
document.getElementById("smileos-restart-music").addEventListener("click", async function() {
|
||||
await playAudio('/static/content/smileos/SmileOS2Startup.ogx');
|
||||
|
||||
var music = new Audio('/static/content/smileos/Shopmusic.ogx');
|
||||
music.loop = true;
|
||||
music.play();
|
||||
});
|
||||
@@ -49,7 +49,10 @@
|
||||
</div>
|
||||
</section>
|
||||
<section>
|
||||
Note: this page has background music, you may have to allow the music in the browser and refesh to let it play :P
|
||||
<p>
|
||||
Note: this page has background music, you may have to allow the music in the browser and refesh to let it play, or you can try
|
||||
press <a id="smileos-restart-music">this</a> to restart it
|
||||
</p>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user