PageSourceSearch

https://kurs.artcosmosschool.ru/pl/lite/widget/script?id=1622841

js artcosmosschool.ru collected 2026-09-28 09:03:25 UTC 2,896 bytes, 86 lines download raw bytes

1
2var startWidgetc68bc9b96e297e010c00e9f6fc43a6edb67fe025 = function() {
3    var script = document.getElementById('c68bc9b96e297e010c00e9f6fc43a6edb67fe025');
4
5	var par = script.parentNode;
6	script.parentNode.style.overflow = 'hidden';
7
8	var iframe = document.createElement('iframe');
9	iframe.src = 'https://kurs.artcosmosschool.ru/pl/lite/widget/widget'
10		+ "?" + window.location.search.substring(1)
11		+ "&id=1622841"
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 = 228813;
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 = '85';
28	iframe.id = 'f4085dc86dd0d0e728e24417a43c0b7eb094cd84' + '_' + 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 == 'c68bc9b96e297e010c00e9f6fc43a6edb67fe025') {
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", startWidgetc68bc9b96e297e010c00e9f6fc43a6edb67fe025);
70
71document.addEventListener("StartWidgetc68bc9b96e297e010c00e9f6fc43a6edb67fe025", function(event) {
72	startWidgetc68bc9b96e297e010c00e9f6fc43a6edb67fe025();
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.