1jQuery(document).ready(function($) { 2 3 if(rapidwp_ajax_object.secondary_menu_active){ 4 5 $(".rapidwp-nav-secondary .rapidwp-secondary-nav-menu").addClass("rapidwp-secondary-responsive-menu"); 6 7 $( ".rapidwp-secondary-responsive-menu-icon" ).on( "click", function() { 8 $(this).next(".rapidwp-nav-secondary .rapidwp-secondary-nav-menu").slideToggle(); 9 }); 10 11 $(window).on( "resize", function() { 12 if(window.innerWidth > 1112) { 13 $(".rapidwp-nav-secondary .rapidwp-secondary-nav-menu, nav .sub-menu, nav .children").removeAttr("style"); 14 $(".rapidwp-secondary-responsive-menu > li").removeClass("rapidwp-secondary-menu-open"); 15 } 16 }); 17 18 $( ".rapidwp-secondary-responsive-menu > li" ).on( "click", function(event) { 19 if (event.target !== this) 20 return; 21 $(this).find(".sub-menu:first").toggleClass('rapidwp-submenu-toggle').parent().toggleClass("rapidwp-secondary-menu-open"); 22 $(this).find(".children:first").toggleClass('rapidwp-submenu-toggle').parent().toggleClass("rapidwp-secondary-menu-open"); 23 }); 24 25 $( "div.rapidwp-secondary-responsive-menu > ul > li" ).on( "click", function(event) { 26 if (event.target !== this) 27 return; 28 $(this).find("ul:first").toggleClass('rapidwp-submenu-toggle').parent().toggleClass("rapidwp-secondary-menu-open"); 29 }); 30 31 } 32 33 if(rapidwp_ajax_object.primary_menu_active){ 34 35 if(rapidwp_ajax_object.sticky_menu){ 36 // grab the initial top offset of the navigation 37 var rapidwpstickyNavTop = $('.rapidwp-primary-menu-container').offset().top; 38 39 // our function that decides weather the navigation bar should have "fixed" css position or not. 40 var rapidwpstickyNav = function(){ 41 var rapidwpscrollTop = $(window).scrollTop(); // our current vertical position from the top 42 43 // if we've scrolled more than the navigation, change its position to fixed to stick to top, 44 // otherwise change it back to relative 45 46 if(rapidwp_ajax_object.sticky_menu_mobile){ 47 if (rapidwpscrollTop > rapidwpstickyNavTop) { 48 $('.rapidwp-primary-menu-container').addClass('rapidwp-fixed'); 49 } else { 50 $('.rapidwp-primary-menu-container').removeClass('rapidwp-fixed'); 51 } 52 } else { 53 if(window.innerWidth > 1112) { 54 if (rapidwpscrollTop > rapidwpstickyNavTop) { 55 $('.rapidwp-primary-menu-container').addClass('rapidwp-fixed'); 56 } else { 57 $('.rapidwp-primary-menu-container').removeClass('rapidwp-fixed'); 58 } 59 } 60 } 61 }; 62 63 rapidwpstickyNav(); 64 // and run it again every time you scroll 65 $(window).on( "scroll", function() { 66 rapidwpstickyNav(); 67 }); 68 } 69 70 $(".rapidwp-nav-primary .rapidwp-primary-nav-menu").addClass("rapidwp-primary-responsive-menu"); 71 72 $( ".rapidwp-primary-responsive-menu-icon" ).on( "click", function() { 73 $(this).next(".rapidwp-nav-primary .rapidwp-primary-nav-menu").slideToggle(); 74 }); 75 76 $(window).on( "resize", function() { 77 if(window.innerWidth > 1112) { 78 $(".rapidwp-nav-primary .rapidwp-primary-nav-menu, nav .sub-menu, nav .children").removeAttr("style"); 79 $(".rapidwp-primary-responsive-menu > li").removeClass("rapidwp-primary-menu-open"); 80 } 81 }); 82 83 $( ".rapidwp-primary-responsive-menu > li" ).on( "click", function(event) { 84 if (event.target !== this) 85 return; 86 $(this).find(".sub-menu:first").toggleClass('rapidwp-submenu-toggle').parent().toggleClass("rapidwp-primary-menu-open"); 87 $(this).find(".children:first").toggleClass('rapidwp-submenu-toggle').parent().toggleClass("rapidwp-primary-menu-open"); 88 }); 89 90 $( "div.rapidwp-primary-responsive-menu > ul > li" ).on( "click", function(event) { 91 if (event.target !== this) 92 return; 93 $(this).find("ul:first").toggleClass('rapidwp-submenu-toggle').parent().toggleClass("rapidwp-primary-menu-open"); 94 }); 95 96 } 97 98 $(".rapidwp-social-icon-search").on('click', function (e) { 99 e.preventDefault(); 100 document.getElementById("rapidwp-search-overlay-wrap").style.display = "block"; 101 }); 102 103 $(".rapidwp-search-closebtn").on('click', function (e) { 104 e.preventDefault(); 105 document.getElementById("rapidwp-search-overlay-wrap").style.display = "none"; 106 }); 107 108 $(".post").fitVids(); 109 110 var scrollButtonEl = $( '.rapidwp-scroll-top' ); 111 scrollButtonEl.hide(); 112 113 $(window).on( "scroll", function() { 114 if ( $( window ).scrollTop() < 20 ) { 115 $( '.rapidwp-scroll-top' ).fadeOut(); 116 } else { 117 $( '.rapidwp-scroll-top' ).fadeIn(); 118 } 119 } ); 120 121 scrollButtonEl.on( "click", function() { 122 $( "html, body" ).animate( { scrollTop: 0 }, 300 ); 123 return false;
124 } ); 125 126 if(rapidwp_ajax_object.slider_active){ 127 128 if ( $().owlCarousel ) { 129 var rapidwpcarouselwrapper = $('.rapidwp-posts-carousel'); 130 var rapidwpcarouselimgload = imagesLoaded(rapidwpcarouselwrapper); 131 rapidwpcarouselimgload.on( 'always', function() { 132 rapidwpcarouselwrapper.each(function(){ 133 var $this = $(this); 134 $this.find('.owl-carousel').owlCarousel({ 135 autoplay: true, 136 loop: true, 137 margin: 10, 138 smartSpeed: 250, 139 dots: true, 140 nav: false, 141 autoplayTimeout: 4000, 142 autoHeight: false, 143 navText: [ '<i class="fa fa-arrow-left" aria-hidden="true"></i>', '<i class="fa fa-arrow-right" aria-hidden="true"></i>' ], 144 responsive:{ 145 0:{ 146 items: 1 147 }, 148 480:{ 149 items: 1 150 }, 151 991:{ 152 items: 1 153 }, 154 1024:{ 155 items: 1 156 } 157 } 158 }); 159 }); 160 }); 161 } // end if 162 163 } 164 165 if(rapidwp_ajax_object.sticky_sidebar){ 166 $('.rapidwp-main-wrapper, .rapidwp-sidebar-one-wrapper, .rapidwp-sidebar-two-wrapper').theiaStickySidebar({ 167 containerSelector: ".rapidwp-content-wrapper", 168 additionalMarginTop: 0, 169 additionalMarginBottom: 0, 170 minWidth: 960, 171 }); 172 173 $(window).on( "resize", function() { 174 $('.rapidwp-main-wrapper, .rapidwp-sidebar-one-wrapper, .rapidwp-sidebar-two-wrapper').theiaStickySidebar({ 175 containerSelector: ".rapidwp-content-wrapper", 176 additionalMarginTop: 0, 177 additionalMarginBottom: 0, 178 minWidth: 960, 179 }); 180 }); 181 } 182 183});
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.