PageSourceSearch

https://www.kentnewmancenterparish.org/datafiles/kanmo_custom.min.js.download

js kentnewmancenterparish.org collected 2026-10-08 08:15:32 UTC 10,767 bytes, 18 lines download raw bytes

1require(['jquery'],function($){$(document).on('click','.gift-wrapping-item',function(){if($(this).hasClass('_active')){$('.gift-options .actions-toolbar .action.secondary.action-update').removeAttr('disabled').addClass('gift-button-blue');}else{$('.gift-options .actions-toolbar .action.secondary.action-update').attr('disabled').removeClass('gift-button-blue');}});$('.search-label').click(function(){$('.form.minisearch').toggleClass('active');})
2$(document).find('#search-cancel-mob').click(function(e){e.preventDefault();$('#search_mini_form').removeClass('active');})
3if($(".category-banner-promo").length>0){$(".category-banner-promo").parent().addClass('cbp-row');}
4$(document).on('click','#kanmo-mc-search-btn',function(){$('.kanmo-middle-header').addClass('open-search');});$(document).on('click','#kanmo-mc-cancel-btn',function(){$('.kanmo-middle-header').removeClass('open-search');});$(document).on('click','.heading-shop-with-us-kanmo-mc',function(){$('.shop-with-us-column-mc').toggleClass('open-content');})
5$(document).on('click','.heading-shop-with-us div',function(){$('.heading-shop-with-us').removeClass('open-content');});$(document).on('click','.heading-shop-by-category-kanmo-mc',function(){$('.shop-by-category-column-mc').toggleClass('open-content');});$(document).on('click','.heading-need-help-kanmo-mc',function(){$('.need-help-column-mc').toggleClass('open-content');});$(document).on('click','#download-apps-kanmo',function(e){$('#download-apps-kanmo-popup-modal').toggleClass('is-visible');});$(document).on('click','.logo img',function(e){setTimeout(function(){window.location.href='/';},20);});$("body").contents().filter(function(){return this.nodeType===3&&this.nodeValue.includes("CSKSGE3C77UF5CI63NN");}).remove();$(document).on('keypress','#search_mini_form .input-text',function(e){if(e.which==13){$('#search_mini_form').submit();}});$(document).on('click','.action.tocart',function(e){let productIds=$(this).parents('.product-item').find('.price-final_price').data('product-id');let productId=productIds;productIds=[productIds];$.ajax({type:'POST',url:window.location.origin+'/datalayer/ga/cartlayer',data:{'ids':productIds,'requestFrom':'recent_view'},showLoader:true,success:function(data){}});});$(document).on('click','.action.tocart',function(){if($('body').hasClass('catalog-category-view')){$('#custom-popup-modal').remove();}});$(document).ready(function(){showBrandSelected();});$(document).on('click','.nav-toggle',function(e){showBrandSelected();});function showBrandSelected(){var mobileBreakpoint=768;if(window.innerWidth<=mobileBreakpoint){var path=window.location.pathname;var pathParts=path.split('/');var mainMenu=pathParts[1];var submenu=pathParts[2].replace('.html','');if(mainMenu=="brand-a-z"){$('.nav-item.level0.submenu-left a').each(function(){var href=$(this).attr('href');if(href===path){$(this).parent().css({'background-color':'rgb(193, 195, 205)','padding':'5px'});$('.opener').parent('.nav-anchor').addClass('anchor-active');var parent=$('.opener').parents(".nav-item").eq(0);var items=parent.find(".submenu");$('.opener').toggleClass('item-active');$(items[0]).attr('style','display:block !important');let uu=$(this).parent().offset().top;$('.navigation-wrapper').on('scroll touchmove mousewheel',function(e){$(this).scrollTop(0);});setTimeout(function(){$('.navigation-wrapper').off('scroll touchmove mousewheel');},500);$('.menav').scrollTop(uu-250);}});}}}
6var isMobileMedia=window.matchMedia("only screen and (max-width: 767px)").matches;if(isMobileMedia){$(document).on('click','.action.showcart',function(e){e.preventDefault();e.stopPropagation();window.location.href=$(this).attr('href');});if($('body').hasClass('cms-index-index')){$('.mobile-add-bag').show();$('.mobile-add-bag .btn-add').on('click hover',function(e){$('.product-item-info').removeClass('hover');$(this).parent().prev().find('.swatch-attribute-options').pagebuilderSlider({dots:true,arrows:true});console.log('xxx parent',$(this).parents('.product-item-info').attr('class'));$(this).parents('.product-item-info').addClass('hover');$($(this).parent().siblings('div[class^="swatch-opt-"]')).appendTo($(this).parent().siblings('div[class^="swatch-opt-"]').closest('.product-item-info').find('.product-item-photo'));e.stopPropagation();});}}
7$(document).on('click','.opener',function(e){console.log('new data ccc');e.preventDefault();e.stopPropagation();console.log('new data xxx');if($.breeze){console.log('new data');$(this).parent('.nav-anchor').addClass('anchor-active');var parent=$(this).parents(".nav-item").eq(0);console.log('parent-submenum',parent.find(".submenu").eq(0));var items=parent.find(".submenu");$(this).toggleClass('item-active');if($(items[0]).is(":hidden")){$(items[0]).attr('style','display:block !important');}else{$(items[0]).attr('style','display:none !important');}
8$(items[0]).toggleClass('submenu-active');return false;}});$(document).on('click','.brand-az a',function(evt){evt.preventDefault();var $this=$(this),$brand=$('.brand-name'),_count=0;$brand.show();$('.brand-az a').removeClass('active');$this.addClass('active');var $alp=$this.text();$brand.hide();$brand.each(function(i){var _cellText=$(this).children('.brand-name a').eq(0).text();if(RegExp('^'+$alp).test(_cellText)){_count+=1;$(this).fadeIn(400);}});});$(document).on('click','.brand-az a.number',function(evt){evt.preventDefault();var $this=$(this),$brand=$('.brand-name'),$brandNum=$('.brand-name.numb');$brand.show();$('.brand-az a').removeClass('active');$this.addClass('active');var $alp=$this.text();$brand.hide();$brandNum.show();});$(document).on('click','#chat-shop',function(){$('.verloop-button').trigger('click');});$(document).on('breeze:load',function(){if($('body').hasClass('cms-index-index')){$('.widget-product-carou
8sel .product-item').hover(function(){$(this).addClass('img-hover');$(this).find('.swatch-attribute-options').pagebuilderSlider({dots:true,arrows:true});});}
9if($("#applied-filters").length>0){$("#applied-filters").insertAfter($("#amasty-shopby-product-list .toolbar")[0]);}
10setTimeout(function(){$(".swatch-attribute-options").each(function(){if($(this).find('.slick-dots').length>0){$(this).addClass('slick-active');}});},3500);if($(".account .block-collapsible-nav-title").length>0){var currentLink=$(".account #block-collapsible-nav").find('li.current').html();$(".account .block-collapsible-nav-title").html(currentLink);console.log('current linkd',$(".account #block-collapsible-nav").find('li.current').html());}});$('a.towishlist').on('click',function(e){e.preventDefault();e.stopPropagation();$('body').addClass('adding-wishlist');$('body').spinner(true);$(this).prev('.wishlist-msg').addClass('no-display');console.log('add-to-wishlist',$(this).attr("data-post"));var parsedJson=JSON.parse($(this).attr("data-post"));var url=parsedJson.action;var data1=parsedJson.data;var current_prod=data1.product;var current_uenc=data1.uenc;formKey=$('input[name="form_key"]').val();var data={action:"add-to-wishlist","super_attribute[93]":data1['super_attribute[93]'],"super_attribute[157]":data1['super_attribute[157]'],form_key:""+formKey+"",product:current_prod,uenc:current_uenc}
11$.ajax({type:"POST",url:url,data:data,context:this,loader:true,dataType:'json',success:function(data,textStatus,jqXHR){var backUrl=data.backUrl;if(typeof backUrl!="undefined"){if(backUrl.indexOf('wishlist_id')>-1){$(this).show()
12$(this).addClass('added-wishlist');$(this).prev('.wishlist-msg').removeClass('no-display');setTimeout(function(){$(this).prev('.wishlist-msg').addClass('no-display');},2000);}else{if(data.optionToSellect===1){$(this).prev('.wishlist-msg').removeClass('no-display');$(this).prev('.wishlist-msg').addClass('error');$(this).prev('.wishlist-msg').html('Please select color and size');}else{alert('Something went wrong. Please try again');}}
13$('body').spinner(false);$('body').removeClass('adding-wishlist');var productIds=[current_prod];$.ajax({type:'POST',url:window.location.origin+'/datalayer/ga/cartlayer',data:{'ids':productIds,'requestFrom':'recent_view'},success:function(data){var productName=data[0].product_name;let _productName=productName?productName:"Not Defined";let _sku=data[0].sku?data[0].sku:"Not Defined";let _productPrice=data[0].price?data[0].price:"Not Defined";let _brand=data[0].origin_brand?data[0].origin_brand:"Not Defined";let _category=data[0].category?data[0].category:"Not Defined";let _category1=data[0].category1?data[0].category1:"Not Defined";let _category2=data[0].category2?data[0].category2:"Not Defined";let _category3=data[0].category3?data[0].category3:"Not Defined";if(typeof productCart!=='undefined'){productCart.push(products);}
14if($('body').hasClass('page-product-bundle')){_productPrice=$('.price-container.price-configured_price > span[data-price-type="finalPrice"] span').text()?$('.price-container.price-configured_price > span[data-price-type="finalPrice"] span').text():0;_productPrice=_productPrice.replace("Rp ","");_productPrice=_productPrice.replace(".","");_productPrice=_productPrice.replace(".","");}}});}else{location.href=BASE_URL+"/customer/account/login";}},error:function(jqXHR,textStatus,errorThrown){$('body').spinner(false);$('body').removeClass('adding-wishlist');console.log(errorThrown,textStatus,jqXHR);alert('error ajax');}});return false;});$(document).ready(function(){$('.customer-account-create .customer-signup-inner .field-dob').addClass('required');$('.customer-account-create .customer-signup-inner .field-dob .customer-dob input').attr('required','true');});function getCookie(name){var nameEQ=name+"=";var cookiesArray=document.cookie.split(';');for(var i=0;i<cookiesArray.length;i++){var cookie=cookiesArray[i];while(cookie.charAt(0)==' '){cookie=cookie.substring(1,cookie.length);}
15if(cookie.indexOf(nameEQ)==0){return cookie.substring(nameEQ.length,cookie.length);}}
16return null;}
17var customerLogin=getCookie("customerLogin");console.log('customerLogin',customerLogin);$(document).on('click','.authorization-link > a',function(){setCookie("customerLogin",0,2);})
18$(document).on('click','.page-with-filter .filter-options-item .filter-options-content ol li a',function(){var _link=$(this).attr('data-href');window.location=_link;});$(document).on('click','.page-with-filter .filter-options-item .filter-options-content ul li a.amshopby-filter-parent',function(){var _link=$(this).attr('data-href');window.location=_link;});$(document).on('click','.page-with-filter .filter-options-item .filter-options-content a.am-swatch-link',function(){var _link=$(this).attr('data-href');window.location=_link;});function setCookie(name,value,hours){let date=new Date();date.setTime(date.getTime()+(hours*60*60*1000));let expires="expires="+date.toUTCString();document.cookie=name+"="+value+";"+expires+";path=/";}});

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.