1// Get OS 2var agt=navigator.userAgent.toLowerCase(); 3var is_mac = (agt.indexOf("mac")!=-1); 4var is_safari = (agt.indexOf("safari")!=-1); 5 6// Set default quantities for dot system and API calls 7var maxdots = 1500; 8var apilimit = 1500; 9 10// Offset for browser bar... 11var offset = 0; 12 13// Are we on a mac? 14if (is_mac){ 15 offset = 0; 16 maxdots = 1000; 17 apilimit = 1000; 18} 19 20// Function called from any page to open the applet 21function wefeelfine(){ 22 23 // Get screen dimensions 24 if (window.screen){ 25 26 // Window dimensions 27 var w = 947; 28 var h = 700; 29 30 // Get x/y coordinates for window 31 var x=screen.availWidth-12; 32 var y=screen.availHeight-60; 33 34 // Open in center of screen 35 x = (x/2) - (w/2); 36 y = (y/2) - (h/2); 37 38 // For full screen mode... 39 //var offset = 30; 40 //var w=screen.availWidth-12; 41 //var h=screen.availHeight-60; 42 43 if(is_safari){ 44 w = 952; 45 h = 704; 46 resizable = 0; 47 }else resizable = 1; 48 49 if(is_mac){ // If on a mac, go to warning page 50 // location.href = "http://www.wefeelfine.org/macs.html"; 51 wefeelfinemac(); 52 53 }else{ 54 window.open('http://www.wefeelfine.org/patience.php','wefeelfine','width='+w+',height='+h+',scrollbars=0,status=0,resizable='+resizable+',left='+x+',top='+y); 55 } 56 57 // Open window at full screen size 58 //window.open('wefeelfine.html','wefeelfine','width='+w+',height='+h+',scrollbars=0,status=0,resizable=1,left='+x+',top='+y); 59 60 } 61} 62 63// Function called from any page to open the applet for a MAC 64function wefeelfinemac(){ 65 66 // Get screen dimensions 67 if (window.screen){ 68 69 // Window dimensions 70 var w = 947; 71 var h = 700; 72 73 // Get x/y coordinates for window 74 var x=screen.availWidth-12; 75 var y=screen.availHeight-60; 76 77 // Open in center of screen 78 x = (x/2) - (w/2); 79 y = (y/2) - (h/2); 80 81 if(is_safari){ 82 w = 952; 83 h = 704; 84 resizable = 0; 85 }else resizable = 1; 86 87 window.open('http://www.wefeelfine.org/patience.php?is_mac','wefeelfine','width='+w+',height='+h+',scrollbars=0,status=0,resizable='+resizable+',left='+x+',top='+y); 88 } 89} 90 91 92// Function called each time window is resized 93function getWindowSize(){ 94 95 var w = 947; 96 var h = 700; 97 98 if (document.layers) { 99 w=window.innerWidth; 100 h=window.innerHeight-offset; 101 }else if (parseInt(navigator.appVersion)>=5&&navigator.appName=="Netscape") { 102 w = document.documentElement.clientWidth; 103 h = document.documentElement.clientHeight-offset; 104 }else if (document.all) { 105 w = document.body.offsetWidth; 106 h = document.body.offsetHeight; 107 } 108 109 if(w < 700) w = 700; 110 if(h < 500) h = 500; 111 112 //alert("Width: "+w+", Height: "+h); 113 114 document.wefeelfine.setDimensions(w,h); 115}
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.