PageSourceSearch

https://www.krispykrunchy.com/wp-content/themes/hello-elementor-child/customjs.js?ver=7.0.5

js krispykrunchy.com collected 2026-09-25 20:21:20 UTC 4,429 bytes, 112 lines download raw bytes

1/*
2Custom JS Started
3*/
4jQuery(function($) {
5	var width = $( window ).width();
6	// if(width < 1024){
7		$('.product_details_holder .product_decsription_initiator_start_button img').hide();
8		$('.product_details_holder .product_decsription_initiator_close_button img').hide();
9		$(".product_details_holder").hover(function(){
10			var product_details_holder = $(this);
11			var startButton = $(this).find('.product_decsription_initiator_start_button img');
12			var closeButton = $(this).find('.product_decsription_initiator_close_button img');
13			$(product_details_holder).find('.product_description').stop().animate({height: 100+"%"}, 250);
14			startButton.stop().hide(250);
15			closeButton.stop().show(250);
16			// Clickable Code
17			$(startButton).on('click', function(){
18				$(product_details_holder).find('.product_description').stop().animate({height: 100+"%"}, 250);
19				startButton.stop().hide(250);
20				closeButton.stop().show(250);
21			});
22			$(closeButton).on('click', function(){
23				$(product_details_holder).find('.product_description').stop().animate({height: 16+"%"}, 250);
24				startButton.stop().show(250);
25				closeButton.stop().hide(250);
26			});
27		}, function(){
28			var product_details_holder = $(this);
29			var startButton = $(this).find('.product_decsription_initiator_start_button img');
30			var closeButton = $(this).find('.product_decsription_initiator_close_button img');
31			$(product_details_holder).find('.product_description').stop().animate({height: 16+"%"}, 500);
32			startButton.stop().show(250);
33			closeButton.stop().hide(250);
34			// Clickable Code
35			$(startButton).on('click', function(){
36				$(product_details_holder).find('.product_description').stop().animate({height: 100+"%"}, 250);
37				startButton.stop().hide(250);
38				closeButton.stop().show(250);
39			});
40			$(closeButton).on('click', function(){
41				$(product_details_holder).find('.product_description').stop().animate({height: 16+"%"}, 250);
42				startButton.stop().show(250);
43				closeButton.stop().hide(250);
44			});
45		});
46	// }
47
48	//Getting Direction Variable Link and passing to custom button source
49	var direction = $("#store-locator-single-page-section .container .custom-row .custom-column .wpsl-locations-details .wpsl-location-directions p a").attr('href');
50	var customdirection = $("#customdirection").attr('href', direction);
51
52
53	//Getting Current Page/URL path name
54	// var PathName = window.location.pathname;
55	var PathName = location.pathname.substring(location.pathname.lastIndexOf("n/") + 1);
56	if(PathName == "/locations/"){
57		//Passing Homepage URL Search Param to Store Locator Search Form
58		var queryString = window.location.search;
59
60		var urlParams = new URLSearchParams(queryString);
61
62		var ziporadd = urlParams.get('ziporadd');
63
64		if(ziporadd != ""){
65			document.getElementById('wpsl-search-input').value = ziporadd;
66			//Triggering Button Click on load if GET is active
67			// var locationsArchive = document.getElementById('wpsl-search-btn').click();
68
69		}
70	}
71	
72	if(PathName == "/contact/"){
73		var contact_success_message = document.getElementById('contact_success_message');
74		contact_success_message.style.display = "none";
75		//Validating Contact Page Success Param
76		var queryString = window.location.search;
77
78		var urlParams = new URLSearchParams(queryString);
79
80		var contact_success = urlParams.get('contact_success');
81
82		if(contact_success != ""){
83			if(contact_success == "true"){
84				contact_success_message.style.display = "block";
85			}
86		}
87	}
88	if(PathName == "/contact-success/"){
89		var contact_success_message = document.getElementById('contact_success_message');
90		contact_success_message.style.display = "none";
91		//Validating Contact Page Success Param
92		var queryString = window.location.search;
93
94		var urlParams = new URLSearchParams(queryString);
95
96		var contact_success = urlParams.get('contact_success');
97
98		if(contact_success != ""){
99			if(contact_success == "true"){
100				contact_success_message.style.display = "block";
101			}
102		}
103	}
104	// Adding border bottom on partner pages subheader menu
105	if((PathName == "/partnering/") || (PathName == "/partnering/programs/") || (PathName == "/partnering/marketing/") || (PathName == "/partnering/faq/") || (PathName == "/partnering/partner-contact/")){
106		//Add border to bottom of each active link
107		$("#menu-2-e19f2de a.elementor-item-active").css({
108			"border-bottom": "4px solid var(--e-global-color-accent)",
109		    "transition": "all 0.25s ease-in-out 0s"
110		});
111	}
112});

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.