PageSourceSearch

https://isis1999.com/form/util.js

js isis1999.com collected 2026-10-08 20:45:29 UTC 754 bytes, 28 lines download raw bytes

1
2var addEvent = (window.addEventListener) ?
3   (function(elm, type, event) {
4      elm.addEventListener(type, event, false);
5   }) : (window.attachEvent) ?
6   (function(elm, type, event) {
7      elm.attachEvent('on'+type, event);
8   }) :
9   (function(elm, type, event) {
10      elm['on'+type] = event;
11   }) ;
12
13var Position = {
14   offset: function(elm) {
15      var pos = {};
16      pos.x = this.getOffset('Left', elm);
17      pos.y = this.getOffset('Top', elm);
18      return pos;
19   },
20
21   getOffset: function(prop, el) {
22      if(!el.offsetParent || el.offsetParent.tagName.toLowerCase() == "body")
23         return el['offset'+prop];
24      else
25         return el['offset'+prop]+ this.getOffset(prop, el.offsetParent);
26   }
27};
28

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.