PageSourceSearch

https://zhhchj.com/templets/default/js/home.js

js zhhchj.com collected 2026-10-06 13:16:56 UTC 2,539 bytes, 84 lines download raw bytes

1
2//新增 首页
3
4
5
6$('.flexslider').flexslider({
7    directionNav: true,
8    pauseOnAction: false
9});
10$('.flex-control-nav a').html('');
11
12$(document).ready(function () {
13    $('.swiper-container').each(function () {
14        var $page = $(this).find('.bx-pager');
15        $(this).find('.bxslider').bxSlider({
16            auto: true,
17            pagerCustom: $page,
18            controls: false,
19            preloadImages: 'all'
20        });
21    });
22
23});
24
25/*
26// 左边侧栏滚动效果
27var floor1 = $(".floor-1").offset().top;
28var floor2 = $(".floor-2").offset().top;
29var floor3 = $(".floor-3").offset().top;
30var floor4 = $(".floor-4").offset().top;
31var floor5 = $(".floor-5").offset().top;
32var floor6 = $(".floor-6").offset().top;
33$(window).scroll(function () {
34    var w_height = $(this).scrollTop() + 300;//优化体验
35
36    if (w_height > floor1) {
37        $(".menu-lift-wrap .menu-lift").show();
38
39        if (w_height > floor6) {
40            $(".menu-lift .floor6").addClass("on").siblings().removeClass("on");
41        } else if (w_height > floor5) {
42            $(".menu-lift .floor5").addClass("on").siblings().removeClass("on");
43        } else if (w_height > floor4) {
44            $(".menu-lift .floor4").addClass("on").siblings().removeClass("on");
45        } else if (w_height > floor3) {
46            $(".menu-lift .floor3").addClass("on").siblings().removeClass("on");
47        } else if (w_height > floor2) {
48            $(".menu-lift .floor2").addClass("on").siblings().removeClass("on");
49        } else {
50            $(".menu-lift .floor1").addClass("on").siblings().removeClass("on");
51        }
52
53    } else {
54        $(".menu-lift-wrap .menu-lift").hide();
55    }
56
57})*/
58
59//侧边栏点击 跳转
60$(".menu-lift a").click(function () {
61    var stop = $($(this).data("target")).offset().top;
62    $("html,body").scrollTop(stop);
63})
64
65
66$(".floor-6 .mod-item").hover(function () {
67    $(this).find(".pic-code").show();
68    $(this).find(".pic-code").show();
69    var piccode = $(this).find(".pic-code");
70
71    var $piccode = $(piccode);
72    if ($piccode.attr('isload') == "1")
73        return;
74    //ajax请求
75
76    var url = "http://m.mbaobao.com/Product/product-detail?proSkuId=" + $piccode.attr('data-id') + "&productId=" + $piccode.attr('data-groupid');
77    $piccode.find("#qrcodeimage").qrcode({ correctLevel: 0, width: 150, height: 150, text: url });
78    $piccode.attr('isload', "1");
79
80}, function () {
81    $(this).find(".pic-code").hide();
82});
83
84

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.