PageSourceSearch

https://hindocarina.com/js/scripts.js

js hindocarina.com collected 2026-10-04 03:32:01 UTC 1,077 bytes, 35 lines download raw bytes

1function doPopups() {
2  if (!document.getElementsByTagName) return false;
3  var links = document.getElementsByTagName("a");
4  for (var i=0; i < links.length; i++) {
5    if (links[i].className.match("popup")) {
6      links[i].onclick = function() {
7        openPopUp(this.href);
8        return false;
9      }
10    }
11  }
12}
13
14
15function openPopUp(linkURL) {
16	var a = linkURL.toLowerCase();
17	if( (a.match(/.jpg$/)) || (a.match(/.jpeg$/)) || (a.match(/.png$/)) || (a.match(/.gif$/)) || (a.match(/.bmp$/)) ) {
18		// image popup (open image using a PHP script)
19		window.open("/includes/popup.php?url=" + linkURL,'popupImage','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150');
20	} else {
21		// other popup
22		window.open(linkURL,'popup','width=700,height=600');
23	}
24}
25
26
27function addEventSimple(obj,evt,fn) {
28	if (obj.addEventListener)
29		obj.addEventListener(evt,fn,false);
30	else if (obj.attachEvent)
31		obj.attachEvent('on'+evt,fn);
32}
33
34
35addEventSimple(window,'load',doPopups);

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.