PageSourceSearch

https://www.sfaa.com.cn/_upload/tpl/00/0c/12/template12/js/main.js

js sfaa.com.cn collected 2026-10-07 13:16:28 UTC 6,453 bytes, 204 lines download raw bytes

1$(function() {
2/*$(".main4 .post-41 ul li").each(function(){
3    //var h1=$(this).height();
4    var h2=$(this).find(".news_imgs img").height(); 
5    console.log(h2)
6    if(h2>440){
7        $(this).find(".news_box").addClass("active");
8        $(this).find(".news_box").css("background-size:","cover");
9    }else {
10        $(this).find(".news_box").removeClass("active");
11        $(this).find(".news_box").css("background-size:","100% auto");
12    }
13});*/
14$(".main4 .post-41 ul li .news_title2").each(function(){
15    //var h1=$(this).height();
16    var h2=$(this).text(); 
17    //console.log(h2)
18    if(h2= 'ct'){
19console.log("长图")
20        $(this).parents(".news_box").addClass("active");
21        $(this).parents(".news_box").css("background-size:","cover");
22    }else if(h2= 'dt'){
23        console.log("不是长图")
24        $(this).parents(".news_box").removeClass("active");
25        $(this).parents(".news_box").css("background-size:","100% auto");
26    }
27});
28    /*主大图切换*/
29    /*$(".mbanner .focus").sudyfocus({      
30    	p:2,
31    	zWidth:1145,
32    	zHeight:406,
33    	title:{
34    		isAutoWidth: true,
35    		active:true
36    	},
37    	 text:{
38    		 active: false,
39    		 isAutoHeight: false,
40    		 href: false
41    	},
42    	response: true,
43    	speed:700, 
44    	pagination: true,
45    	navigation: true,
46    	isNavHover: false,
47    	href:true,
48    	effect: 'fade'
49    });*/
50    //slick左右轮播
51    $(".mbanner .focus ul").slick({
52        dots: true, //指示点
53        infinite: true, //循环播放
54        autoplay: false, //自动播放
55        autoplaySpeed: 5000, //自动播放间隔
56        arrows: true, //左右箭头
57        useCSS: true, //使用 CSS3 过度
58        speed: 600, //滑动时间
59        slide: 'li', //滑动元素查询
60        slidesToShow: 1, //幻灯片每屏显示个数
61        slidesToScroll: 1 //幻灯片每次滑动个数
62
63    });
64
65$(".post-24 .con ul").slick({
66        dots: false, //指示点
67        infinite: true, //循环播放
68        autoplay: false, //自动播放
69        autoplaySpeed: 5000, //自动播放间隔
70        arrows: true, //左右箭头
71        useCSS: true, //使用 CSS3 过度
72        speed: 600, //滑动时间
73        slide: 'li', //滑动元素查询
74        slidesToShow: 3, //幻灯片每屏显示个数
75        slidesToScroll: 1, //幻灯片每次滑动个数
76        responsive: [   //断点触发设置
77            {
78            breakpoint: 768,
79                settings: {
80                    slide: 'li',
81                    slidesToShow: 2,
82                    slidesToScroll: 1,
83                    infinite: true
84                }
85            },
86            {
87            breakpoint: 480,
88                settings: {
89                    slide: 'li',
90                    slidesToShow: 1,
91                    slidesToScroll: 1,
92                    infinite: true
93                }
94            }
95        ]
96    });
97
98
99    $(".post-33 .con ul").slick({
100        dots: false, //指示点
101        infinite: true, //循环播放
102        autoplay: false, //自动播放
103        autoplaySpeed: 5000, //自动播放间隔
104        arrows: true, //左右箭头
105        useCSS: true, //使用 CSS3 过度
106        speed: 600, //滑动时间
107        slide: 'li', //滑动元素查询
108        slidesToShow: 4, //幻灯片每屏显示个数
109        slidesToScroll: 1, //幻灯片每次滑动个数
110        responsive: [   //断点触发设置
111            {
112            breakpoint: 768,
113                settings: {
114                    slide: 'li',
115                    slidesToShow: 2,
116                    slidesToScroll: 1,
117                    infinite: true
118                }
119            },
120            {
121            breakpoint: 480,
122                settings: {
123                    slide: 'li',
124                    slidesToShow: 1,
125                    slidesToScroll: 1,
126                    infinite: true
127                }
128            }
129        ]
130    });
131  $(".post-41 .con ul").slick({
132        dots: false, //指示点
133        infinite: true, //循环播放
134        autoplay: false, //自动播放
135        autoplaySpeed: 5000, //自动播放间隔
136        arrows: true, //左右箭头
137        useCSS: true, //使用 CSS3 过度
138        speed: 600, //滑动时间
139        slide: 'li', //滑动元素查询
140        slidesToShow: 4, //幻灯片每屏显示个数
141        slidesToScroll: 1, //幻灯片每次滑动个数
142        responsive: [   //断点触发设置
143            {
144            breakpoint: 768,
145                settings: {
146                    slide: 'li',
147                    slidesToShow: 2,
148                    slidesToScroll: 1,
149                    infinite: true
150                }
151            },
152            {
153            breakpoint: 480,
154                settings: {
155                    slide: 'li',
156                    slidesToShow: 1,
157                    slidesToScroll: 1,
158                    infinite: true
159                }
160            }
161        ]
162    });
163$(".post-51 .news_list").slick({
164        dots: true, //指示点
165        infinite: true, //循环播放
166        autoplay: false, //自动播放
167        autoplaySpeed: 5000, //自动播放间隔
168        arrows: false, //左右箭头
169        useCSS: true, //使用 CSS3 过度
170        speed: 600, //滑动时间
171        slide: 'li', //滑动元素查询
172        slidesToShow: 1, //幻灯片每屏显示个数
173        slidesToScroll: 1 //幻灯片每次滑动个数
174    });
175    /*新闻tab切换*/
176    $(".post-12").sudyTab({
177        handle: ".tit .title",
178        content: ".con .boxm,.more_btn .more_text",
179        trigger: "mouseenter",
180        start: 1,
181        autoPlay: {
182            active: false
183        }
184    });
185    $(".main2 .tab").sudyTab({
186        handle: ".post-22 li",
187        content: ".post-23 li",
188        trigger: "mouseenter",
189        start: 1,
190        autoPlay: {
191            active: false
192        }
193    });
194
195    /*友情链接下拉*/
196    $(".botlinks").each(function(index, el) {
197        $(el).find(".links-wrap").hover(function() {
198            $(this).addClass('wrap-open').children('.link-items').stop(true, true).slideDown(300);
199        }, function() {
200            $(this).removeClass('wrap-open').children('.link-items').stop(true, true).slideUp(100);
201        });
202    });
203
204});

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.