1jQuery(document).ready(function($) { 2 "use strict"; 3 4 if( 'undefined' == typeof hootData ) 5 window.hootData = {}; 6 7 /*** Superfish Navigation ***/ 8 9 if( 'undefined' == typeof hootData.superfish || 'enable' == hootData.superfish ) { 10 if (typeof $.fn.superfish != 'undefined') { 11 $('.sf-menu').superfish({ 12 delay: 500, // delay on mouseout 13 animation: {height: 'show'}, // animation for submenu open. Do not use 'toggle' #bug 14 animationOut: {opacity:'hide'}, // animation for submenu hide 15 speed: 200, // faster animation speed 16 speedOut: 'fast', // faster animation speed 17 disableHI: false, // set to true to disable hoverIntent detection // default = false 18 }); 19 } 20 } 21 22 /*** Responsive Navigation ***/ 23 24 if( 'undefined' == typeof hootData.menuToggle || 'enable' == hootData.menuToggle ) { 25 $( '.menu-toggle' ).click( function() { 26 if ( $(this).parent().is('.mobilemenu-fixed') ) 27 $(this).parent().toggleClass( 'mobilemenu-open' ); 28 else 29 $( this ).siblings( '.wrap, .menu-items' ).slideToggle(); 30 $( this ).toggleClass( 'active' ); 31 }); 32 $('body').click(function (e) { 33 if (!$(e.target).is('.nav-menu *, .nav-menu')) 34 $( '.menu-toggle.active' ).click(); 35 }); 36 } 37 38 /*** JS Search ***/ 39 40 $('.js-search i.fa-search, .js-search .js-search-placeholder').each(function(){ 41 var $self = $(this), 42 searchform = $self.parent('.searchform'); 43 $self.on('click', function(){ 44 searchform.toggleClass('expand'); 45 if ( searchform.is('.expand' ) ) { 46 $self.siblings('input.searchtext').focus(); 47 searchform.closest('.js-search').addClass('hasexpand'); 48 } else { 49 searchform.closest('.js-search').removeClass('hasexpand'); 50 } 51 }); 52 }); 53 $('.js-search .searchtext').each(function(){ 54 var $self = $(this), 55 searchform = $self.parent('.searchform'); 56 $self.on({ 57 focus: function() { searchform.addClass('expand').closest('.js-search').addClass('hasexpand'); }, 58 blur: function() { searchform.removeClass('expand').closest('.js-search').removeClass('hasexpand'); } 59 }); 60 }); 61 62 /*** Responsive Videos : Target your .container, .wrapper, .post, etc. ***/ 63 64 if( 'undefined' == typeof hootData.fitVids || 'enable' == hootData.fitVids ) { 65 if (jQuery.fn.fitVids) 66 $("#content").fitVids(); 67 } 68 69 /*** Theia Sticky Sidebar ***/ 70 71 if( 'undefined' == typeof hootData.stickySidebar || 'enable' == hootData.stickySidebar ) { 72 if (jQuery.fn.theiaStickySidebar && $('.hoot-sticky-sidebar .main-content-grid > #content').length && $('.hoot-sticky-sidebar .main-content-grid > .sidebar').length) { 73 var stickySidebarTop = 10; 74 if ( $('.hoot-sticky-header #header').length ) 75 stickySidebarTop = 100; 76 if( 'undefined' != typeof hootData && 'undefined' != typeof hootData.stickySidebarTop ) 77 stickySidebarTop = hootData.stickySidebarTop; 78 $( '#content, #sidebar-primary, #sidebar-secondary' ).theiaStickySidebar({ 79 additionalMarginTop: stickySidebarTop, 80 }); 81 } 82 } 83 84});
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.