1(function($) 2{ 3 $(document).ready(function() { 4 $('.styleswitch').click(function() 5 { 6 switchStylestyle(this.getAttribute("id")); 7 return false; 8 }); 9 var c = readCookie('style'); 10 if (c) switchStylestyle(c); 11 }); 12 13 function switchStylestyle(styleName) 14 { 15 $('link[rel*=style][title]').each(function(i) 16 { 17 this.disabled = true; 18 if (this.getAttribute('title') == styleName) this.disabled = false; 19 }); 20 createCookie('style', styleName, 365); 21 } 22})(jQuery); 23 24// Cookie functions 25function createCookie(name,value,days) 26{ 27 if (days) 28 { 29 var date = new Date(); 30 date.setTime(date.getTime()+(days*24*60*60*1000)); 31 var expires = "; expires="+date.toGMTString(); 32 } 33 else var expires = ""; 34 document.cookie = name+"="+value+expires+"; path=/"; 35} 36function readCookie(name) 37{ 38 var nameEQ = name + "="; 39 var ca = document.cookie.split(';'); 40 for(var i=0;i < ca.length;i++) 41 { 42 var c = ca[i]; 43 while (c.charAt(0)==' ') c = c.substring(1,c.length); 44 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 45 } 46 return null; 47} 48function eraseCookie(name) 49{ 50 createCookie(name,"",-1); 51} 52 53// Switcher 54 jQuery('.demo_changer .demo-icon').click(function(){ 55 56 if(jQuery('.demo_changer').hasClass("active")){ 57 jQuery('.demo_changer').animate({"left":"-230px"},function(){ 58 jQuery('.demo_changer').toggleClass("active"); 59 }); 60 }else{ 61 jQuery('.demo_changer').animate({"left":"0px"},function(){ 62 jQuery('.demo_changer').toggleClass("active"); 63 }); 64 } 65 }); 66 67 // Selector 68jQuery(window).on('load', function () { 69 jQuery('.selectpicker').selectpicker({ 70 'selectedText': 'cat' 71 }); 72});
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.