PageSourceSearch

https://dshi-online.ru/public/js/embed.js

js dshi-online.ru collected 2026-09-25 14:54:50 UTC 1,573 bytes, 55 lines download raw bytes

1var iframe = document.createElement('iframe');
2
3var currentScript = document.currentScript || (function() {
4	var scripts = document.getElementsByTagName('script');
5	return scripts[scripts.length - 1];
6})();
7
8var getLocation = function(href) {
9	var l = document.createElement("a");
10	l.href = href;
11	return l;
12};
13
14var domain = ( (getLocation( currentScript.src )).hostname );
15iframe.src = "//" + domain + "/cms/default/embed/id/" + window.gcEmbedId;
16iframe.frameborder = 0;
17iframe.width = "100%";
18iframe.height = "250";
19iframe.style.borderStyle="none";
20
21addGcIframeWidget( iframe );
22
23function addGcIframeWidget( iframe )
24{
25	var thisScript = document.currentScript || (function() {
26		var scripts = document.getElementsByTagName('script');
27		return scripts[scripts.length - 1];
28	})();
29
30	var parent = thisScript.parentElement;
31
32	parent.insertBefore(iframe, thisScript.nextSibling);
33
34	var gcEmbedOnMessage = function(e) {
35		if (e.data.height &&  e.data.height > 0 ) {
36			iframe.height = ( e.data.height )+ "px";
37		}
38	};
39
40
41	if (window.addEventListener) {
42		window.addEventListener("message", gcEmbedOnMessage, false);
43	}
44	else if (window.attachEvent) {
45		window.attachEvent('onmessage', gcEmbedOnMessage)
46	}
47	else {
48		window['onmessage'] = gcEmbedOnMessage
49	}
50}
51
52if ( typeof( window.commonGcCounter ) == "undefined" ) {
53	document.write( "<img width=1 height=1 style='display:none' id='gccounterImg' src='//" + domain + "/stat/counter?ref=" + encodeURIComponent( document.referrer ) + "&loc=" + encodeURIComponent( document.location.href ) + "'/>" );
54	window.commonGcCounter = 1;
55}

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.