PageSourceSearch

https://static-cdn.whokeys.com/mall/js/27/common.js?v2026929

js whokeys.com collected 2026-10-03 20:00:58 UTC 4,817 bytes, 159 lines download raw bytes

1$(document).ready(function(){
2	
3	$(".userplus").click(function() {
4		$(".userplus ul,.s-state ul,.web_english ul").hide();
5        if ($(this).children("ul").find("li").length > 0) {
6            $(this).children("ul").show();  
7        }
8	});
9	//checkbox
10	$(".checkbox").click(function() {
11		$(this).toggleClass("cbx_active");	
12	});
13	//text checkbox
14	$(".checkbox-text .form_checkbox").click(function() {
15		$(this).toggleClass("checkbox_active");	
16	});
17	
18	//radio
19	$(".form_radio").click(function() {	
20		//$(this).parents("li").toggleClass("radio_active");	
21        if ($(this).parent("li").hasClass("radio_active") == false) {
22            $(this).parents("li").addClass("radio_active");
23            $(this).parents("li").siblings().removeClass("radio_active");
24        }
25	});	
26	
27	 $(function(){
28		$(document).bind("click",function(e){
29		var target  = $(e.target);
30		if(target.closest(".web_shopping-cart,.web_shopping-cart .cart-list,.select dt,.userplus,.userplus ul,.web_english,.s-state").length == 0){
31		$(".web_shopping-cart .cart-list,.select dd,.userplus ul,.web_english ul,.s-state ul").hide();}
32		});
33	 });
34
35	
36//select
37	$(".select dt").click(function(){
38		$(this).siblings("dd").toggle()
39	});
40	$(".select dd li").click(function(){
41		
42		$(".select dd").hide();
43        var men_title = $(this).html();
44        $(this).parents("dd").siblings("dt").children("i").html(men_title);
45    });
46	
47//s-state
48	$(".s-state span").click(function(){
49		$(this).siblings("ul").toggle()
50		$(".web_english span").siblings("ul").hide();
51		$(".userplus ul").hide();
52	});
53	
54	$(".s-state ul li span").click(function(){
55		$(".s-state ul").hide();
56        var men_title = $(this).html();
57  	    $(this).parents("ul").siblings("span").children("i").html(men_title);
58   });
59   
60//web_english
61	$(".web_english span").click(function(){
62		$(this).siblings("ul").toggle()
63		$(".userplus ul").hide();
64		$(".s-state span").siblings("ul").hide();
65	});
66	$(".web_english ul li span").click(function(){
67		$(".web_english ul").hide();
68		var men_title = $(this).html();
69		$(this).parents("ul").siblings("span").children("em").html(men_title);
70	});
71
72
73	//check in
74   	$(".u-signin .btn").click(function(){
75		$(".u-signin ul").toggle();
76	});
77   
78	//tab
79   $(".tabfirst li").click(function() { 
80        $(this).addClass("hover"); 
81        $(this).siblings().removeClass("hover"); 
82        var $dangqian = $(".tabfirst_cont  >.tab_mt").eq($(".tabfirst li").index(this)); 
83        $dangqian.addClass("hover"); 
84        $dangqian.siblings().removeClass("hover"); 
85		return false;
86    }); 
87	
88	//bg scroll
89	$(window).scroll(function(){
90		if ($(window).scrollTop()>150){
91		$(".bg").addClass("bg_top");
92		}
93		else{
94		$(".bg").removeClass("bg_top");   
95		}
96	}); 
97	
98	//bonus_point
99$(".bonus_point").click(function(){
100	$(this).parents(".checkbox-text").siblings(".r-usl").toggle()
101});
102		
103	//withdraw tab
104  $(".panel li").click(function() {  
105        $(this).addClass("hover"); 
106        $(this).siblings().removeClass("hover"); 
107        var $dangqian = $(".pay_mian > ul").eq($(".panel li").index(this));
108        $dangqian.addClass("hover");
109        $dangqian.siblings().removeClass("hover");
110    });  
111
112
113});
114
115//prerogative
116leftSlider('top_prero');
117function leftSlider(id){
118	//puls scroll 
119	var $slider = $('#'+id+' .prer_m .prero');
120	var $slider_child_l = $('#'+id+' .prero p').length;
121	var $slider_width = $('#'+id+' .prero p').width();
122	$slider.width($slider_child_l * $slider_width);
123	var slider_count = 0;
124	if ($slider_child_l < 3) {
125		$('#'+id+' .pre-right').css({cursor: 'auto'});
126		$('#'+id+' .pre-right').addClass("dasabled");
127	}
128	$('#'+id+' .pre-right').click(function() {
129		if ($slider_child_l < 3 || slider_count >= $slider_child_l - 3) {
130			return false;
131		}
132		slider_count++;
133		$slider.animate({left: '-=' + $slider_width + 'px'}, 'slow');
134		slider_pic(id);
135	});
136	$('#'+id+' .pre-left').click(function() {
137		if (slider_count <= 0) {
138			return false;
139		}
140		slider_count--;
141		$slider.animate({left: '+=' + $slider_width + 'px'}, 'slow');
142		slider_pic(id);
143	});
144}
145function slider_pic(id) {
146	if (slider_count >= $slider_child_l - 3) {
147		$('#'+id+' .pre-right').css({cursor: 'auto'});
148		$('#'+id+' .pre-right').addClass("dasabled");}
149	else if (slider_count > 0 && slider_count <= $slider_child_l - 3) {
150		$('#'+id+' .pre-left').css({cursor: 'pointer'});
151		$('#'+id+' .pre-left').removeClass("dasabled");
152		$('#'+id+' .pre-right').css({cursor: 'pointer'});
153		$('#'+id+' .pre-right').removeClass("dasabled");
154	}
155	else if (slider_count <= 0) {
156		$('#'+id+' .pre-left').css({cursor: 'auto'});
157		$('#'+id+' .pre-left').addClass("dasabled");
158	}
159};	

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.