PageSourceSearch

https://familyhealthcarefdn.org/wp-content/plugins/skyway-media/assets/js/smfront.js?ver=1.05.23

js familyhealthcarefdn.org collected 2026-09-29 13:40:48 UTC 3,205 bytes, 86 lines download raw bytes

1jQuery(document).ready(function($){
2    if(jQuery("body .sm-video-popup-btn").length) {
3		let vid = '';
4                
5        jQuery("body").on("click", ".sm-video-popup-btn", function(e) {
6			// Stop propagation so close function below will fire
7			e.preventDefault();
8			
9			// Video attribute
10			let popupVideoUrl = jQuery(this).attr('video-id');
11			let popupEmbedUrl = jQuery(this).attr('video-url');
12			let popupEmbed = jQuery(this).attr('video-embed');
13			let videoIframe = '<iframe id="iframePopupVideo" width="990" height="515" src="https://www.youtube.com/embed/' + popupVideoUrl + '?rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';
14
15			let videoEmbed = '<video width="990" height="515" controls autoplay><source src="'+popupEmbedUrl+'" type="video/mp4"><source src="'+popupEmbedUrl+'" type="video/ogg"></video>';
16			let vidHTML = videoIframe;
17
18			if(popupEmbed == 1) {
19				vidHTML = videoEmbed;
20			}
21			
22			// Add iframe to popup content
23			jQuery("body .sm-video-popup-inner").html(vidHTML);
24			
25			// Add autoplay to src so video plays when clicked (this must come after the line above)
26			let vidSrc = jQuery("body #iframePopupVideo").prop("src");
27			vidSrc += "&autoplay=1";
28			jQuery("body #iframePopupVideo").prop("src", vidSrc);
29			
30			jQuery("body .sm-video-popup-container").addClass("show-popup");
31			jQuery("body #main-header").css("z-index", "0");
32		});
33		
34		jQuery('body').on('click', '.sm-video-popup-close', function(e) {	
35			e.preventDefault();		
36			if(jQuery("#iframePopupVideo").length > 0) {
37				// Remove iframe from popup
38				let vid = jQuery("#iframePopupVideo").prop("src");
39				let vidSource = vid.replace("&autoplay=1", "");
40				jQuery("#iframePopupVideo").prop("src", "");
41				jQuery("#iframePopupVideo").prop("src", vidSource);
42
43				jQuery(".sm-video-popup-container").removeClass("show-popup");
44				jQuery(".sm-video-popup-inner").html("");
45				jQuery("#main-header").css("z-index", "99999");
46				
47				return false;
48			}
49
50			if(jQuery("video").length > 0) {
51				jQuery(".sm-video-popup-container").removeClass("show-popup");
52				jQuery(".sm-video-popup-inner").html("");
53				jQuery("#main-header").css("z-index", "99999");
54				
55				return false;
56			}			
57		});
58		/* jQuery(window, '.sm-video-popup-close').click(function(e) {
59			if (e.target.className != "sm-video-popup-content") {
60                if(jQuery("#iframePopupVideo").length > 0) {
61					// Remove iframe from popup
62					let vid = jQuery("#iframePopupVideo").prop("src");
63					let vidSource = vid.replace("&autoplay=1", "");
64					jQuery("#iframePopupVideo").prop("src", "");
65					jQuery("#iframePopupVideo").prop("src", vidSource);
66
67					jQuery(".sm-video-popup-container").removeClass("show-popup");
68					jQuery(".sm-video-popup-inner").html("");
69					jQuery("#main-header").css("z-index", "99999");
70					
71					return false;
72				}
73
74				if(jQuery("video").length > 0) {
75					jQuery(".sm-video-popup-container").removeClass("show-popup");
76					jQuery(".sm-video-popup-inner").html("");
77					jQuery("#main-header").css("z-index", "99999");
78					
79					return false;
80				}
81			} else {
82				return true;
83			}
84		}); */
85    }	
86});

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.