PageSourceSearch

https://www.xfusion.com/wp-content/plugins/my-modules/includes/modules/custom_post_list//module.js?ver=6.6.2

js xfusion.com collected 2026-09-28 07:37:07 UTC 1,951 bytes, 60 lines download raw bytes

1
2    //排序下拉展开效果
3    $(document).on('click', '.sort li span.havechild', function (e) {
4        $(this).next("dl").slideToggle(250, 'linear');
5    })
6    $(document).on('click', '.sort li dl', function (e) {
7        $(this).slideToggle(250, 'linear');
8    })
9
10    //如果分类筛选没有一个选中,就默认选中第一个--场景:post list 模块用在了其他页面中但又开启了分类筛选
11    if ($('#second_navmob .swiper-slide.active').length == 0) {
12        $('#second_navmob .swiper-slide').eq(0).addClass('active');
13    }
14   
15    //判断内容p是否有内容
16    $(".singlenews_body").find("p").each(function () {
17        var singlep = $(this).html();
18        if (singlep == " ") {
19            //$(this).css('margin-bottom','0');
20            $(this).addClass('nomargin');
21        }
22    });
23    
24    //响应式
25var changeMargin = ()=> {
26    
27        if (window_w < 768) {
28
29            $(".newslist li").each(function () {
30                var newstith = $(this).find(".news_text h3").height();
31                if (newstith > 22) {
32                    $(this).find(".news_text").addClass("havenop");
33                }
34            })
35
36            $(".medialist li").each(function () {
37                var newstith = $(".medialist li").find(".media_text .medialitit").height();
38                if (newstith > 22) {
39                    $(this).find(".media_text").addClass("havenop");
40                }
41            })
42
43          
44            //$("#second_navmob").addClass("second_navmob");
45            //媒体中心 栏目滑块 
46            var second_navmob = new Swiper('#second_navmob', {
47                spaceBetween: 0,
48                slidesPerView: 'auto',
49                loop: false,
50            });
51            
52           
53
54        }
55
56
57
58    }
59    //手机端判断新闻标题是否超过2行,超过不显示摘要
60    changeMargin();

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.