PageSourceSearch

https://zemlya-n.ru/themes/core/js/apply-ajax-assets.js

js zemlya-n.ru collected 2026-10-03 18:14:43 UTC 986 bytes, 30 lines download raw bytes

1jQuery(function(){
2	$('body').on('apply-ajax-assets',(e,data)=>{
3		// слить переменные .. 
4			if (typeof data.jsVars!='undefined')
5				window.IR=$.extend(true,{},window.IR,data.jsVars);
6			// если есть стили добавляем на страницу стили ..
7			if (typeof data.css!='undefined')
8				for(var hash in data.css)
9					if (!$('html').find('link[data-hash='+hash+']').length){
10						var css=$('<link>');
11						css.attr({
12							rel:"stylesheet",
13							type:"text/css",
14							href:data.css[hash],
15							'data-hash':hash
16						});
17						$('body').append(css);
18					}
19
20			// если есть скрипты  добавляем на страницу скрипты
21			if (typeof data.js!='undefined')		
22				for(var hash in data.js)
23					if (!$('html').find('script[data-hash='+hash+']').length){
24						var js=$('<script>');
25						js.attr({src:data.js[hash],'data-hash':hash});
26						$('body').append(js);
27					}
28		//console.log(data);
29	});
30});

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.