PageSourceSearch

https://thekubotacollection.com/wp-content/themes/kubota/assets/js/main.js?ver=6.4.3

js thekubotacollection.com collected 2026-10-02 10:18:20 UTC 5,993 bytes, 193 lines download raw bytes

1jQuery(document).ready(function($){
2	new WOW().init();
3	
4	$('.video__btn_js').click(function() {
5		$(this).toggleClass('sos');
6	});
7	
8	window.onload = function () {
9		document.body.classList.add('loaded_hiding');
10		window.setTimeout(function () {
11			document.body.classList.add('loaded');
12			document.body.classList.remove('loaded_hiding');
13		}, 300);
14	};
15	jQuery(function($) {
16		
17		const section = $('.index-section'),
18		nav = $('#menu'),
19		navHeight = nav.outerHeight(); // получаем высоту навигации 
20		
21		// поворот экрана 
22		window.addEventListener('orientationchange', function () {
23			navHeight = nav.outerHeight();
24		}, false);
25		
26		$(window).on('scroll', function () {
27			const position = $(this).scrollTop();
28			
29			section.each(function () {
30				const top = $(this).offset().top - navHeight - 5,
31				bottom = top + $(this).outerHeight();
32				
33				if (position >= top && position <= bottom) {
34					nav.find('a').removeClass('active');
35					section.removeClass('active');
36					
37					$(this).addClass('active');
38					nav.find('a[href="#' + $(this).attr('id') + '"]').addClass('active');
39				}
40			});
41		});
42		
43	});
44	$("body").on('click', '[href*="#"]', function(e){
45		var fixed_offset = 100;
46		$('html,body').stop().animate({ scrollTop: $(this.hash).offset().top - fixed_offset }, 1000);
47		e.preventDefault();
48	});
49	$('.page-numbers .prev').parent('li').addClass('pagination__item_prev')
50	$('.page-numbers .next').parent('li').addClass('pagination__item_next')
51	
52	$('.carousel-item_collection a').click(function (e) {
53		e.preventDefault();
54		var href_attr = $(this).attr('href');
55		location.href=href_attr;
56		return false;
57	});
58	
59	/* $('.header-menu_desktop .header-menu__link').click(function (e) {
60		e.preventDefault();
61		$('.menu-child').hide();
62		$('.header-menu__link_active').removeClass('header-menu__link_active');
63		$(this).parent('.header-menu__item').find('.menu-child').show();
64		$(this).addClass('header-menu__link_active');
65	}); */
66	$('.page-content').hover(function () {
67		$('.menu-child').hide();
68	});
69	
70	$('.header-menu_desktop .header-menu__link').hover(function () {
71		
72		clearTimeout($.data(this,'timer'));
73		$('.menu-child').hide();
74		$('.header-menu__link_active').removeClass('header-menu__link_active');
75		$(this).parent('.header-menu__item').find('.menu-child').stop(true,true).slideDown(200);
76		
77		}, function () {
78		
79    $.data(this,'timer', setTimeout($.proxy(function() {
80			
81      //$(this).parent('.header-menu__item').find('.menu-child').stop(true,true).slideUp(200);
82			
83		}, this), 100));
84		
85	});
86	
87	
88	var ajax_url = '/wp-admin/admin-ajax.php',
89	$the_cur_pageid = window.location.href;
90	
91	//антибот
92	$("form").append(
93		'<input type="hidden" name="antibot" value="wjdnnsj9a77ga65sgdb">'
94	);
95	
96	$(document).on("submit", ".feedback__form", function(e) {
97		e.preventDefault();
98		
99		var the_form = $(this);
100		
101		if (
102			!the_form.find("input[name=antibot]").length &&
103			the_form.find("input[name=antibot]") != "wjdnnsj9a77ga65sgdb"
104		)
105		return false;
106		
107		the_form.find("#hp_loading").show();
108		
109		var data = the_form.serialize(),
110		feedback__select  = $(this).find('.feedback__select').val();
111		
112		$.ajax({
113			url: ajax_url,
114			type: "POST",
115			data: "action=do_send_form&the_pid="+$the_cur_pageid+"&feedback__select="+feedback__select+"&" + data,
116			cache: false,
117			dataType: "json",
118			success: function(res) {
119				jQuery.noConflict();
120				the_form.find("#hp_loading").hide();
121				if (!res.error) {
122					the_form["0"].reset();
123					the_form.find('.btn_more_feedback').css('width', '100%').text('Your message has been sent!');
124					/* $('#myModal').find('.modal-title').text(res.info_title);
125						$('#myModal').find('.modal-desc').text(res.info_text);
126						$("#myModal").modal('show');
127						setTimeout(function() {
128						$("#myModal").modal('hide');
129					}, 3000); */
130				}
131			},
132			error: function(res){
133				the_form.find("#hp_loading").hide();
134			}
135		});
136		
137// 		$.ajax({
138// 		    url: '/',
139// 		    type: 'POST',
140// 		    data: 'EMAIL='+ document.querySelector('input[name="order_email"]').value +'&FNAME='+ document.querySelector('input[name="order_name"]').value +'&_mc4wp_honeypot=&_mc4wp_timestamp='+ (new Date().valueOf()/1000) +'&_mc4wp_form_id=1619&_mc4wp_form_element_id=mc4wp-form-1&antibot=wjdnnsj9a77ga65sgdb'
141// 		});
142		
143	});
144	
145	$(document).on("click", ".map-marker", function(e) {
146		
147		if(!$(this).find('.map-tooltip').is(':visible')){
148		$('.map-tooltip').hide();
149		$(this).find('.map-tooltip').toggle();
150		}else{
151		$('.map-tooltip').hide();
152		}
153	});
154	
155	$('.mobile-menu__btn').click(function(){
156		$(this).toggleClass('mobile-menu_show');
157		$(this).closest('.header__wrap').find('.header-content').toggleClass('header-content_open');
158	});
159	
160		$(document).on("click", ".header-menu_mobile .header-menu__link", function(e) {
161		e.preventDefault();
162		$(this).toggleClass('header-menu__link_open');
163		$(this).siblings('.menu-child').toggle();
164	});	
165		$(document).on("change", ".select-lang-js", function(e) {
166		//e.preventDefault();
167		$('#audio_link').attr('src',$(this).val());
168	});
169	
170        (function($) {
171      $(function() {
172        $('.head_rmb_nav').on('click', '.rmb-li:not(.active)', function() {
173          $(this)
174            .addClass('active').siblings().removeClass('active')
175            .closest('div.store_block_list').find('div.rmb-block').removeClass('active').eq($(this).index()).addClass('active');
176        });
177      });
178    })(jQuery);
179		
180         $('.arrow_txt').click(function() {
181            if($(this).hasClass('active'))
182            {
183              $(this).removeClass('active');
184            }
185            else
186            {
187            $('.arrow_txt').removeClass('active');
188            $(this).addClass('active');
189            return false;
190            }
191          });
192					
193});

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.