PageSourceSearch

https://www.trekkelly.com/js/main.js?time=1727940297

js trekkelly.com collected 2026-10-02 13:15:36 UTC 2,468 bytes, 99 lines download raw bytes

1$(function () {
2
3	// 返回顶部
4	$('.go-top').click(function () {
5		$('html,body').animate({
6			scrollTop: 0
7		}, 500);
8	});
9	// 浏览器升级提示
10	var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
11	var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
12	reIE.test(userAgent);
13	var fIEVersion = parseFloat(RegExp["$1"]);
14	if (fIEVersion <= 9) {
15		$("#brower-max").addClass('cur00');
16		$("#brower").addClass('cur00');
17	} else {
18		$("#brower-max").removeClass('cur00');
19		$("#brower").removeClass('cur00');
20	}
21
22
23	/* 一键分享 */
24	//一键分享
25	/*with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion=' + ~(-new Date() / 36e5)];*/
26
27
28
29	// 下拉菜单
30	$('.public-header .header-ul>li').has('.pull_nav').each(function () {
31		$(this).addClass('pull_nav_control');
32		$(this).hover(function () {
33			$(this).find('.pull_nav').stop(true, true).slideDown(500);
34		}, function () {
35			$(this).find('.pull_nav').stop().slideUp(300);
36		})
37	})
38
39
40
41	// 面包屑
42	var crumbsItem = 64;
43	var crumbsSpace = 45;
44	var crumbIndex = $('.crumbs .crumbs_left a.active').index();
45	$('.crumbs .crumbs_left .active_line').css('left', crumbsItem * crumbIndex + crumbsSpace * crumbIndex);
46	$('.crumbs .crumbs_left a').each(function (i) {
47		$(this).hover(function () {
48			$('.crumbs .crumbs_left .active_line').css('left', crumbsItem * i + crumbsSpace * i);
49		}, function () {
50
51		});
52	})
53	$('.crumbs .crumbs_left').hover(function () {}, function () {
54		$('.crumbs .crumbs_left .active_line').css('left', crumbsItem * crumbIndex + crumbsSpace * crumbIndex);
55	})
56
57
58	$(window).scroll(function () {
59		if ($(window).scrollTop()) {
60			$(".public-header").css("box-shadow", "0 4px 8px #dedede");
61		} else {
62			$(".public-header").css("box-shadow", "none");
63		}
64	})
65
66
67
68});
69
70/* 添加动画 */
71function scrollTop(el, classN) {
72	var $el = $(el);
73	$el.each(function (index, elE) {
74		var winH = $(window).height();
75		$(window).scroll(function () {
76			var elH = Math.ceil($(elE).offset().top) - 40;
77			// console.log(elH);
78			var winScr = $(window).scrollTop();
79			if (elH < winH + winScr) {
80				$(elE).addClass(classN);
81			}
82		})
83	})
84}
85
86
87
88
89// 切换当前状态
90function switcherActive(el, container) {
91	container.each(function (i, v) {
92		$(v).removeClass('active');
93
94	})
95	el.addClass('active');
96}
97window.onload=function () {
98    $("input").attr("autocomplete","off");
99}

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.