1 jQuery(document).ready(function(){ 2 // Create the dropdown base 3jQuery("<select />").appendTo("#mobilemenu"); 4var mobileMenuTitle = jQuery("#mobilemenu").attr("title"); 5// Create default option "Go to..." 6jQuery("<option />", { 7 "selected": "selected", 8 "value" : "", 9 "text" : mobileMenuTitle 10}).appendTo("#mobilemenu select"); 11 12// Populate dropdown with menu items 13jQuery("#nav ul.menu>li>a, #nav ul.menu>li>span.mainlevel,#nav ul.menu>li>span.separator").each(function() { 14 var el = jQuery(this); 15 jQuery("<option />", { 16 "value" : el.attr("href"), 17 "text" : el.text() 18 19 }).appendTo("#mobilemenu select"); 20getSubMenu(el); 21}); 22 23function getSubMenu(el){ 24 var subMenu = jQuery('~ ul>li>a',el); 25 var tab = "- "; 26 if (!(subMenu.length === 0)){ 27 subMenu.each(function(){ 28 var sel = jQuery(this); 29 var nodeval = tab + sel.text(); 30 jQuery("<option />", { 31 "value" : sel.attr("href"), 32 "text" : nodeval 33 34 }).appendTo("#mobilemenu select"); 35 getSubMenu(sel); 36 }); 37 } 38} 39 // To make dropdown actually work 40 // To make more unobtrusive: http://css-tricks.com/4064-unobtrusive-page-changer/ 41 jQuery("#mobilemenu select").change(function() { 42 window.location = jQuery(this).find("option:selected").val(); 43 }); 44 45 46 // Zebra Styling 47 jQuery('#searchpage div.resultsblock:nth-child(2n+1)').addClass('even'); 48 jQuery('#searchpage div.resultsblock:nth-child(2n)').addClass('odd'); 49 50 jQuery('#midCol li:nth-child(2n+1)').addClass('even'); 51 jQuery('#midCol li:nth-child(2n)').addClass('odd'); 52 53 jQuery('.list li:nth-child(2n+1)').addClass('even'); 54 jQuery('.list li:nth-child(2n)').addClass('odd'); 55 56 jQuery('#midCol .zentools ul li:nth-child(2n+1)').removeClass('even'); 57 jQuery('#midCol .zentools ul li:nth-child(2n)').removeClass('odd'); 58 59 jQuery('#midCol .k2Toolbar ul li:nth-child(2n+1)').removeClass('even'); 60 jQuery('#midCol .k2Toolbar ul li:nth-child(2n)').removeClass('odd'); 61 62 jQuery('.k2Tags li:nth-child(2n+1)').removeClass('even'); 63 jQuery('.k2Tags li:nth-child(2n)').removeClass('odd'); 64 65 jQuery('.pagenav li:nth-child(2n+1)').removeClass('even'); 66 jQuery('.pagenav li:nth-child(2n)').removeClass('odd'); 67 68 jQuery('.pagination li:nth-child(2n+1)').removeClass('even'); 69 jQuery('.pagination li:nth-child(2n)').removeClass('odd'); 70 71 jQuery('#article-index li:nth-child(2n+1)').removeClass('even'); 72 jQuery('#article-index li:nth-child(2n)').removeClass('odd'); 73 74 75 76 77 var browserWidth = jQuery(window).width(); 78 79 80 if (browserWidth > 520) { 81 // Social icons hover 82 jQuery("#socialicons.fixedright a").hover(function() { 83 jQuery(this).animate({ marginLeft: "-15px" }, 200); 84 },function(){ 85 jQuery(this).animate({ marginLeft: "0px" }, 300); 86 }); 87 88 89 // Social icons hover 90 jQuery("#zenpanelopen,#toTop").hover(function() { 91 jQuery(this).stop().animate({ right: "-15px" }, 200); 92 },function(){ 93 jQuery(this).stop().animate({ right: "-30px" }, 300); 94 }); 95 } 96});
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.