PageSourceSearch

http://www.mutuellesmutuelle.com/_upload/tpl/03/fa/1018/template1018/js/comcus.js

js mutuellesmutuelle.com collected 2026-10-04 01:59:44 UTC 5,985 bytes, 153 lines download raw bytes

1addFirstDom =function (nodeList, callback) {
2    nodeList.forEach((value, index) => {
3        const svgDom = document.createElement('div'),
4            firstDom = value.firstChild
5        svgDom.id = 'linkSvg' + index
6        value.insertBefore(svgDom, firstDom)
7        const svg = new Vivus(`linkSvg${index}`, { duration: 100, start: 'inViewport', file: `${path()}images/ico${index + 1}.svg` }, callback)
8        svgDom.parentElement.addEventListener('mouseover', () => {
9            svg.getStatus() === 'end' ? svg.reset().play() : void 0
10        })
11    })
12}
13    , path = function(){
14        const ip = window.location.origin
15        const link = document.querySelectorAll('link')
16        for (i of link) {
17            if (i.type == 'image/x-icon') {
18                return i.href.replace(ip, '').replace('favicon.ico', '')
19            }
20        }
21    }
22$(function () {
23    $(".header2").html($(".header1").html());
24    $(".search-submit").click(function (event) {
25        $(this).removeAttr("name");
26        event.preventDefault();
27        var val = $.trim($(".search-title").val());
28        if (val !== "") {
29            $(".wp-search").find("form").submit();
30        } else {
31            alert("请输入关键词");
32        }
33        return false;
34    });
35
36//地址
37var html='<div class="foot-c">' +
38'<div class="address"><div class="school-title">啬园校区</div><div class="school-text">南通市啬园路9号</div><div class="school-text">邮编:226019</div></div>'+
39'<div class="address"><div class="school-title">启秀校区</div><div class="school-text">南通市启秀路19号</div><div class="school-text">邮编:226001</div></div>'+
40'<div class="address"><div class="school-title">启东校区</div><div class="school-text">江苏省启东市高新技术产业开发区南海路1号</div><div class="school-text">邮编:226236</div></div>'+
41'</div>'
42$(".foot-top").after(html)
43
44    $(".wp-search").hover(function () {
45        $(this).addClass('on')
46    }, function () {
47        $(this).removeClass('on')
48    })
49
50$("body").append('<div id="gotop" class="hideicon"><svg t="1620981491725" class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="14041" width="16" height="16"><path d="M825.568 555.328l-287.392-289.28C531.808 259.648 523.488 256.576 515.2 256.64 514.08 256.544 513.12 256 512 256c-4.672 0-9.024 1.088-13.024 2.88-4.032 1.536-7.872 3.872-11.136 7.136l-259.328 258.88c-12.512 12.48-12.544 32.736-0.032 45.248 6.24 6.272 14.432 9.408 22.656 9.408 8.192 0 16.352-3.136 22.624-9.344L480 364.288 480 928c0 17.696 14.336 32 32 32s32-14.304 32-32L544 362.72l236.192 237.728c6.24 6.272 14.496 9.44 22.688 9.44s16.32-3.104 22.56-9.312C838.016 588.128 838.048 567.84 825.568 555.328zM864 192 160 192C142.336 192 128 177.664 128 160s14.336-32 32-32l704 0c17.696 0 32 14.336 32 32S881.696 192 864 192z" p-id="14042"></path></svg></div>')
51
52$('#gotop').click(function () {
53    $('html,body').animate({
54        scrollTop : '0px'
55    }, 800);
56}); 
57//禁止右键
58document.oncontextmenu = function(event){
59     if (window.Event) {
60         if (event.which == 2 || event.which == 3) {
61             return false;
62         }
63     }
64     else {
65         if (event.button == 2 || event.button == 3) {
66             event.cancelBubble = true;
67             event.returnValue = false;
68             return false;
69         }
70     }
71 }
72
73$(window).scroll(function(){
74if($(window).scrollTop()>400){$("#gotop").removeClass("hideicon")}
75else{$("#gotop").addClass("hideicon")}
76})
77
78    
79    if (window.innerWidth > 999) {
80        $(".wp-menu li").on("mouseenter",function(){
81            $(this).siblings().find('.sub-menu').stop(true, true).slideUp(150)
82            $(this).children('.sub-menu').stop(true, true).slideDown(200);
83            $(this).addClass('hover');
84     	}).on("mouseleave",function(){
85            $(this).children('.sub-menu').stop(true, true).slideUp(150);
86            $(this).removeClass('hover');
87        });
88    }
89    $(".wp-navi").find("li").find(".menu-switch-arrow").on("click", function () {
90        $(this).toggleClass("hover").parent().children('.sub-menu').slideToggle(250)
91            .parent().siblings(".menu-item,.sub-item").children('.sub-menu').slideUp(250);
92    });
93
94    var scrolltop = $(window).scrollTop();
95    if (scrolltop > 300) {
96        $(".header2").addClass("fixed");
97        $('.header1').removeClass("fixed");
98       $(".sidenav").addClass("open")
99    } else {
100        $(".header2").removeClass("fixed");
101        $('.header1').addClass("fixed")
102         $(".sidenav").removeClass("open")
103    }
104    $(window).scroll(function () {
105        var scrolltop = $(window).scrollTop();
106        if (scrolltop > 300) {
107            $(".header2").addClass("fixed");
108            $('.header1').removeClass("fixed")
109      $(".sidenav").addClass("open")
110        } else {
111            $(".header2").removeClass("fixed");
112            $('.header1').addClass("fixed")
113    $(".sidenav").removeClass("open")
114        }
115
116
117    });
118    $('.navbtn').click(function () {
119        $(this).parents(".header").toggleClass('navShow')
120    });
121    
122    $(".botlinks").each(function (index, el) {
123        $(el).find(".links-wrap").hover(function () {
124            $(this).addClass('wrap-open').children('.link-items').stop(true, true).slideDown(300);
125        }, function () {
126            $(this).removeClass('wrap-open').children('.link-items').stop(true, true).slide
126Up(100);
127        });
128    });
129    $(".backtop").click(function () {
130        $("html, body").animate({ scrollTop: 0 }, "slow");
131    })
132});
133fontSize();
134$(window).resize(function () {
135    fontSize();
136});
137
138function fontSize() {
139    var size;
140    var winW = window.innerWidth;
141    if (winW > 1920) {
142        size = Math.round(winW / 19.2);
143    } else if (1366<winW <= 1920) {
144          size = 100;
145    } else if (999<winW <= 1366) {
146          size = Math.round(winW / 13.6);
147    }else if (winW <= 999) {
148        size = 75;
149    }
150    $('html').css({
151        'font-size': size + 'px'
152    })
153}

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.