PageSourceSearch

https://seranking.com/wp-content/themes/se_theme/js/accord.js?v=3333

js seranking.com collected 2026-09-24 07:25:08 UTC 1,932 bytes, 66 lines download raw bytes

1$(function () {
2    // accord
3    var main = '.accord_main',
4        item = '.accord_item',
5        title = '.accord_title, .widget-title',
6        cont = '.accord_cont';
7
8    if ($(window).width() <= 768) {
9        $('.accord_main').on('click', title, function () {
10            var thisMain = $(this).closest(main),
11                thisItem = $(this).parent();
12
13            thisMain
14                .find(item + '.active')
15                .stop()
16                .css({
17                    height: $(item + '.active')
18                        .find(title)
19                        .outerHeight(),
20                });
21
22            if (!thisItem.hasClass('active')) {
23                thisItem.addClass('active').siblings(item).removeClass('active');
24                thisItem.stop().css({
25                    height: thisItem[0].scrollHeight + 'px',
26                });
27            } else {
28                thisItem.removeClass('active');
29                thisItem.stop().css({
30                    height: thisItem.find(title).outerHeight(),
31                });
32            }
33        });
34    }
35
36    function resizeAccord() {
37        $(item).each(function () {
38            var self = $(this);
39
40            if ($(window).width() <= 768) {
41                if (!self.hasClass('active')) {
42                    self.css({
43                        height: self.find(title).outerHeight(),
44                    });
45                } else {
46                    var needHeight = self.find(title).outerHeight() + self.find(cont).outerHeight();
47                    self.css({
48                        height: needHeight + 'px',
49                    });
50                }
51            } else {
52                self.css({
53                    height: 'auto',
54                });
55            }
56        });
57    }
58
59    $(window).on('resize', function () {
60        resizeAccord();
61    });
62
63    $(document).ready(function () {
64        resizeAccord();
65    });
66});

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.