PageSourceSearch

https://www.mirfundmerch.com/wp-content/themes/mir/js/newscript.js?ver=1.0

js mirfundmerch.com collected 2026-10-06 02:10:49 UTC 2,528 bytes, 31 lines download raw bytes

1document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".wpcvs-terms .wpcvs-term").forEach((function(e){e.addEventListener("click",(function(){var t=e.closest(".wpcvs-terms").dataset.attribute;if(e.classList.contains("wpcvs-disabled")){var s=document.querySelector(".reset_variations");s&&s.click()}else if("pa_typ"===t){var c=document.querySelector("#pa_size");c&&(c.selectedIndex=0);var o=document.querySelector("#pa_typ");o&&(o.value=e.dataset.term)}}))}))})),document.addEventListener("DOMContentLoaded",(function(){setTimeout((()=>{document.querySelector(".cky-consent-container").classList.add("show")}),15e3)})),document.addEventListener("wpcf7mailsent",(function(e){setTimeout((()=>{location="thank-you-submit"}),1)}),!1),document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelector(".copyButton");if(e){const t=e.getAttribute("data-email");e.addEventListener("click",(function(){if(window.navigator.clipboard&&window.isSecureContext)window.navigator.clipboard.writeText(t).then((()=>{e.classList.add("success"),setTimeout((()=>e.classList.remove("success")),2e3)})).catch((()=>{e.classList.add("error"),setTimeout((()=>e.classList.remove("error")),2e3)}));else{const s=document.createElement("textarea");s.value=t,s.style.position="absolute",s.style.left="-9999px",document.body.appendChild(s),s.select();try{document.execCommand("copy"),e.classList.add("success"),setTimeout((()=>e.classList.remove("success")),2e3)}catch(t){e.classList.add("error"),setTimeout((()=>e.classList.remove("error")),2e3)}finally{s.remove()}}}))}}));
2
3
4
5jQuery(function($) {
6	const $form = $('form.variations_form');
7	const $defaultContainer = $('.woocommerce-variation-add-to-cart');
8	const defaultPrice = $defaultContainer.data('default-price');
9
10	$form.on('show_variation', function(event, variation) {
11		const priceHtml = variation.price_html;
12		const $temp = $('<div>' + priceHtml + '</div>');
13		const $newPrice = $temp.find('.woocommerce-Price-amount').first();
14		const $btnPrice = $('.js-buy-btn-label .woocommerce-Price-amount').first();
15
16		if ($newPrice.length && $btnPrice.length) {
17			$btnPrice.html($newPrice.html());
18			$('.js-buy-btn-label .woocommerce-Price-amount').slice(1).remove();
19		}
20	});
21
22	$form.on('reset_data', function() {
23		const $btnPrice = $('.js-buy-btn-label .woocommerce-Price-amount').first();
24
25		if ($btnPrice.length && defaultPrice) {
26			$btnPrice.html(defaultPrice);
27		}
28
29		$('.js-buy-btn-label .woocommerce-Price-amount').slice(1).remove();
30	});
31});

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.