1jQuery( document ).ready(function($) { 2 let ajax_request; 3 4 $('.i_scroll_to').click(i_scroll_to); 5 6 function i_scroll_to(e) { 7 e.preventDefault(); 8 var scroll_to_el = $(this).attr('href'); //data-scroll_to 9 i_scroll_to_el(scroll_to_el); 10 return false; 11 } 12 function i_scroll_to_el(scroll_to_el) { 13 if ($(scroll_to_el).length) { 14 $('html,body').animate({'scrollTop': ($(scroll_to_el).offset().top - $('#masthead').height() - 60)}, 500); 15 i_scrolled_to(scroll_to_el); 16 } 17 } 18 function i_scrolled_to(scrolled_to) { 19 if (scrolled_to == '#select_product_parent_form') 20 $('#select_product_parent_form').fadeOut(200).delay(400).fadeIn(200); 21 } 22 23 $(".top-header-button a").click(function(event){ 24 event.preventDefault(); 25 $(this).parents('.top-bar').css('display','none'); 26 }); 27 $('.mobile_tax_menu').on('change', function () { 28 var select_data_ulr = $(".mobile_tax_menu option:selected").attr('data-ulr'); 29 window.location.replace(select_data_ulr); 30 }); 31 32 if( $('.accordion_nav').length ){ 33 $('.accordion_nav').click(accordion_nav_content); 34 //$('.accordion_nav').eq(0).click(); 35 } 36 function accordion_nav_content(){ 37 $('.accordion_contents').show(); 38 $('.accordion_content').hide(); 39 if( $(this).hasClass('i_active') ){ 40 $(this).removeClass('i_active'); 41 $('.accordion_contents').hide(); 42 return false; 43 } 44 $('.accordion_nav').removeClass('i_active'); 45 $(this).addClass('i_active'); 46 let accord_id = $(this).attr('data-accord_id'); 47 if( accord_id ){ 48 $('.accordion_content[data-accord_id='+accord_id+']').show(); 49 i_scroll_to_el('#col-accordion_contents'); 50 } 51 } 52}); 53 54jQuery(document).ready(function($) { 55 $('a:not(.target_blank)').each(function() { 56 if( !$(this).parents('.nav').length ){ 57 var a = new RegExp('/' + window.location.host + '/'); 58 if (!a.test(this.href)) { 59 $(this).click(function(event) { 60 event.preventDefault(); 61 event.stopPropagation(); 62 window.open(this.href, '_blank'); 63 }); 64 } else { 65 $(this).click(function(event) { 66 event.preventDefault(); 67 event.stopPropagation(); 68 window.open(this.href, '_self'); 69 }); 70 } 71 } 72 73 }); 74 75 if (typeof window.flatsomeVars !== 'undefined') { 76 $(document).off('mouseenter mouseleave', '.nav > li.has-dropdown'); 77 78 $('.nav-dropdown').removeAttr('style'); 79 80 $('.nav > li.has-dropdown').off('mouseenter mouseleave'); 81 } 82 83 var observer = new MutationObserver(function(mutations) { 84 mutations.forEach(function(mutation) { 85 if (mutation.type === 'attributes' && mutation.attributeName === 'style') { 86 var target = mutation.target; 87 if ($(target).hasClass('nav-dropdown') || $(target).hasClass('sub-menu')) { 88 $(target).removeAttr('style'); 89 } 90 } 91 }); 92 }); 93 94 $('.nav-dropdown, .sub-menu').each(function() { 95 observer.observe(this, { 96 attributes: true, 97 attributeFilter: ['style'] 98 }); 99 }); 100});
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.