1jQuery(document).ready(function ($) { 2 var waitingForPageRefresh = false; 3 var style = readCookie("styleDefCon"); 4 5 $('.style-toggle-btn').attr('href',''); 6 $('.style-toggle-btn').click(function () { 7 var newStyle; 8 var currentStyle; 9 var styles; 10 if (waitingForPageRefresh) 11 return; 12 currentStyle = readCookie("styleDefCon"); 13 styles = site_styles || ['light']; 14 newStyle = styles[(currentStyle?(styles.indexOf(currentStyle) + 1):1) % styles.length]; 15 createCookie("styleDefCon", newStyle, 365); 16 if (readCookie("styleDefCon") != newStyle) { 17 alert("Cookies must be enabled to change page style"); 18 return false; 19 } 20 // alert('The page will refresh changing style '+currentStyle+' to '+newStyle); 21 }); 22 23 function createCookie(name, value, days) { 24 if (days) { 25 var date = new Date(); 26 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 27 var expires = "; expires=" + date.toGMTString(); 28 } 29 else expires = ""; 30 document.cookie = name + "=" + value + expires + "; path=/"; 31 } 32 33 function readCookie(name) { 34 var nameEQ = name + "="; 35 var ca = document.cookie.split(';'); 36 for (var i = 0; i < ca.length; i++) { 37 var c = ca[i]; 38 while (c.charAt(0) == ' ') c = c.substring(1, c.length); 39 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); 40 } 41 return null; 42 } 43 44});
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.