From 17fa01d82cb3069efd40c56e76aa0b50c0b88ccc Mon Sep 17 00:00:00 2001
From: cristiano <cs.almeida@protonmail.ch>
Date: Tue, 30 Apr 2019 17:47:52 +0100
Subject: [PATCH] Hides video quen page is ready.

---
 wp-content/themes/foundry0/js/main.js | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/wp-content/themes/foundry0/js/main.js b/wp-content/themes/foundry0/js/main.js
index d5c2aa7..6034594 100644
--- a/wp-content/themes/foundry0/js/main.js
+++ b/wp-content/themes/foundry0/js/main.js
@@ -1,16 +1,22 @@
-$('video').on('ended', function () {
+console.log("hi there?");
+window.jquery = $;
+$(document).ready(function () {
+  $('#splash').on('ended', function () {
+    console.log("Video ends.");
     $(this).css("opacity", "0");
     setTimeout(function () {
-        // $('#splash').css("display", "none");
-        $('#splash').css("border", "2px solid yellow");
+      console.log("Trying to hide the video.");
+      $('#splash').css("display", "none");
     }, 500);
 });
+}); // End of document.ready
+
 
 var video = document.querySelector("#splash");
 window.video=video;
 //video.autoplay = true;
 // video.load();
-console.log("hi there");
+
 
 $(document).ready(function () {
     setTimeout(function () {
-- 
GitLab