1jQuery(function() { 2 3 stickyFooter(); 4 5 //add custom placeholder 6 jQuery('input[name$="e_newsletter_name"]').attr('placeholder', 'Your name'); 7 jQuery('input[name$="e_newsletter_email"]').attr('placeholder', 'Your email address'); 8 9 //Slider 10 jQuery('.flexslider').flexslider({ 11 animation: "slide" 12 }); 13 14 //Select Box 15 if(jQuery(".select-box").length){ 16 17 jQuery("#category-publication .select-box").selectbox({ 18 onChange: function (value) { 19 jQuery('form#category-publication').submit(); 20 } 21 }); 22 jQuery("#category-publication1 .select-box").selectbox({ 23 onChange: function (value) { 24 jQuery('form#category-publication1').submit(); 25 } 26 }); 27 } 28 29 jQuery( ".collapse-button" ).click(function() { 30 jQuery( ".main-menu" ).slideToggle( "slow"); 31 }); 32 33 jQuery(".main-menu ul li a").each(function() { 34 if (jQuery(this).next().length > 0) { 35 jQuery(this).parent().append( $( "<strong></strong>" ) ); 36 }; 37 }) 38 39 jQuery(".main-menu ul li strong").click(function() { 40 jQuery(this).siblings( ".megamenu_fullwidth" ).slideToggle( "slow"); 41 }); 42 43 //megamenu 44 if (jQuery.fn.megaMenuReloaded) { 45 jQuery('.megamenu').megaMenuReloaded({ 46 menu_speed_show : 100, // Time (in milliseconds) to show a drop down 47 menu_speed_hide : 100, // Time (in milliseconds) to hide a drop down 48 menu_speed_delay : 10, // Time (in milliseconds) before showing a drop down 49 menu_effect : 'hover_slide', // Drop down effect, choose between 'hover_fade', 'hover_slide', 'click_fade', 'click_slide', 'open_close_fade', 'open_close_slide' 50 menu_easing : 'jswing', // Easing Effect : 'easeInQuad', 'easeInElastic', etc. 51 menu_click_outside : 1, // Clicks outside the drop down close it (1 = true, 0 = false) 52 menu_show_onload : 0, // Drop down to show on page load (type the number of the drop down, 0 for none) 53 menubar_trigger : 0, // Show the menu trigger (button to show / hide the menu bar), only for the fixed version of the menu (1 = show, 0 = hide) 54 menubar_hide : 0, // Hides the menu bar on load (1 = hide, 0 = show) 55 menu_responsive : 1, // Enables mobile-specific script 56 menu_carousel : 0, // Enable / disable carousel 57 menu_carousel_groups : 0 // Number of groups of elements in the carousel 58 }); 59 } 60 61 62 //News Ticker 63 64 jQuery(function () { 65 jQuery('#js-news').ticker({ 66 fadeInSpeed: 600 67 }); 68 }); 69 70 71 72 // Font Resize 73 jQuery('h1,h2,h3,h4,h5,h6,p,a,span,.scroll-name,.sub-title,.help-box-content ul li,.tweettext,.copyright').jfontsize({ 74 btnMinusClasseId: '#jfontsize-m2', 75 btnDefaultClasseId: '#jfontsize-d2', 76 btnPlusClasseId: '#jfontsize-p2', 77 btnMinusMaxHits: 1, 78 btnPlusMaxHits: 1, 79 sizeChange: 2 80 }); 81 82 83 // Sticky Footer Resize 84 jQuery(window).bind("debouncedresize", function() { 85 setTimeout(function() { 86 stickyFooter(); 87 }, 50); 88 }); 89 90 91 //Placeholder 92 if (jQuery.fn.placeholder) { 93 jQuery('.search-area .search-field').placeholder(); 94 } 95 96}); 97 98 99// Sticky Footer 100function stickyFooter() { 101 var winHeight = parseInt(jQuery(window).height()); 102 var contentHeight = parseInt(jQuery(".white-container").height())+100; 103 if(contentHeight<winHeight) { 104 jQuery(".footer").css("position", "absolute").css("bottom", 0); 105 }else{ 106 jQuery(".footer").css("position", "inherit").css("bottom", 0); 107 } 108}
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.