PageSourceSearch

https://www.wusanlien.org.tw/js/layout05-4/main.js

js wusanlien.org.tw collected 2026-10-02 12:34:08 UTC 1,057 bytes, 37 lines download raw bytes

1$(document).ready(function() {
2    //手機板選單功能,數字為手機板選單要出現的寬度
3    mobileMenuInit(1000);
4
5    //上方主選單.menu的功能
6    menuInit();
7
8    //啟動選單上購物車下拉列表
9    gocartBtnInit();
10
11    //按鈕切換class功能
12    toggleBtnInit();
13
14    //側選單開合
15    sideNavInit();
16
17    //語系下拉,沒有下拉請註解這行
18    languageMenuInit('.site-header .language');
19
20    //表單單選&多選按鈕選定時,在外層label加上 ckecked 的class
21    labelCkeckedInit();
22
23    //TOP按鈕的功能
24    gotopBtnInit();
25    masonry('.masonry-list');
26});
27
28$(window).on('scroll', function() {
29    if($('body').height()>($(window).innerHeight() + $('.site-header').height() + 70)){
30        //捲動超過header時,body會加上 header-fixed
31        if ($(this).scrollTop() > $('.site-header').height()){
32            $('body').addClass('header-fixed');
33        } else {
34            $('body').removeClass('header-fixed');
35        }
36    }
37}).scroll();

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.