mirror of
https://github.com/DI0IK/Aufgaben_WE_DHBW.git
synced 2025-07-05 16:48:48 +00:00
Add auto-play functionality to video element and enhance fullscreen error handling
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
This commit is contained in:
parent
9455278f41
commit
2c7aaa7444
1 changed files with 6 additions and 1 deletions
|
@ -36,8 +36,13 @@
|
|||
}
|
||||
</style>
|
||||
<script>
|
||||
setInterval(() => {
|
||||
document.getElementsByTagName("video")[0].play();
|
||||
}, 1000);
|
||||
function makeFullscreen() {
|
||||
document.documentElement.requestFullscreen();
|
||||
try {
|
||||
document.documentElement.requestFullscreen();
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
document.addEventListener("click", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue