PageSourceSearch

https://school.ksenialebedeva.ru/pl/lite/widget/script?id=826353

js ksenialebedeva.ru collected 2026-09-30 14:51:03 UTC 2,897 bytes, 86 lines download raw bytes

1
2var startWidgetfbc9c10cbbdf07ec66bde5cd590636abb3d7ad11 = function() {
3    var script = document.getElementById('fbc9c10cbbdf07ec66bde5cd590636abb3d7ad11');
4
5	var par = script.parentNode;
6	script.parentNode.style.overflow = 'hidden';
7
8	var iframe = document.createElement('iframe');
9	iframe.src = 'https://school.ksenialebedeva.ru/pl/lite/widget/widget'
10		+ "?" + window.location.search.substring(1)
11		+ "&id=826353"
12		+ "&ref=" + encodeURIComponent(document.referrer)
13		+ "&loc=" + encodeURIComponent(document.location.href);
14
15	try {
16		if (window.clrtQueryData) {
17			iframe.src += "&clrtQueryData=" + encodeURIComponent(JSON.stringify(window.clrtQueryData));
18		}
19	} catch(e) {}
20
21	iframe.dataset.accountId = 125821;
22	iframe.style.width = '100%';
23	iframe.style.height = '0px';
24	iframe.style.border = 'none';
25	iframe.style.overflow = 'hidden';
26	iframe.setAttribute('allowfullscreen', 'allowfullscreen');
27    iframe.className = '488';
28	iframe.id = '7af2c5b576f8812db4c7e27172cd163029745d2f' + '_' + iframe.className;
29	// name можно получить изнутри iframe
30	iframe.name = iframe.className;
31
32	var iframeId = iframe.id;
33
34	var gcEmbedOnMessage = function(e) {
35		var insertedIframe = document.getElementById(iframeId);
36		if (!insertedIframe) {
37			return;
38		}
39
40		if (e.data.uniqName == 'fbc9c10cbbdf07ec66bde5cd590636abb3d7ad11') {
41			if (e.data.height) {
42			    if (e.data.iframeName) {
43					//Скрипты метрик изменяют название iframe, из-за чего не срабатывает выставление высоты
44					var cuttedName = e.data.iframeName.split('&')[0];
45					if (cuttedName == iframe.name) {
46                        par.style.height = ( e.data.height ) + "px";
47						insertedIframe.style.height = (e.data.height) + "px";
48                    }
49                } else {
50                    par.style.height = ( e.data.height ) + "px";
51					insertedIframe.style.height = (e.data.height) + "px";
52                }
53            }
54		}
55	};
56
57	if (window.addEventListener) {
58		window.addEventListener("message", gcEmbedOnMessage, false);
59	}  else if (window.attachEvent) {
60		window.attachEvent('onmessage', gcEmbedOnMessage)
61	} else {
62		window['onmessage'] = gcEmbedOnMessage
63	}
64
65	script.parentNode.insertBefore(iframe, script);
66	par.removeChild( script )
67}
68
69document.addEventListener("DOMContentLoaded", startWidgetfbc9c10cbbdf07ec66bde5cd590636abb3d7ad11);
70
71document.addEventListener("StartWidgetfbc9c10cbbdf07ec66bde5cd590636abb3d7ad11", function(event) {
72	startWidgetfbc9c10cbbdf07ec66bde5cd590636abb3d7ad11();
73});
74
75var getLocation = function(href) {
76	var l = document.createElement("a");
77	l.href = href;
78	return l;
79};
80
81var currentScript = document.currentScript || (function() {
82	var scripts = document.getElementsByTagName('script');
83	return scripts[scripts.length - 1];
84})();
85
86var domain = ( (getLocation( currentScript.src )).hostname );

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.