PageSourceSearch

https://www.bestauction.com/wp-content/themes/bestauction/js/custom.js?v=ver520:40

js bestauction.com collected 2026-10-09 01:04:37 UTC 7,695 bytes, 307 lines download raw bytes

1$(function(){
2
3	// MOBILE NAVIGATION
4	$('.mob-nav').click(function(){
5		$(this).toggleClass('open');
6		$('.nav').slideToggle();
7	
8		return false;
9	});
10	
11	$(window).resize(function(){
12		if( $(window).width() >= 1024 ){
13			$('.nav').removeAttr('style');
14		}
15	});
16	
17	// SLIDER & CAROUSELS
18	/*$('.bxslider').bxSlider({
19		"mode": 'fade',
20		"auto": true,
21		"pause": 3000,
22		"tickerHover": true,
23		"controls": false,
24	});*/
25
26	var heroSlides = $("#hero-slides");
27
28	if (heroSlides.length) {
29		var headings = $("#hero-slides h1");
30		headings.hide()
31		var activeIndex = 0;
32		replaceHeading();
33
34		function replaceHeading() {
35			heroSlides.children().hide()
36			$(headings[activeIndex]).fadeIn(1500);
37
38			if (activeIndex + 1 === headings.length) {
39				activeIndex = 0
40			} else {
41				activeIndex++;
42			}
43
44			setTimeout(() => {
45				replaceHeading();
46			}, 3800)
47		}
48	}
49
50
51	var testimonials = $(".testimonials");
52
53	if (testimonials.length) {
54		const swiper = new Swiper('.swiper--testimonials', {
55            // slidesPerView: 1,
56            // spaceBetween: 10,
57
58			// Responsive breakpoints
59            breakpoints: {
60                // when window width is >= 320px
61                320: {
62                    slidesPerView: 1,
63                    // spaceBetween: 20
64                },
65                // when window width is >= 480px
66                480: {
67                    slidesPerView: 1,
68                    // spaceBetween: 30
69                },
70                // when window width is >= 640px
71                768: {
72                    slidesPerView: 2,
73                    spaceBetween: 0
74                }
75            },
76
77            // If we need pagination
78            pagination: {
79                el: '.swiper-pagination',
80				clickable: true
81            },
82        });
83	}
84
85	$('.about-slider').bxSlider({
86		auto: true,
87		controls: false,
88		pager: true,
89		slideWidth: 1055
90	});
91
92	
93	$('.bxrefs').bxSlider({
94		"auto": true,
95		controls: true,
96		pager: true,
97	});
98	
99	/*$('.team-carousel').bxSlider({
100		"pager": false,
101		"auto": true,
102	});*/
103	
104	// IE PLACEHOLDER FIX
105	$('input, textarea').placeholder();
106	
107	$("header").sticky({
108		topSpacing	: 0,
109		className	: 'sticky',
110	});
111	
112	// MARQUEE
113	$('.marquee').marquee({
114		delayBeforeStart: 0,
115		duration: 9000,
116		pauseOnHover: true,
117	});
118	
119	$(".free_ul li[data-title='Public auction bidding']").html('max 3').css('background', '0');
120	
121	// TOOLTIPSTER
122	$('.tooltip').tooltipster({
123		position: 'right',
124	});
125	
126	// FANCYBOX
127	$('.various').fancybox({
128		padding		: 0,
129		maxWidth	: 800,
130		maxHeight	: 600,
131		fitToView	: false,
132		width		: '70%',
133		height		: '70%',
134		autoSize	: false,
135		closeClick	: false,
136		openEffect	: 'none',
137		closeEffect	: 'none',
138	});
139	
140	$('.fiframe').fancybox({
141		maxWidth	: 480,
142		maxHeight	: 700,
143		autoHeight	: true,
144		width		: '70%',
145		height		: '70%',
146		openEffect	: 'elastic',
147		closeEffect	: 'elastic',
148	});
149
150	// MODAL
151	$(document).on("click", ".js-modal-init", function(){
152		var modalID = $(this).attr("href");
153		
154		$(modalID).addClass("is-active");
155		
156		return false;
157	});
158	
159	$(".modal").click(function(e){
160		if( e.target === this ){
161			$(this).removeClass("is-active");
162		}
163	});
164	
165	document.addEventListener( 'wpcf7mailsent', function( event ) {
166		if ( '9869' == event.detail.contactFormId ) {
167			$(".modal.is-active").removeClass("is-active");
168		}
169	}, false );
170	
171	$(document).on("click", ".js-modal-close", function(){
172		$(this).closest(".modal").removeClass("is-active");
173	});
174	
175	/* LANG TOGGLER */
176	$(".lang-toggler").click(function(){
177		$(".lang-toggler__icn").toggleClass("is-active");
178		$(".other-langs").slideToggle();
179	});
180	
181	/* PRICING TABLE TOGGLER */
182	$(".js-pricing-table-toggler").click(function(){
183		$(".pricing-table").toggleClass("is-active");
184		
185		$(this).hide();
186	});
187});
188
189if (window.location.hash) {
190    var hash = window.location.hash;
191
192    if ($(hash).length) {
193        $('html, body').animate({
194            scrollTop: $(hash).offset().top - 100
195        }, 900, 'swing');
196    }
197}
198
199(function($){
200
201	var pricingPage = $("#pricing");
202
203	if (pricingPage) {
204		var pricingTable = $("#pricing-table");
205		var pricingColumns = pricingTable.find(".pricing__col");
206
207		pricingTable.on("click", ".features-list-trigger", function(event) {
208			event.preventDefault();
209			var listMobile = $(this).siblings(".features-list-mobile")
210			if (listMobile.hasClass("is-visible")) {
211				$(this).text("Show more");
212				listMobile.removeClass("is-visible");
213			} else {
214				$(this).text("Show less");
215				listMobile.addClass("is-visible");
216			}
217		});
218
219		$("#pricing-editor input:radio").on("change", function(event) {
220			console.log(event.target.value);
221			pricingTable.find(".price span").hide();
222			pricingTable.find(".total strong").hide();
223			pricingTable.find(".price ." + event.target.value).show();
224			pricingTable.find(".total ." + event.target.value).show();
225		})
226
227		$("#users-input").on("change", function(event) {
228			var count = parseInt(event.target.value);
229
230			pricingTable.find(".is-selected").removeClass("is-selected");
231
232			switch (true) {
233				case count > 0 && count < 2:
234					$(pricingColumns[1]).addClass("is-selected");
235					break;
236				case count > 1 && count < 6:
237					$(pricingColumns[2]).addClass("is-selected");
238					break;
239				case count > 5:
240					$(pricingColumns[3]).addClass("is-selected");
241					break;
242				default:
243					break;
244			}
245		});
246	}
247
248    // document.addEventListener( 'wpcf7submit', function( event ) {
249    //     console.log( "wpcf7submit -> The contact form ID is ", event.detail.contactFormId, event.detail );
250    //     if ( [22584].includes(event.detail.contactFormId) ) {
251    //         var formWrapper = $("#" + event.detail.unitTag);
252	// 		var spinner = formWrapper.find(".form__loading .spinner");
253    //         formWrapper.find(".form__loading").show();
254    //         formWrapper.find(".form__submitted").hide();
255
256	// 		$("html, body").animate({ scrollTop: spinner.offset().top - 80 });
257    //     }
258    // }, false );
259
260
261	// document.addEventListener( 'wpcf7invalid', function( event ) {
262	// 	console.log( "wpcf7invalid -> The contact form ID is ", event.detail.contactFormId, event.detail );
263	// 	if ( [22584].includes(event.detail.contactFormId) ) {
264	// 		var formWrapper = $("#" + event.detail.unitTag);
265	// 		formWrapper.find(".form__wrap").show();
266	// 		formWrapper.find(".form__loading").hide();
267	// 		formWrapper.find(".form__submitted").hide();
268	// 	}
269	// }, false );
270
271	document.addEventListener( 'wpcf7mailsent', function( event ) {
272        console.log( "wpcf7mailsent -> The contact form ID is ", event.detail.contactFormId, event.detail );
273        if ( [22584].includes(event.detail.contactFormId) ) {
274            var formWrapper = $("#" + event.detail.unitTag);
275            formWrapper.find(".form__fields").hide();
276            formWrapper.find(".form__loading").hide();
277			var submitted = formWrapper.find(".form__submitted");
278			submitted.show();
279
280			$("html, body").animate({ scrollTop: submitted.offset().top - 70 });
281        }
282    }, false );
283
284    document.addEventListener( 'wpcf7mailfailed', function( event ) {
285        console.log( "wpcf7mailfailed -> The contact form ID is ", event.detail.contactFormId, event.detail );
286        if ( [22584].includes(event.detail.contactFormId) ) {
287            var formWrapper = $("#" + event.detail.unitTag);
288            formWrapper.find(".form__wrap").show();
289            formWrapper.find(".form__loading").hide();
290            formWrapper.find(".form__submitted").hide();
291        }
292    }, false );
293
294	var contactPage = $("#contact");
295
296	if (contactPage.length) {
297
298		if(window.location.hash) {
299			return
300		}
301
302		setTimeout(() => {
303			$("html, body").animate({ scrollTop: contactPage.offset().top - 30 });
304		}, 1000)
305	}
306
307})(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.