PageSourceSearch

https://school.mastergolosa.ru/pl/lite/widget/script?id=616505

js mastergolosa.ru collected 2026-09-30 17:51:18 UTC 2,895 bytes, 86 lines download raw bytes

1
2var startWidgete227593094857c7c87413698cc6c71d4082f36f2 = function() {
3    var script = document.getElementById('e227593094857c7c87413698cc6c71d4082f36f2');
4
5	var par = script.parentNode;
6	script.parentNode.style.overflow = 'hidden';
7
8	var iframe = document.createElement('iframe');
9	iframe.src = 'https://school.mastergolosa.ru/pl/lite/widget/widget'
10		+ "?" + window.location.search.substring(1)
11		+ "&id=616505"
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 = 277809;
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 = '151';
28	iframe.id = 'abd152bd704beb8be7be83cb5e3accff9ee30308' + '_' + 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 == 'e227593094857c7c87413698cc6c71d4082f36f2') {
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", startWidgete227593094857c7c87413698cc6c71d4082f36f2);
70
71document.addEventListener("StartWidgete227593094857c7c87413698cc6c71d4082f36f2", function(event) {
72	startWidgete227593094857c7c87413698cc6c71d4082f36f2();
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.