PageSourceSearch

https://www.jdhc.or.jp/member/wp-content/themes/jdhcmember/js/jquery.jPrintArea.js

js jdhc.or.jp collected 2026-10-02 17:40:12 UTC 700 bytes, 17 lines download raw bytes

1$.jPrintArea=function(el){
2	var iframe=document.createElement('IFRAME');
3	var doc=null;
4	$(iframe).attr('style','position:absolute;width:0px;height:0px;left:-500px;top:-500px;');
5	document.body.appendChild(iframe);
6	doc=iframe.contentWindow.document;
7	var links=window.document.getElementsByTagName('link');
8	for(var i=0;i<links.length;i++)
9		if(links[i].rel.toLowerCase()=='stylesheet')
10			doc.write('<link type="text/css" rel="stylesheet" href="'+links[i].href+'"></link>');
11			doc.write('<div class="'+$(el).attr("class")+'">'+$(el).html()+'</div>');
12			doc.close();
13			iframe.contentWindow.focus();
14			iframe.contentWindow.print();
15			alert('Printing...');
16			document.body.removeChild(iframe);
17}

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.