PageSourceSearch

https://www.calulu-dogwear.jp/html/plugin/Exp/assets/js/customize.js

js calulu-dogwear.jp collected 2026-10-02 14:32:42 UTC 1,697 bytes, 51 lines download raw bytes

1/* カスタマイズ用Javascript */
2$(function() {
3
4    // Search advance toggle
5    $(document).mouseup(function(e){
6        var container = jQuery(".search__advance");
7
8        if(!container.is(e.target) && container.has(e.target).length === 0){
9            var $ele = jQuery(e.target);
10            if (!$ele.hasClass('search__anchor')) {
11                container.hide();
12                $('.search__anchor').removeClass('opened');
13            }
14        }
15    });
16
17    $('.search__anchor').on('click', function () {
18        $(this).toggleClass('opened');
19        $(this).parents('.search__form').find('.search__advance').toggle();
20    });
21
22    // More/less for news
23    $('ul.expandible').each(function(){
24        var $ul = $(this),
25            $lis = $ul.find('li:gt(4)'),
26            isExpanded = $ul.hasClass('expanded');
27        $lis[isExpanded ? 'show' : 'hide']();
28
29        if($lis.length > 0){
30            $ul.append($('<a class="btn btn__outline-primary w200 showmore">' + (isExpanded ? 'Less' : 'More') + '</a>')
31                    .click(function(event){
32                        var isExpanded = $ul.hasClass('expanded');
33                        event.preventDefault();
34                        $(this).html(isExpanded ? 'More' : 'Less');
35                        $ul.toggleClass('expanded');
36                        $lis.toggle();
37                    }));
38        }
39    });
40
41    //Toggle menu category
42    $('.cat__menu .cat__has-sub > span.onclick-area').on('click', function() {
43        var $parent = $(this).parent();
44
45        if( $parent.hasClass('opened')) {
46           $parent.removeClass('opened');
47        } else {
48           $parent.addClass('opened');
49       }
50    })
51});

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.