PageSourceSearch

https://juncell.com/Public/Cn/js/common.js

js juncell.com collected 2026-10-08 04:08:51 UTC 3,473 bytes, 117 lines download raw bytes

1$(function () {
2    // wow初始化
3    new WOW().init();
4    navFixed();
5});
6
7// 导航不在顶部时加类名isfixed
8function navFixed() {
9    ys.isFixed(".ys_hd_pc");
10}
11// pc下拉
12$(".s_navli").hover(function (e) {
13        e.stopPropagation();
14        $(this).find(".s_navbot").stop().slideDown();
15    },
16    function () {
17        $(this).find(".s_navbot").stop().slideUp();
18    }
19)
20$("body").hover(function () {
21    $(".s_navbot").stop().slideUp();
22});
23// 语言
24$(".s_lang").hover(function () {
25        $(this).find(".s_langbot").stop().slideDown();
26        $(this).addClass("on");
27    },
28    function () {
29        $(this).find(".s_langbot").stop().slideUp();
30        $(this).removeClass("on");
31    }
32)
33// 分享
34ys.shareInit();
35// 抖音二维码
36if ($(window).width() < 1200) {
37    $(".s_footsharehov").click(function (e) {
38            e.stopPropagation();
39            $(this).find(".s_footsharebot").stop().fadeToggle();
40        }
41    )
42    $("body").click(function () {
43        $(".s_footsharebot").stop().fadeOut();
44    });
45} else {
46    $(".s_footsharehov").hover(function (e) {
47            e.stopPropagation();
48            $(this).find(".s_footsharebot").stop().fadeToggle();
49        }
50    )
51}
52// 手机端导航
53ys.phNavInit(4);
54
55$('.ys_phnav_lisbox a').click(function(e){
56    e.stopPropagation();
57});
58
59
60// 回到检索位置
61$(window).on("load",function(){
62    var reg = "_";
63    var navHeight = 80;
64    if ($(window).width() < 1200) {
65        navHeight = 64;
66    }
67    var strArr = (window.location.href).split(reg);
68    if (strArr[strArr.length-1].length==1 && $(".s_nyptop").length>0) {
69        $("html,body").animate({
70            scrollTop: $('.s_nyptop').offset().top - navHeight + 1
71        }, 700);
72    }
73});
74// 鼠标滑动样式对应改变
75function asideJump() {
76    var reg = "?tp=";
77    for(var i = 1;i<= $('.load_jump:last-child').attr('yxdatop-pag');i++){
78        if($('.load_jump[yxdatop-pag="' + i + '"]').length>0){
79            var tops = $('.load_jump[yxdatop-pag="' + i + '"]').offset().top - $(window).height()/2;
80            if($(window).scrollTop() > tops){
81                $('.load_jump').siblings('.load_jump').stop().removeClass('act_nr');
82                $('.load_jump[yxdatop-pag="' + i + '"]').stop().addClass('act_nr');
83                $('.s_navli.yxnav_active1 .s_navbotli').find('a').each(function(){
84                    var zhi = $(this).attr('href').split(reg)[1];
85                    if(zhi==i){
86                        $(this).parents('.s_navbotli').stop().addClass('yxnav_active2');
87                        $(this).parents('.s_navbotli').siblings('.s_navbotli').stop().removeClass('yxnav_active2');
88                    }
89                });
90            }
91        }
92    }
93}
94// 轮播
95function rotaplay(box,slick1){
96    var heightb = $(window).scrollTop();
97    if($(box).length>0){
98        if(heightb > $(box).offset().top - 500){
99            $(slick1).slick('slickPlay');
100        }
101        if(heightb > $(box).offset().top + 350){
102            $(slick1).slick('slickPause');
103        }
104    }
105}
106// swipe轮播
107function swipeplay(box,swipe1){
108    var heightb = $(window).scrollTop();
109    if($(box).length>0){
110        if(heightb > $(box).offset().top - 500){
111            swipe1.autoplay.start();
112        }
113        if(heightb > $(box).offset().top + 350){
114            swipe1.autoplay.stop();
115        }
116    }
117}

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.