PageSourceSearch

http://www.tasteyourbeer.com/Skins/474311/js/pt_js.js

js tasteyourbeer.com collected 2026-10-05 07:59:55 UTC 7,620 bytes, 232 lines download raw bytes

1
2function selectTag(showContent,selfObj){
3			// 操作标签
4			var tag = document.getElementById("tags").getElementsByTagName("li");
5			var taglength = tag.length;
6			for(i=0; i<taglength; i++){
7				tag[i].className = "";
8			}
9			selfObj.parentNode.className = "selectTag";
10			// 操作内容
11			for(i=0; j=document.getElementById("tagContent"+i); i++){
12				j.style.display = "none";
13			}
14			document.getElementById(showContent).style.display = "block";
15			
16			
17		}
18
19
20$(function() {
21$('.prolist ul li').hover(function() { $(this).find("ul").stop(true, true).slideDown(); $(this).children("a").addClass("twonav"); }, function() { $(this).find("ul").stop(true, true).slideUp(); $(this).children("a").removeClass("twonav"); });
22})
23
24
25
26$(function() {
27    var time;
28    //var winHeight = top.window.document.body.clientHeight || $(window.parent).height();
29    $('.client-2').css({
30        'marginTop': -($('.client-2').height() / 2)
31    });
32    $('#client-2 li').bind({
33        'mouseenter': function() {
34            var scope = this;
35            time = setTimeout(function() {
36                var divDom = $(scope).children('div');
37                var maxWidth = divDom.width();
38                $(scope).stop().animate({
39                    left: 77 - maxWidth
40                },
41                'normal',
42                function() {
43                    var pic = $(scope).find('.my-kefu-weixin-pic');
44                    if (pic.length > 0) {
45                        pic.show();
46                    }
47                });
48            },
49            100)
50        },
51        'mouseleave': function() {
52            var pic = $(this).find('.my-kefu-weixin-pic');
53            var divDom = $(this).children('div');
54            var maxWidth = divDom.width();
55            if (pic.length > 0) {
56                pic.hide();
57            }
58            clearTimeout(time);
59            var divDom = $(this).children('div');
60            $(this).stop().animate({
61                left: 0
62            },
63            "normal",
64            function() {});
65        }
66    });
67    //返回顶部
68    $(window).scroll(function() {
69        var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
70        var eltop = $("#client-2").find(".my-kefu-ftop");
71        if (scrollTop > 0) {
72            eltop.show();
73        } else {
74            eltop.hide();
75        }
76    });
77    $("#client-2").find(".my-kefu-ftop").click(function() {
78        var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
79        if (scrollTop > 0) {
80            $("html,body").animate({
81                scrollTop: 0
82            },
83            "slow");
84        }
85    });
86});
87
88
89
90$(function(){ $(".cp_type .bd ul li").first().children('div').show();$(".cp_type .bd ul li").first().addClass('on');});
91$(".cp_type .bd ul li p span").click(function () {
92	if($(this).parents('li').hasClass('on')){
93		$(this).parents('li').removeClass('on').find('div').stop().slideUp();
94	}else{
95		$(this).parents('li').find('div').removeAttr("style");
96		$(this).parents('li').addClass('on').find('div').stop().slideDown();
97	}
98});
99
100if(document.body.clientWidth <= 1023){  
101	$(".cp_type .hd").click(function () {
102		if($(this).hasClass('on')){
103			$(this).next('div').removeAttr("style");
104			$(this).removeClass('on').next('div').stop().slideUp();
105		}else{
106			$(this).next('div').removeAttr("style");
107			$(this).addClass('on').next('div').stop().slideDown();
108		}
109	});
110}	
111
112
113
114
115
116$(function () {
117	$(".menu_open").click(function () {
118		$(".nav").animate({ 'left': '0' }, 400);
119		$(".hcover").animate({ 'right': '0' }, 400);
120	});
121	$(".hcover").click(function () {
122		$(this).animate({ 'right': '-50%' }, 400);
123		$(".nav").animate({ 'left': '-50%' }, 400);
124		$(".nav_ul").animate({ 'left': '0' }, 400);
125		$('.nav_item_open').css('left', '-50%');
126	});
127	$(".nav_item i").click(function () {
128		$(".nav_ul").animate({ 'left': '-100%' }, 400);
129		$(this).next('.nav_item_open').css('left', '0');
130	});
131	$(".subopen").click(function () {
132		$(this).parent('.nav_item_open').css('left', '-50%');
133		$(".nav_ul").animate({ 'left': '0' }, 400);
134	});
135
136});
137
138      
139$(function() {    
140var fuji = $('#c_detail_wrap table').parent();
141if(fuji.length>0) {  
142	$('#c_detail_wrap table').wrap("<section id='new-div'></section>");
143	$('#new-div').prepend("<section class='zoom-caret'>+</section>");
144}
145      
146    var h_table;  
147    var flag_table=0;  
148      
149    function setTable() {  
150        var lxl=1;  
151          
152        $('section#new-div').removeClass('on');  
153        $('section#new-div').scrollTop(0,0);  
154       $("section#new-div table,section#new-div table td").removeAttr("width");  
155        $("section#new-div table,section#new-div table td").removeAttr("height");  
156        $("section#new-div table").css('width','initial');  
157        $("section#new-div table td").css('width','initial');  
158        $("section#new-div table td").css('height','initial');  
159  
160        $('#c_detail_wrap table').each(function() {  
161            if ( matchMedia( 'only screen and (max-width:1199px)' ).matches ) {  
162                var zclientWidth=$(document).outerWidth();  
163                var ztableWidth=$(this).outerWidth();  
164                var zscale=zclientWidth/ztableWidth*0.871546673799;  
165                lxl=zscale;  
166                if(lxl>1){lxl=1;}  
167            }  
168            $(this).css("transform","scale(" + lxl + ")");   
169            var h_table=$(this).height();  
170            $(this).parent('section#new-div').height(h_table*lxl+10);  
171        });  
172    }  
173      
174    $("#c_detail_wrap table").on('click',function(){  
175        if ( matchMedia( 'only screen and (max-width:1199px)' ).matches ) {  
176            if(flag_table==0){  
177                $(this).parent('section#new-div').addClass('on');  
178                $(this).parent('section#new-div').children('table').css("transform","scale(" + 1 + ")");   
179                $(this).parent('section#new-div').height(h_table);  
180                flag_table=1;  
181            }else{  
182                setTable();  
183                flag_table=0;  
184            }  
185        }            
186});  
187 $("#c_detail_wrap #new-div .zoom-caret").on('click',function(){  
188        if ( matchMedia( 'only screen and (max-width:1199px)' ).matches ) { 
189            if(flag_table==0){  
190                $(this).parent('section#new-div').addClass('on');  
191                $(this).parent('section#new-div').children('table').css("transform","scale(" + 1 + ")");   
192                $(this).parent('section#new-div').height(h_table);  
193                flag_table=1;  
194            }else{  
195                setTable();  
196                flag_table=0;  
197            }  
198        }            
199    });  
200 
201      
202      
203    setTable();  
204      
205    $(window).resize(function() {   
206          
207        setTable();  
208    });  
209      
210      
211    $(".nyprodetail2 .hd span").on('click',function(){  
212      var num1=$(this).index();  
213      $(".nyprodetail2 .bd>section").eq(num1).show().siblings('.nyprodetail2 .bd>section').hide();  
214      $(this).addClass('on').siblings('.nyprodetail2 .hd span').removeClass('on');  
215        
216        
217      setTable()  
218    });  
219     setTimeout(function(){
220		$('#c_detail_wrap table').each(function() {  
221			var zclientWidth=$(document).outerWidth();  
222			var ztableWidth=$(this).outerWidth();  
223			var zscale=zclientWidth/ztableWidth*0.871546673799;  
224			lxl=zscale;  
225			if(lxl>1){lxl=1;}  
226			$(this).css("transform","scale(" + lxl + ")"); 
227			var h_table=$(this).height();
228			$(this).parent('section#new-div').height(h_table*lxl+10);  
229		});  
230    },200); 
231});   
232    

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.