- var vid = document.getElementById("video");
- vid.playbackRate = 0.5;
-
- var youtubeIds = ['VG1gcnCVJ8M', 'B_QCJSTxqfI'];
- var youtubeId = youtubeIds[Math.floor(Math.random() * youtubeIds.length)];
- var iframe = document.getElementById('audio');
- iframe.src = "https://www.youtube.com/embed/" + youtubeId + "?controls=0&autoplay=1"
+ var audioElement = document.getElementById('audio');
+ var activeAudio = Math.floor((Math.random() * 2) + 1);
+ audioElement.src = "audio/" + activeAudio + ".webm";