Improve Start + Patch Test Page

This commit is contained in:
DaGammla
2022-11-28 13:48:55 +01:00
parent ca72af8db6
commit 3e74fed65f
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -27,7 +27,7 @@
audio.loop = true
document.body.appendChild(audio)
const listenEvents = ["keydown", "click"]
const listenEvents = ["keydown", "pointerdown", "click"]
const addAllListeners = (listener) => {
listenEvents.forEach(ev => {
@@ -52,9 +52,10 @@
audio.muted = false
audio.loop = false
audio.onended = reload
removeAllListeners(startMedia)
}
audio.onplaying = () => removeAllListeners(startMedia)
addAllListeners(startMedia)
}
})()
+1 -1
View File
@@ -1,3 +1,3 @@
<script defer src="/keep.js"></script>
<script defer src="https://dagammla.gitlab.io/keep-silk-open/keep.js"></script>
<h1>Test Page</h1>
<p>This page should stay open on your Amazon Echo Show device</p>