PageSourceSearch

https://matsumoto.ed.jp/wp-content/themes/insp_para/framework/js/p…pixelentity.utils.youtube.js?ver=1561346633

js matsumoto.ed.jp collected 2026-10-05 09:39:28 UTC 1,016 bytes, 46 lines download raw bytes

1(function ($) {
2	/*jslint undef: false, browser: true, devel: false, eqeqeq: false, bitwise: false, white: false, plusplus: false, regexp: false */ 
3	/*global jQuery,setTimeout,YT */
4
5	$.pixelentity = $.pixelentity || {version: '1.0.0'};
6	
7	if ($.pixelentity.youtube) {
8		return;
9	}
10	
11	var loading = false;
12	var player = window.YT && window.YT.Player;
13	var list = []; 
14	
15	function callbacks() {
16		for (var i=0;i<list.length;i++) {
17			list[i](player);
18		}
19	}
20	
21	function loadPlayer() {
22		if (loading) {
23			return;
24		}
25		loading = true;
26		var tag = document.createElement('script');
27		tag.src = "http://www.youtube.com/player_api";
28		var firstScriptTag = document.getElementsByTagName('script')[0];
29		firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
30		window.onYouTubePlayerAPIReady = function() {
31			player = YT.Player;
32			callbacks();
33		};
34		
35	}
36	
37	$.pixelentity.youtube = function(callback) {
38		if (player) {
39			callback(player);
40		} else {
41			list.push(callback);
42			loadPlayer();
43		}
44	};
45	
46}(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.