1jQuery(function ($) { 2 3 if ($('#punte-side-navigation').length > 0) { 4 5 $('body').on('click keypress','.punte-nav-icon', function(){ 6 $(this).toggleClass('active'); 7 $('#punte-side-navigation') .toggleClass('active'); 8 }); 9 //submenu toggle 10 $('.main-side-navigation ul li ul').slideUp(); 11 12 $('<div class="sub-toggle" tabindex="0"></div>').insertBefore('.main-side-navigation .menu-item-has-children ul'); 13 14 $('body').on('click keypress','.main-side-navigation .sub-toggle', function() { 15 $(this).next('ul.sub-menu').slideToggle(400); 16 $(this).parent('li').toggleClass('mob-menu-toggle'); 17 }); 18 19 } 20 21 //Sticky Sidebar 22 $('.punte-sticky-sidebar .punte-row > .vc_column_container').theiaStickySidebar({ 23 // Settings 24 additionalMarginTop: 10, 25 additionalMarginBottom: 10 26 }); 27 28 if (punte_options.sticky_sidebar == "1") { 29 $('.sidebar, .content-area').theiaStickySidebar({ 30 // Settings 31 additionalMarginTop: 10, 32 additionalMarginBottom: 10 33 }); 34 } 35 36 37 38 39 //ScrollTop 40 $(window).scroll(function () { 41 if ($(window).scrollTop() > 300) { 42 $('#pune-back-top').fadeIn(); 43 } else { 44 $('#pune-back-top').fadeOut(); 45 } 46 }); 47 48 $('#pune-back-top').click(function () { 49 $('html,body').animate({ 50 scrollTop: 0 51 }, 800); 52 }) 53 54 /* Wishlist count ajax update */ 55 jQuery(document).ready(function ($) { 56 $('body').on('added_to_wishlist', function () { 57 $('.top-wishlist .count').load(yith_wcwl_plugin_ajax_web_url + ' .top-wishlist span', {action: 58 'yith_wcwl_update_single_product_list'}); 59 }); 60 }); 61 62 $('.menu-item-search a, .punte-mobile-search').click(function () { 63 $('.header-search-wrapper').toggleClass('on'); 64 }); 65 66 $('body').on('click keypress','.search-close', function(){ 67 $('.header-search-wrapper').removeClass('on'); 68 }); 69 70 71 72 setTimeout(function () { 73 $.stellar({ 74 horizontalScrolling: false, 75 responsive: true, 76 }); 77 }, 3000); 78 79 80 81 if ($('.main-header').length > 0) { 82 var onpageOffset = $('.main-header').outerHeight(); 83 } else { 84 onpageOffset = 0 85 } 86 87 /*START SMOOTH SCROLL JS*/ 88 $('#site-navigation').onePageNav({ 89 navItems: 'a[href^=#]', 90 currentClass: 'current', 91 changeHash: false, 92 scrollSpeed: 750, 93 scrollOffset: onpageOffset 94 }); 95 96 // *only* if we have anchor on the url 97 var target = window.location.hash; 98 if (target && $(target).length) { 99 $('html, body').animate({ 100 scrollTop: $(target).offset().top - onpageOffset 101 }, 1000); 102 } 103});
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.