1jQuery(window).on('load',function () { 2 function mo_openid_set_cookie(cname,cvalue){var d=new Date();d.setTime(d.getTime()+(3*60*1000));var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/"} 3 function mo_openid_get_cookie(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1)} 4 if(c.indexOf(name)==0){return c.substring(name.length,c.length)}} 5 return""} 6 7 // If cookie is set, scroll to the position saved in the cookie. 8 if ( (mo_openid_get_cookie("scroll")) !== 'null' ) { 9 jQuery(document).scrollTop( mo_openid_get_cookie("scroll") ); 10 mo_openid_set_cookie("scroll",null); 11 } 12 13 // When a button is clicked... 14 jQuery('.custom-login-button').on("click", function() { 15 // Set a cookie that holds the scroll position. 16 mo_openid_set_cookie("scroll",jQuery(document).scrollTop()); 17 }); 18 19 jQuery('.login-button').on("click", function() { 20 // Set a cookie that holds the scroll position. 21 mo_openid_set_cookie("scroll",jQuery(document).scrollTop()); 22 }); 23 24 25}); 26 27jQuery(document).ready(function () { 28 //show mcrypt extension installation reason 29 30 jQuery("#openid_sharing_shortcode_title").click(function () { 31 jQuery("#openid_sharing_shortcode").slideToggle(400); 32 }); 33 34}); 35 36 37if (window.location.hash && window.location.hash == '#_=_') { 38 window.location.href = window.location.href.split('#_=_')[0]; 39} 40
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.