PageSourceSearch

https://rodkhleif.com/wp-content/themes/genesis-child/js/influex-video-player.js?ver=1790914611

js rodkhleif.com collected 2026-10-02 04:29:18 UTC 1,866 bytes, 78 lines download raw bytes

1function getYouTubeID(url) {
2	const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/;
3	const match = url.match(regExp);
4
5	return (match && match[2].length === 11) ?
6		match[2] :
7		null;
8}
9
10// 2. This code loads the IFrame Player API code asynchronously.
11var tag = document.createElement('script');
12
13tag.src = "https://www.youtube.com/iframe_api";
14var firstScriptTag = document.getElementsByTagName('script')[0];
15firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
16
17var players = [];
18var api_ready = false;
19function onYouTubeIframeAPIReady() {
20	api_ready = true;
21}
22
23jQuery(document).ready(function () {
24
25	function preparePlayer() {
26		jQuery('.influex-player-box').each( function() {
27			var player = jQuery(this);
28	
29			players.push({
30				id: player.attr('id'),
31				obj: new YT.Player( player.attr('id'), {
32					height: '261',
33					width: '464',
34					videoId: player.data('id'),
35					playerVars: {
36						'rel' : 0,
37						'showinfo' : 0,
38						'modestbranding' : 1,
39						'origin': window.location.href,
40						'enablejsapi': 1,
41					},
42				})
43			});
44		});
45	}
46
47	var wait = setInterval(() => {
48		if ( api_ready ) {
49			clearInterval( wait );
50			preparePlayer();
51		}
52	}, 250);
53
54	// jQuery('.influex-video-player > a').on('click', function(e) {
55	// 	e.preventDefault();
56	// 	var target = jQuery(this).attr('href').substr(1);
57	// 	var player = players.filter(player => player.id == target);
58	// 	if ( player.length ) {
59	// 		jQuery( this ).parent().addClass('play');
60	// 		player[0].obj.playVideo();
61	// 	}
62	// });
63
64});
65
66jQuery(function($){
67    $(document).ready(function() {
68        $( '.influex-video-player > a' ).magnificPopup({
69            disableOn: 700,
70            type: 'iframe',
71            mainClass: 'mfp-fade',
72            removalDelay: 160,
73            preloader: false,
74
75            fixedContentPos: false
76        });
77    });
78});

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.