PageSourceSearch

https://www.lustrof.ru/wa-data/public/site/themes/test11_11/js/user.js?v1.1.2.92

js lustrof.ru collected 2026-10-04 09:08:29 UTC 2,399 bytes, 81 lines download raw bytes

1function openCity(evt, cityName) {
2	if(cityName=='undefined'||!cityName)
3		return;
4  
5	var i, tabcontent, tablinks;
6	tabcontent = document.getElementsByClassName("tabcontent");
7	for (i = 0; i < tabcontent.length; i++) {
8			tabcontent[i].style.display = "none"
9	}
10	tablinks = document.getElementsByClassName("tablinks");
11	for (i = 0; i < tablinks.length; i++) {
12			tablinks[i].className = tablinks[i].className.replace(" active", "")
13	}
14	document.getElementById(cityName).style.display = "block";
15	console.log('asdas');
16	console.log(evt.currentTarget);
17	if(evt!='err' && evt.currentTarget !== undefined)
18		evt.currentTarget.className += " active"
19	if(evt=='err')
20		$('[forn="'+cityName+'"]').addClass('active').addClass('ffggghh');
21}
22
23$(function(){
24	if($('#defaultOpen').length){
25		$('#defaultOpen').click();
26	}
27
28	tabcontent = $('a[href="'+document.location.pathname+'"]').closest('.tabcontent').attr('id');
29	openCity('err',tabcontent);
30	$('a[href="'+document.location.pathname+'"] .dop-menu-punct-title').addClass('activelink'); 
31 
32	$(".for_openn").click(function () {
33		$(".dop-menu-gorizontal").toggleClass("opened");
34		if ($(".dop-menu-gorizontal").hasClass("opened")){
35			$(this).text("Свернуть");
36		} else {
37			$(this).text("Все подборки")
38		}
39	});
40
41	$(".tablinks").click(function(){  
42		$('.opened').removeClass("opened");
43		$(".for_openn").text("Все подборки"); 
44		$('.vse-podborki .activelink').removeClass("activelink");
45    });
46   
47    var hiB,posA;
48	posA  = $('a[href="'+document.location.pathname+'"]').position();
49	posA = (posA)?posA:1;
50	hiB = $('.dop-menu-gorizontal').height();
51 
52	if(posA.top>hiB){ 
53		 $(".for_openn").trigger('click');
54		
55	}
56	
57	// переключатель скидок в категории товаров
58	$('.c-products').on('click', '.sort_switcher', function(){
59		if($(this).hasClass('switchOn')){
60			$(this).toggleClass("switchOn");
61			
62			window.location = $(this).data('reset_url');
63		}else{
64			$(this).toggleClass("switchOn");
65			
66			window.location = $(this).data('filter_url');
67		}
68	});
69	
70	/* ссылка все характеристики в карточке товара */
71	$('.features_link').click(function(){
72		let anchor = $(this).attr('href');
73		$('html, body').animate({
74			scrollTop: $(anchor).offset().top
75		}, 600);
76	});
77});
78
79
80
81

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.