1(function($) { 2 $(document).ready(function() { 3 jQuery('*[data-click-toggle-class]').on('click', function(e){ 4 $(this).toggleClass($(this).attr('data-click-toggle-class')); 5 }); 6 // Set Cookie For NPI 7 $("#npi-products-modal .close.ui-dialog-titlebar-close").click(function() { 8 window.location.href = '/'; 9 }); 10 $("header .down-menu-wrapper .main_menu.drop_down #menu-main-menu-1 > li > a,.header_top.clearfix nav.main_menu ul li.menu-item.narrow>a").click(function(e){ 11 e.preventDefault(); 12 }); 13 /************************/ 14 $(".circle-slider-container .nav-tabs li").click(function(){ 15 $(this).addClass("active").siblings().removeClass("active"); 16 }); 17 jQuery(document).on("click", ".show-mobile-circle .accordion-tab:not(.tab-opened) .accordion-btn,.show-mobile-circle .accordion-tab:not(.tab-opened) .circle-content-title", function(){ 18 jQuery(this).parent().addClass("tab-opened"); 19 jQuery(this).parent().siblings().removeClass("tab-opened"); 20 jQuery(this).parent().siblings().find(".field--type-text-long").hide(300) 21 jQuery(this).parent().find(".field--type-text-long").show(300); 22 }) 23 jQuery(document).on("click", ".show-mobile-circle .tab-opened .accordion-btn,.show-mobile-circle .tab-opened .circle-content-title", function(){ 24 jQuery(this).parent().removeClass("tab-opened"); 25 jQuery(this).parent().find(".field--type-text-long").hide(300); 26 }) 27 28 /*************************/ 29 30 /*new js code*/ 31 jQuery('.tabs-headers a').on('click',function(e){ 32 e.preventDefault(); 33 jQuery(".tabs-headers a").removeClass('active'); 34 jQuery(this).addClass('active'); 35 jQuery(this).closest(".tabs-headers").next(".tabs-content").find(jQuery(this).attr("href")).addClass("active").siblings().removeClass('active'); 36 }); 37 /*************************/ 38 jQuery(".advocacy-open-btn").click(function() { 39 jQuery(this).parents(".image-desc-fields").addClass("active"); 40 jQuery(this).closest(".field__item").siblings().find(".image-desc-fields").removeClass("active"); 41 }); 42 jQuery(".advocacy-close-btn").click(function() { 43 jQuery(this).parents(".image-desc-fields").removeClass("active"); 44 }); 45 46 jQuery(document).on("click", ".mobile-menu-open .mobile_menu_button > span", function (e) { 47 jQuery('.second').each(function () { 48 jQuery(this).removeClass('drop_down_start'); 49 }); 50 jQuery('.menu-item.narrow').each(function () { 51 jQuery(this).removeClass('open_list'); 52 }); 53 jQuery('.open_sub').each(function () { 54 jQuery(this).removeClass('open_sub'); 55 }); 56 jQuery('ul.sub_menu').each(function () { 57 jQuery(this).slideUp(200); 58 }); 59 if(jQuery("#language_selector_1").hasClass("opened")){ 60 jQuery("#language_selector_1").removeClass("opened"); 61 jQuery("#languages").hide(); 62 jQuery(".mobile-language #languages").hide(); 63 jQuery("#language_selector_1 i").removeClass("open-lang"); 64 } 65 //jQuery("#language_selector_1.opened").trigger("click"); 66 //e.preventDefault(); 67 }); 68 69 jQuery('.mobile-menu-container .menu-item.narrow').on('click',function(){ 70 jQuery('.mobile-menu-container .open_sub').each(function () { 71 jQuery(this).removeClass('open_sub'); 72 }); 73 jQuery('.mobile-menu-container ul.sub_menu').each(function () { 74 jQuery(this).slideUp(200); 75 }); 76 if(jQuery("#language_selector_1").hasClass("opened")){ 77 jQuery("#language_selector_1").removeClass("opened"); 78 jQuery("#languages").hide(); 79 jQuery(".mobile-language #languages").hide(); 80 jQuery("#language_selector_1 i").removeClass("open-lang"); 81 } 82 }); 83 jQuery(".mobile_menu > ul > li.has_sub > span.mobile_arrow,.mobile_menu > ul > li.has_sub > p").on("click", function (e) { 84 jQuery('.second').each(function () { 85 jQuery(this).removeClass('drop_down_start'); 86 }); 87 jQuery('.mobile-menu-container .menu-item.narrow').each(function () { 88 jQuery(this).removeClass('open_list'); 89 }); 90 if(jQuery("#language_selector_1").hasClass("opened")){ 91 jQuery("#language_selector_1").removeClass("opened"); 92 jQuery("#languages").hide(); 93 jQuery(".mobile-language #languages").hide(); 94 jQuery("#language_selector_1 i").removeClass("open-lang"); 95 } 96 }) 97 // var IsDocCookieValue = getCookie('IsDocCookie'); 98 var IsDocCookieValue = sessionStorage.getItem("IsDocSessionStorage"); 99 if (IsDocCookieValue != 'true') { 100 $('#npi-products-modal').modal({ show: true, backdrop: 'static' }); 101 $('#npi-products-modal').show().addClass("show"); 102 $('#npi-products-modal').on('hide.bs.modal', function() { 103 if ($('#npi-products-modal input[name="npiNumber"]').val().length < 1 || !$('#npi-products-modal .approve').hasClass('btn-primary')) { 104 window.location.href = '/'; 105 } 106 }); 107 108 $('#npi-products-modal .approve').click(function() { 109 $(this).toggleClass('btn-primary'); 110 $('#npi-products-modal .nip-product-number').toggleClass('hide'); 111 }); 112 113 $('#npi-products-modal .decline').click(function() { 114 window.location.href = '/'; 115 }); 116 117 $('#npi-products-modal .submit').click(function() { 118 if ($('#npi-products-modal input[name="npiNumber"]').val().length > 2 && $('#npi-products-modal input[name="name"]').val().length > 0) { 119 NPISubmit(); 120 } else { 121 $('.error').removeClass('hide'); 122 } 123 }) 124 125 $('#npi-products-modal input[name="npiNumber"]').keyup(function(e) { 126 if (e.key.toLowerCase() == 'enter' && $(this).val().length > 2 && $('#npi-products-modal input[name="name"]').val().length > 0) { 127 NPISubmit(); 128 } else { 129 if (e.key.toLowerCase() == 'enter') { 130 $('.error').removeClass('hide'); 131 } 132 } 133 }) 134 135 function NPISubmit() { 136 $('#npi-products-modal .submit').text('Please Wait...').prop('disabled', true) 137 $.ajax({ 138 type: "GET", 139 url: "/call/ajax/insert?name=\"" + $('#npi-products-modal input[name="name"]').val() + "\"&npi=\"" + $('#npi-products-modal input[name="npiNumber"]').val() + "\"", 140 141 success: function() { 142 // setCookie('IsDocCookie', 'True', 0.02083333333); 143 sessionStorage.setItem("IsDocSessionStorage", "true"); 144 $('#npi-products-modal').hide().removeClass("show"); 145 } 146 }); 147 } 148 } 149 }); 150 151})(jQuery);
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.