Add a second experience
authorCameron Ball <cameron@cameron1729.xyz>
Tue, 17 Jul 2018 16:23:58 +0000 (00:23 +0800)
committerCameron Ball <cameron@cameron1729.xyz>
Tue, 17 Jul 2018 16:23:58 +0000 (00:23 +0800)
moodlecloud.js

index 6ab05e9..e2b416f 100644 (file)
@@ -1,5 +1,12 @@
 
-$('<div class="video-background"><div class="video-foreground"><iframe src="https://www.youtube.com/embed/hCC6ZhRS7sY?controls=0&showinfo=0&rel=0&autoplay=1&loop=1&playlist=W0LHTWG-UmQ" frameborder="0" allowfullscreen></iframe></div></div>')
+var experiences = [
+    'hCC6ZhRS7sY',
+    'X_aNYRPEZOY'
+];
+
+var experience = experiences[Math.floor(Math.random()*experiences.length)];
+
+$('<div class="video-background"><div class="video-foreground"><iframe src="https://www.youtube.com/embed/' + experience + '?controls=0&showinfo=0&rel=0&autoplay=1&loop=1&playlist=W0LHTWG-UmQ" frameborder="0" allowfullscreen></iframe></div></div>')
     .appendTo('.bg-cover');
 
 $(".video-background").attr(