PageSourceSearch

https://z-exchange.pro/wp-content/themes/exchangermy/js/site.js?ver=2.6

js z-exchange.pro collected 2026-10-09 22:41:25 UTC 3,684 bytes, 146 lines download raw bytes

1jQuery(function($){
2
3/* to top */
4	$(window).scroll(function(){
5		var npos = $(window).scrollTop();
6		if(npos > 200){
7			$('.js_show_top').show();
8		} else {
9			$('.js_show_top').hide();
10		}
11	});	
12	
13	$('.js_to_top').on('click', function(){
14		$('body, html').animate({scrollTop : 0},500);
15		return false;	
16	});
17/* end to top */
18
19/* fix div */
20	function fix_div(){
21		var npos = $(window).scrollTop();
22		var wid = $(window).width();
23		var hei = 0;
24		if($('#wpadminbar').length > 0){
25			if($('#wpadminbar').css('position') == 'fixed'){
26				hei = parseInt($('#wpadminbar').height());
27			}
28		}
29		
30		$('.fix_div').each(function(){
31			var one = parseInt($(this).offset().top) - hei;
32			var to_fix = $(this).attr('fix-id');
33			var plus_fix = parseInt($(this).attr('fix-top'));
34			if(wid >= 310){
35				if(npos > one){
36					$('#'+to_fix).css({'position': 'fixed', 'top': (hei+plus_fix)}).addClass('fix_elem');
37				} else {
38					$('#'+to_fix).css({'position':'absolute', 'top': '0px'}).removeClass('fix_elem');
39				}				
40			} else {
41				$('#'+to_fix).css({'position':'absolute', 'top': '0px'}).removeClass('fix_elem');
42			}	
43		});
44	}
45
46	$(window).on('scroll', function(){
47	    fix_div();
48	});
49	$(window).on('resize', function(){
50		fix_div();
51	});
52	$(document).ready(function(){
53		fix_div();
54	});
55	fix_div();
56/* end fix div */
57
58/* social link */
59	$('.social_link').on('click', function(){
60		var link_url = $(this).attr('href');
61		window.open(link_url,'','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');
62		
63		return false;
64	});
65/* end social link */
66
67/* lang */
68	$('.langlist_title').on('click', function(){
69		$('.langlist_ul').toggle();
70	});
71	
72    $(document).on('click', function(event) {
73        if ($(event.target).closest(".langlist_title, .langlist_ul").length) return;
74		$('.langlist_ul').hide();
75    });		
76/* end lang */
77
78	$('.topbar_icon_tab').on('click',function(){
79		$('.topbar_icon_tabul').addClass('open');
80	});
81	
82    $(document).on('click', function(event) {
83		if($(event.target).closest(".topbar_icon_tab, .topbar_icon_tabul").length) return;
84		$('.topbar_icon_tabul').removeClass('open');
85    });
86	
87	function contacts_menu(){
88		$('.topbar_icon_wrap').removeClass('adaptive');
89		var hei_start = $('.topbar').height();
90		$('.topbar_icon').show();
91		var hei_now = $('.topbar_contain').height();
92		if(hei_now > hei_start){
93			$('.topbar_icon_wrap').addClass('adaptive');
94		} 
95	}
96
97	$(window).on('scroll', function(){
98		contacts_menu();
99	});
100	$(window).on('resize', function(){
101		contacts_menu();
102	});
103	$(document).ready(function(){
104		contacts_menu();
105	});
106	contacts_menu();	
107
108	$('.js_menu li').hover(function(){
109	    $(this).find('ul:first').show('drop');
110	}, function(){
111	    $(this).find('ul:first').stop(true,true).hide('drop');
112	});	
113	
114	$('.js_menu li a').on('click', function(){
115		var href = $(this).attr('href');
116		if(href == '#'){
117			return false;
118		}
119	});
120	
121	$('.sub-menu').append('<div class="ugmenu"></div>');
122
123	var content_menu = $('.js_menu').html();
124	$('.mobile_menu_inner').html(content_menu);
125	
126	$('.topmenu_ico').on('click', function(){
127		$('.mobile_menu_abs, .mobile_menu').show();
128	});
129	$('.mobile_menu_close').on('click', function(){
130		$('.mobile_menu_abs, .mobile_menu').hide();
131	});
132	
133	$('table').each(function(){
134	    $(this).find('th:first').addClass('th1');
135		$(this).find('th:last').addClass('th2');
136	    $(this).find('tr:last').find('td:first').addClass('td1');
137		$(this).find('tr:last').find('td:last').addClass('td2');	
138	});		
139	
140	$(document).JcheckboxInit(); 
141	$(document).Jcheckbox();
142	
143	$(document).Jselect('init', {trigger: '.js_my_sel', class_ico: 'currency_logo'});
144	
145	$(document).AdaptiveTable({trigger : '.pntable table'});
146});

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.