PageSourceSearch

https://phoenixstarglass.com/static/themes/t116/js/main.js?v=4.023110

js phoenixstarglass.com collected 2026-10-04 11:10:27 UTC 1,576 bytes, 56 lines download raw bytes

1/*
2 * Powered by ueeshop.com		http://www.ueeshop.com
3 * 广州联雅网络科技有限公司		020-83226791
4 */
5
6$(document).ready(function() {
7	//这个不要删除 这里有用到
8	function MainDefaultNavShow(Type,Time){
9		//Type : 是否重新检测导航 Time : 检测时间间隔
10		var $obj=$('.default_nav'),
11			navItemWidth=0;
12		if ($obj.length) {
13			var navWidth= $obj[0].getBoundingClientRect().width ? $obj[0].getBoundingClientRect().width : $obj.width();
14			$obj.css('overflow', 'visible').children('li').each(function(){
15				var $width = $(this)[0].getBoundingClientRect().width;
16				if(!$width) $width=$(this).outerWidth(true);
17				navItemWidth+=$width;
18				if(navItemWidth>navWidth){
19					$(this).hide();
20				}else{
21					$(this).show();
22				}
23			});
24			if (Type) {	//定时检测导航 防止特殊字体加载慢导致导航掉下来	
25				Time = Time * 2;
26				setTimeout(function(){
27					MainDefaultNavShow(1, Time);
28				}, Time);
29			}
30		}
31	}
32	// 导航置顶
33	$(window).scroll(function() {
34		var topp = $(document).scrollTop(),
35			header_height = $('.bx_nav_one').height();
36		if (topp > header_height ){
37			$('.bx_nav_one').addClass('header_fixed header_top_fixed');
38			MainDefaultNavShow();
39		} else {
40			$('.bx_nav_one').removeClass('header_fixed header_top_fixed');
41			MainDefaultNavShow();
42		}
43	})
44	
45	//底部栏目
46	$('.default_foot_menu .menu_list dt').click(function() {
47		if ($(window).width() < 1000) {
48			var obj = $(this).parent();
49			if (obj.hasClass('focus')) {
50				obj.removeClass('focus');
51			} else {
52				obj.addClass('focus');
53			}
54		}
55	});
56});

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.