<script>
var timerElement = document.getElementById("timer");
var units = ['weeks', 'days', 'hours', 'minutes', 'seconds', 'milliseconds'];
+ var numAudio = 3;
+ var numVideo = 5;
var delay = 20;
var vidElement = document.getElementById('video');
- var activeVideo = Math.floor((Math.random() * 5) + 1);
+ var activeVideo = Math.floor((Math.random() * numVideo) + 1);
vidElement.src = "video/" + activeVideo + ".mp4";
var audioElement = document.getElementById('audio');
- var activeAudio = Math.floor((Math.random() * 2) + 1);
+ var activeAudio = Math.floor((Math.random() * numAudio) + 1);
audioElement.src = "audio/" + activeAudio + ".webm";
function toggleAudio() {