PluginProbe
Import Social Events / 1.8.5
Import Social Events v1.8.5
1.9.1 1.9.0 trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6.0 1.6.1 1.6.10 1.6.11 1.6.12 All 61 releases
import-facebook-events / assets / js / wizard.js

wizard.js in Import Social Events 1.8.5, at assets/js/wizard.js

30 lines 999 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery(document).ready(function ($) {
2 const watchVideoBtn = $('#ife-watch-video-btn');
3 const videoPopup = $('#ife-wizard-video-popup');
4 const videoFrame = $('#ife-wizard-video-frame');
5 const closePopup = $('#ife-wizard-close-popup');
6
7 // YouTube Video URL - replace with your own
8 const videoURL = "https://www.youtube.com/embed/r_186_GDwso?si=wHzFW7Xzbn8610TL&autoplay=1";
9
10 // Open the popup and set video source
11 watchVideoBtn.on('click', function () {
12 videoFrame.attr('src', videoURL);
13 videoPopup.css('display', 'flex');
14 });
15
16 // Close popup on close button click
17 closePopup.on('click', function () {
18 videoFrame.attr('src', '');
19 videoPopup.css('display', 'none');
20 });
21
22 // Close popup when clicking outside the video frame
23 videoPopup.on('click', function (e) {
24 if (e.target === this) {
25 videoFrame.attr('src', '');
26 videoPopup.css('display', 'none');
27 }
28 });
29 });
30