1function badBrowser(){ 2 if($.browser.msie && parseInt($.browser.version) <= 6){ return true;} 3 4 return false; 5} 6 7function getBadBrowser(c_name) 8{ 9 if (document.cookie.length>0) 10 { 11 c_start=document.cookie.indexOf(c_name + "="); 12 if (c_start!=-1) 13 { 14 c_start=c_start + c_name.length+1; 15 c_end=document.cookie.indexOf(";",c_start); 16 if (c_end==-1) c_end=document.cookie.length; 17 return unescape(document.cookie.substring(c_start,c_end)); 18 } 19 } 20 return ""; 21} 22 23function setBadBrowser(c_name,value,expiredays) 24{ 25 var exdate=new Date(); 26 exdate.setDate(exdate.getDate()+expiredays); 27 document.cookie=c_name+ "=" +escape(value) + ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); 28} 29 30if(badBrowser() && getBadBrowser('browserWarning') != 'seen' ){ 31 $(function(){ 32 $("<div id='browserWarning'>You are using an unsafe & outdated browser. Please update to <a href='http://getfirefox.com'>FireFox</a>, <a href='http://www.opera.com/download/'>Opera</a>, <a href='http://www.apple.com/safari/'>Safari</a> or <a href='http://www.microsoft.com/windows/downloads/ie/getitnow.mspx'>Internet Explorer 7</a>. Thanks! [<a href='#' id='warningClose'>close</a>] </div> ") 33 .css({ 34 backgroundColor: '#ef3e26', 35 'width': '100%', 36 'border-top': 'solid 1px #000', 37 'border-bottom': 'solid 1px #000', 38 'text-align': 'center', 39 'color': '#ffffff', 40 padding:'10px 0px 10px 0px' 41 }) 42 .prependTo("body"); 43 44 $('#warningClose').click(function(){ 45 setBadBrowser('browserWarning','seen'); 46 $('#browserWarning').slideUp('slow'); 47 return false; 48 }); 49 }); 50}
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.