PageSourceSearch

https://velte-steinmetz.de/neu-Dateien/wraphandler.js

js velte-steinmetz.de collected 2026-10-06 22:13:33 UTC 1,377 bytes, 42 lines download raw bytes

1wraphandler = {
2  init: function() {
3    if (!document.getElementById) return;
4    // set up the appropriate wrapper
5    wraphandler.setWrapper();
6    // and make sure it gets set up again if you resize the window
7    wraphandler.addEvent(window,"resize",wraphandler.setWrapper);
8  },
9
10  setWrapper: function() {
11    // width stuff from ppk's evolt.org/article/document_body_doctype_switching_and_more/17/30655/index.html
12    var theWidth = 0;
13    if (window.innerWidth) {
14	theWidth = window.innerWidth
15    } else if (document.documentElement &&
16                document.documentElement.clientWidth) {
17	theWidth = document.documentElement.clientWidth
18    } else if (document.body) {
19	theWidth = document.body.clientWidth
20    }
21    if (theWidth != 0) {
22      if (theWidth < 960) {
23        document.getElementById('wrapper').className = 'altwrapper';
24      } else {
25        document.getElementById('wrapper').className = 'mainwrapper';
26      }
27    }
28  },
29
30// addEvent stuff from John Resig's ejohn.org/projects/flexible-javascript-events
31  addEvent: function( obj, type, fn ) {
32    if ( obj.attachEvent ) {
33      obj['e'+type+fn] = fn;
34      obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
35      obj.attachEvent( 'on'+type, obj[type+fn] );
36    } else {
37      obj.addEventListener( type, fn, false );
38    }
39  }
40}
41
42wraphandler.addEvent(window,"load",wraphandler.init);

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.