PageSourceSearch

https://duanqz.github.io/assets/themes/cardish/js/script.js

js duanqz.github.io collected 2026-10-03 09:05:09 UTC 1,635 bytes, 61 lines download raw bytes

1/**
2 * 页面ready方法
3 */
4$(document).ready(function() {
5
6    backToTop();
7    search();
8});
9
10/**
11 * 回到顶部
12 */
13function backToTop() {
14    $("[data-toggle='tooltip']").tooltip();
15    var st = $(".page-scrollTop");
16    var $window = $(window);
17    var topOffset;
18    //滚页面才显示返回顶部
19    $window.scroll(function() {
20        var currnetTopOffset = $window.scrollTop();
21        if (currnetTopOffset > 0 && topOffset > currnetTopOffset) {
22            st.fadeIn(500);
23        } else {
24            st.fadeOut(500);
25        }
26        topOffset = currnetTopOffset;
27    });
28
29    //点击回到顶部
30    st.click(function() {
31        $("body").animate({
32            scrollTop: "0"
33        }, 500);
34    });
35
36
37}
38
39function search(){
40//    (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
41//        (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
42//        e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.appendChild(s);
43//    })(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
44//
45//    _st('install','','2.0.0');
46
47//    (function(){
48//        document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E'));
49//        var bdcs = document.createElement('script');
50//        bdcs.type = 'text/javascript';
51//        bdcs.async = true;
52//        bdcs.src = 'http://znsv.baidu.com/customer_search/api/js?sid=17140189356250418058' + '&plate_url=' + encodeURIComponent(window.location.href) + '&t=' + Math.ceil(new Date()/3600000);
53//        var s = document.getElementsByTagName('script')[0];
54//        s.parentNode.insertBefore(bdcs, s);}
55//        )();
56}
57
58
59
60
61

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.