PageSourceSearch

https://www.uwscompany.com/wp-content/cache/min/1/wp-content/plugi…/assets/js/wp-video-popup.js?ver=1782924538

js uwscompany.com collected 2026-10-06 17:01:51 UTC 2,101 bytes, 10 lines download raw bytes

1if(window.NodeList&&!NodeList.prototype.forEach){NodeList.prototype.forEach=Array.prototype.forEach}(function(){if(typeof window.CustomEvent==="function")return!1;function CustomEvent(event,params){params=params||{bubbles:!1,cancelable:!1,detail:null};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt}
2window.CustomEvent=CustomEvent})();(function($){var popup;var speed=200;function init(){popup=document.querySelector('.wp-video-popup-wrapper');if(!popup)return;setupOpenActions();setupVideoHeight();setupCloseActions()}
3function setupOpenActions(){setupOpenTriggers('.wp-video-popup');setupOpenTriggers('.ryv-popup')}
4function setupOpenTriggers(triggerSelector){var triggers=document.querySelectorAll(triggerSelector);if(!triggers)return;triggers.forEach(function(trigger){trigger.addEventListener('click',function(e){e.preventDefault();openPopup()})})}
5function setupCloseActions(){popup.addEventListener('click',function(e){if(e.target==this||e.target.classList.contains('wp-video-popup-close'))closePopup()});document.addEventListener('keyup',function(e){if(e.key!=='Escape'&&e.key!=='Esc'&&e.keyCode!==27)return;if($(popup).is(':visible'))closePopup()})}
6function setupVideoHeight(){window.addEventListener('resize',function(){var video=document.querySelector('.wp-video-popup-video.is-resizable');if(video)$(video).height($(video).width()*0.5625)})}
7function openPopup(){var video=popup.querySelector('.wp-video-popup-video');document.body.insertBefore(popup,document.body.firstChild);$(popup).css({display:'flex'}).stop().animate({opacity:1},speed);$(video).stop().fadeIn(speed);var videoUrl=video.getAttribute('data-wp-video-popup-url');if(videoUrl){video.setAttribute('src',videoUrl)}
8window.dispatchEvent(new Event('resize'))}
9function closePopup(){var video=popup.querySelector('.wp-video-popup-video');$(popup).stop().animate({opacity:0}
9,speed,function(){$(popup).css({display:'none'})});$(video).stop().fadeOut(speed,function(){video.setAttribute('src','')})}
10$(document).ready(function(){init()})})(jQuery)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.