Unipark
Navigation
  • Forum
  • Registration
  • Login
Search

Forum › Forums › Unipark › Den “Weiter” Button Disablen › Reply To: Den “Weiter” Button Disablen

5. June 2024 at 18:44 #2080
mictr
Participant
<video id="theVideo" width="640" height="480" preload="auto" playsinline disablepictureinpicture disableremoteplayback>
<source src="test.mp4" />
</video>

<button id="btnPlay">Play</button>

<script>
const btnPlay = document.getElementById('btnPlay');
const theVideo = document.getElementById('theVideo');
const btnSubmit = document.getElementById('os');

document.addEventListener('DOMContentLoaded', function() {
	btnSubmit.disabled = true;
});
theVideo.addEventListener('ended', function() {
	theVideo.style.display = 'none';
	btnSubmit.disabled = false;
});
btnPlay.addEventListener('click', function() {
	theVideo.play();
	btnPlay.style.display = 'none';
});
</script>
UNIPARK

QUICK LINKS

  • Registration
  • Login
  • Search
© Copyright 2025 UNIPARK