jQuery(document).ready( function(){ /** * BuzzNews Tabs active calss * * @since 1.0.0 * @description woocommerce products tab section display options */ // jQuery( ".buzznews-sidenav-dropdown" ).before( "
" ); // jQuery( "div.buzznews-submenu-section" ).click(function() { // jQuery( this ).toggleClass( "added" ); // var buzznews_submenu = jQuery(this).hasClass( "added" ); // if( buzznews_submenu == false ){ // jQuery(this).parent().find('.buzznews-sidenav-dropdown').first().show(); // }else{ // jQuery(this).parent().find('.buzznews-sidenav-dropdown').first().hide(); // } // }); /** * BuzzNews homepage slider * * @since 1.0.0 * @description woocommerce products tab section display options */ jQuery('.buzznews-main-slider').show().slick({ dots: true, infinite: true, speed: 500, fade: true, cssEase: 'linear', autoplay: true, nextArrow: '', prevArrow: '', responsive: [ { breakpoint: 991, settings: { dots: false } }, ] }); /** * BuzzNews category postlist slider * * @since 1.0.0 * @description woocommerce products tab section display options */ jQuery('.buzznews-fullslider-slider').show().slick({ infinite: true, autoplay: true, slidesToShow: 4, slidesToScroll: 4, dots: true, nextArrow: '', prevArrow: '', responsive: [ { breakpoint: 1834, settings: { slidesToShow: 4 } }, { breakpoint: 991, settings: { slidesToShow: 3 } }, { breakpoint: 768, settings: { slidesToShow: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1 } } ] }); /** * BuzzNews homepage vertical slider * * @since 1.0.0 * @description woocommerce products tab section display options */ jQuery('.buzznews-vertical').show().slick({ autoplay: true, vertical: true, slidesToShow: 7, slidesToScroll: 1, verticalSwiping: true, autoplaySpeed: 10000, infinite: true, nextArrow: '', prevArrow: '', responsive: [ { breakpoint: 1834, settings: { slidesToShow: 7 } }, { breakpoint: 991, settings: { slidesToShow: 5 } }, { breakpoint: 768, settings: { slidesToShow:3 } }, { breakpoint: 480, settings: { slidesToShow: 3 } } ] }); /** * Match height js * * @since 1.0.0 * @description woocommerce products tab section display options */ jQuery('.middle-bottom-wrapper').matchHeight(); jQuery('.buzznews-fullslider-single-section').matchHeight(); /** * Sdiebar Sticky section * * @since 1.0.0 * @description sticky the sidebar section */ jQuery('.content-area, .buzznews-sidebar-sticky').theiaStickySidebar(); /** * Sticky Menu Options * * @since 1.0.0 * @description sticky the menu section */ if( BUZZNEWS.sticky_enable == 1){ var yourNavigation = jQuery(".sb-navmenu"); stickyDiv = "sticky"; yourHeader = jQuery('.sb-header-logo').height(); jQuery(window).scroll(function() { if( jQuery(this).scrollTop() > yourHeader ) { yourNavigation.addClass(stickyDiv); } else { yourNavigation.removeClass(stickyDiv); } }); } /** * Buzznews ajax post * * @since 1.0.0 * @description click then ajax call */ var newsIndex = []; for(var i=0, len=localStorage.length; i