This commit is contained in:
@@ -120,3 +120,12 @@
|
|||||||
#smileos-window-content img {
|
#smileos-window-content img {
|
||||||
width: 100%;
|
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.loop = true;
|
||||||
music.play();
|
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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<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>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user