PageSourceSearch

http://tgpi.ru/js/mp.js

js tgpi.ru collected 2026-10-02 17:50:11 UTC 816 bytes, 29 lines download raw bytes

1function endsWith(str,search)
2{
3	return (str.substr(str.length-search.length)==search);
4}
5function initMP()
6{
7	if (!document.getElementsByTagName){ return; }
8	var anchors = document.getElementsByTagName('IMG');
9	var myO=[];
10	for (var i=0; i<anchors.length; i++){
11		var anchor = anchors[i];
12		if (anchor.getAttribute('longdesc') &&  anchor.className=='mp')
13		{
14			anchor.id='mac-mp-'+myO.length;
15			myO.push(anchor);
16		}
17	}
18	for(var i=0;i<myO.length;i++)
19	{
20			var href=myO[i].getAttribute('longdesc');
21			var height=250;
22			if(endsWith(href,'.mp3')||endsWith(href,'.wav'))
23				height=20;
24			swfobject.embedSWF('/images/mp/mp.swf','mac-mp-'+i,'400',height,'8.0.0',false,{file: href, width: '400', height: height},{allowfullscreen:'true',allowscriptaccess:'always'});
25	}
26
27
28}
29Event.observe(window,'load',initMP,false);

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.