PageSourceSearch

https://www.usst.edu.cn/_upload/tpl/00/40/64/template64/js/main.js?v=1.0.3

js usst.edu.cn collected 2026-10-02 05:24:20 UTC 29,926 bytes, 913 lines download raw bytes

1$(function () {
2  $('.post-143 .news').each(function () {
3    if ($(this).find('.news_title').text().indexOf(':') != -1) {
4      var title2 = $(this).find('.news_title').text().split(':')[0];
5    } else if ($(this).find('.news_title').text().indexOf(':') != -1) {
6      var title2 = $(this).find('.news_title').text().split(':')[0];
7    }
8    $(this).find('.news_form').text(title2);
9  });
10  //判断如没有短标题就显示学校官微
11  $('.post-141 .news').each(function () {
12    if ($(this).find('.news_type').text() == '') {
13      $(this).find('.news_type').text('学校官微');
14    }
15  });
16
17  $('.post-141 .news_list').slick({
18    dots: true, //指示点
19    infinite: false, //循环播放
20    autoplay: true, //自动播放
21    autoplaySpeed: 5000, //自动播放间隔
22    arrows: false, //左右箭头
23    useCSS: true, //使用 CSS3 过度
24    speed: 600, //滑动时间
25    slide: 'li', //滑动元素查询
26    slidesToShow: 1, //幻灯片每屏显示个数
27    slidesToScroll: 1, //幻灯片每次滑动个数
28  });
29  $('.post-142 .news_list').slick({
30    dots: false, //指示点
31    infinite: false, //循环播放
32    autoplay: true, //自动播放
33    autoplaySpeed: 5000, //自动播放间隔
34    arrows: true, //左右箭头
35    useCSS: true, //使用 CSS3 过度
36    speed: 600, //滑动时间
37    slide: 'li', //滑动元素查询
38    slidesToShow: 3, //幻灯片每屏显示个数
39    slidesToScroll: 3, //幻灯片每次滑动个数
40    responsive: [
41      {
42        breakpoint: 999,
43        settings: {
44          slidesToShow: 4,
45          slidesToScroll: 1,
46        },
47      },
48      {
49        breakpoint: 767,
50        settings: {
51          slidesToShow: 3,
52          slidesToScroll: 1,
53        },
54      },
55    ],
56  });
57
58  $('.post-144 .slick-aaa').slick({
59    dots: true, //指示点
60    infinite: false, //循环播放
61    autoplay: true, //自动播放
62    autoplaySpeed: 5000, //自动播放间隔
63    arrows: false, //左右箭头
64    useCSS: true, //使用 CSS3 过度
65    speed: 600, //滑动时间
66    slide: 'li', //滑动元素查询
67    slidesToShow: 1, //幻灯片每屏显示个数
68    slidesToScroll: 1, //幻灯片每次滑动个数
69  });
70
71  $('.media_tab').sudyTab({
72    handle: '.tab_menu li', // 控制器元素,默认为.tab-menu li
73    content: '.tab_con .post', // 内容体,可以有多个并以英文逗号隔开,如.tab-list li,.tab-more li,默认值为".tab-list li,.tab-more li"
74    trigger: 'click', // 触发事件,默认为"mouseenter"鼠标经过
75    start: 1, // 开始项,默认为第一个
76    autoPlay: {
77      active: false, // 是否激活自动切换
78      interval: 5000, // 自动切换时间间隔
79      pauseHover: true, // 是否鼠标放上面时停止自动
80    },
81  });
82  var obt1 = new Vivus('svg1', {
83    type: 'delayed',
84    duration: 50,
85    // file: path + "images/svg1.svg"
86  });
87
88  var obt2 = new Vivus('svg2', {
89    type: 'delayed',
90    duration: 50,
91    // file: path + "images/svg2.svg"
92  });
93
94  var obt3 = new Vivus('svg3', {
95    type: 'delayed',
96    duration: 50,
97    // file: path + "images/svg3.svg"
98  });
99
100  var obt4 = new Vivus('svg4', {
101    type: 'delayed',
102    duration: 50,
103    // file: path + "images/svg4.svg"
104  });
105
106  var obt5 = new Vivus('svg5', {
107    type: 'delayed',
108    duration: 50,
109    // file: path + "images/svg5.svg"
110  });
111
112  var obt6 = new Vivus('svg6', {
113    type: 'delayed',
114    duration: 50,
115    // file: path + "images/svg6.svg"
116  });
117
118  var obt7 = new Vivus('svg7', {
119    type: 'delayed',
120    duration: 50,
121    // file: path + "images/svg7.svg"
122  });
123
124  var obt8 = new Vivus('svg8', {
125    type: 'delayed',
126    duration: 50,
127    // file: path + "images/svg8.svg"
128  });
129
130  var obt9 = new Vivus('svg9', {
131    type: 'delayed',
132    duration: 50,
133    // file: path + "images/svg9.svg"
134  });
135
136  var obt10 = new Vivus('svg10', {
137    type: 'delayed',
138    duration: 50,
139    // file: path + "images/svg10.svg"
140  });
141  var arrsvg = [obt1, obt2, obt3, obt4, obt5, obt6, obt7, obt8, obt9, obt10];
142  var svgPlayed = false;
143  function playSvgOnce() {
144    if (svgPlayed) return;
145    svgPlayed = true;
146    for (var i = 0; i < arrsvg.length; i++) {
147      arrsvg[i].reset().play();
148    }
149  }
150  $('.post-61 .news').mouseover(function () {
151    var index = $(this).attr('class').split(' ')[1].split('n')[1] - 1;
152    if (arrsvg[index]) {
153      arrsvg[index].reset().play();
154    }
155  });
156
157  if ('IntersectionObserver' in window && document.querySelector('.post-61')) {
158    var svgObserver = new IntersectionObserver(
159      function (entries) {
160        if (entries[0].isIntersecting) {
161          playSvgOnce();
162          svgObserver.disconnect();
163        }
164      },
165      { rootMargin: '0px' },
166    );
167    svgObserver.observe(document.querySelector('.post-61'));
168  }
169
170  function refreshLazyResources() {
171    if (window.lazyBgRefresh) {
172      window.lazyBgRefresh();
173    }
174  }
175
176  function rememberSlickAutoplay($slider) {
177    if ($slider.attr('data-section-autoplay') !== undefined) return;
178    var autoplay = false;
179    try {
180      autoplay = !!$slider.slick('slickGetOption', 'autoplay');
181    } catch (e) {}
182    $slider.attr('data-section-autoplay', autoplay ? '1' : '0');
183  }
184    function hasPlayableVideoBox(video) {        if (!video || !video.getBoundingClientRect) return false;        var rect = video.getBoundingClientRect();        if (rect.width <= 0 || rect.height <= 0) return false;        var h = window.innerHeight || document.documentElement.clientHeight;        var w = window.innerWidth || document.documentElement.clientWidth;        if (rect.bottom <= 0 || rect.top >= h || rect.right <= 0 || rect.left >= w) return false;        var style = window.getComputedStyle ? window.getComputedStyle(video) : null;        return !style || (style.display !== "none" && style.visibility !== "hidden");    }
185  function updateActiveSectionWork(activeSection) {
186    activeSection = activeSection || document.querySelector('.fp-section.active') || document.querySelector('.fp-section');
187    $('.slick-initialized').each(function () {
188      var $slider = $(this);
189      rememberSlickAutoplay($slider);
190      try {
191        if (activeSection && !activeSection.contains(this)) {
192          $slider.slick('slickPause');
193        } else if ($slider.attr('data-section-autoplay') === '1') {
194          $slider.slick('slickPlay');
195        }
196      } catch (e) {}
197    });
198
199    var videos = document.getElementsByTagName('video');
200    for (var i = 0; i < videos.length; i++) {
201      var video = videos[i];
202      var wantsAutoplay = video.hasAttribute('autoplay') || video.getAttribute('data-autoplay') === '1';
203      if (activeSection && activeSection.contains(video)) {
204        if (wantsAutoplay && hasPlayableVideoBox(video)) {
205          if (window.lazyVideoLoad) {
206            window.lazyVideoLoad(video);
207          }
208          if (video.muted && video.play) {
209            var playPromise = video.play();
210            if (playPromise && playPromise.catch) {
211              playPromise.catch(function () {});
212            }
213          }
214        }
215      } else if (video.pause) {
216        video.pause();
217      }
218    }
219    refreshLazyResources();
220    if (window.usstWarmupAroundSection) {
221      window.usstWarmupAroundSection(activeSection);
222    }
223  }
224
225  window.usstUpdateSectionWork = updateActiveSectionWork;
226
227  function getFullpageSection(destination) {
228    if (destination && destination.item) return destination.item;
229    if (typeof destination === 'number') {
230      return document.querySelectorAll('.fp-section')[destination - 1];
231    }
232    return null;
233  }
234
235  //数字上理
236  $('.post-61 .news').click(function () {
237    //window.location.href="/_s7/_t64/szsl/list.psp?title="+(parseInt($(this).index())+1);
238  });
239
240  if ($(window).width() > 999) {
241    $('.main1 .mod').css('height', $('.post-10').height() + 110 + 'px');
242    new fullpage('#fullpage', {
243      anchors: ['page1', 'page2', 'page3', 'page4', 'page5', 'page6', 'page7', 'page8'],
244      navigationTooltips: [' ', '上理要闻', '科教之窗', '上理人物', '讲座日志', '媒体矩阵', '文化上理', '数字上理'],
245      css3: true,
246      scrollingSpeed: 650,
247      navigation: true,
248      slidesNavigation: true,
249      responsiveHeight: 330,
250      dragAndMove: false,
251      loopTop: false,
252      loopBottom: false,
253      dragAndMoveKey: 'YWx2YXJvdHJpZ28uY29tX0EyMlpISmhaMEZ1WkUxdmRtVT0wWUc=',
254      controlArrows: false,
255      afterLoad: function (origin, destination) {
256        updateActiveSectionWork(getFullpageSection(destination));
257      },
258      onLeave: function (origin, destination) {
259        updateActiveSectionWork(getFullpageSection(destination));
260      },
261    });
262    $('.post-43 .news.n6').before($('.post-43 .video_more').html());
263    $('.post-43 .video_more').remove();
264    $('.post-43 .news_list').slick({
265      dots: true, //指示点
266      infinite: false, //循环播放
267      autoplay: false, //自动播放
268      autoplaySpeed: 5000, //自动播放间隔
269      arrows: true, //左右箭头
270      useCSS: true, //使用 CSS3 过度
271      speed: 600, //滑动时间
272      slide: 'li', //滑动元素查询
273      slidesToShow: 5, //幻灯片每屏显示个数
274      slidesToScroll: 1, //幻灯片每次滑动个数
275    });
276
277    $('.post-43 .news_imgs .qie').click(function (e) {
278      $('.post-43 .slick-next').click();
279    });
280    var autop = true;
281  } else {
282    var autop = false;
283    $('.post-43 .news_list').append('<div class="video_list"></div>');
284    $('.post-43 .video_list').append($('.post-43 .newss'));
285    $('.post-43 .video_list').slick({
286      dots: false, //指示点
287      infinite: false, //循环播放
288      autoplay: true, //自动播放
289      autoplaySpeed: 5000, //自动播放间隔
290      arrows: true, //左右箭头
291      useCSS: true, //使用 CSS3 过度
292      speed: 600, //滑动时间
293      slide: 'li', //滑动元素查询
294      slidesToShow: 2, //幻灯片每屏显示个数
295      slidesToScroll: 1, //幻灯片每次滑动个数
296      responsive: [
297        //断点触发设置
298        {
299          breakpoint: 479, //分辨率之下(不包含设置分辨率本身)
300          settings: {
301            //参数设置
302            slide: 'li', //滑动元素查询
303            slidesToShow: 1, //幻灯片每屏显示个数
304            slidesToScroll: 1, //幻灯片每次滑动个数
305            infinite: true, //循环播放
306          },
307        },
308      ],
309    });
310  }
311  /*$('.post-43 .news_list2').slick({
312            dots: false,  //指示点
313            infinite: true,  //循环播放
314            autoplay: false,  //自动播放
315            autoplaySpeed: 5000, //自动播放间隔
316            arrows: true,  //左右箭头
317            useCSS: true,  //使用 CSS3 过度
318            speed: 600,  //滑动时间
319            slide: 'li',  //滑动元素查询
320            slidesToShow: 1,  //幻灯片每屏显示个数
321            slidesToScroll: 1,  //幻灯片每次滑动个数
322
323        });*/
324
325  $('.fp-right').hover(
326    function () {
327      $(this).addClass('wrap-open');
328    },
329    function () {
330      $(this).removeClass('wrap-open');
331    },
332  );
333  $('.enter').click(function () {
334    $('.menu_left').addClass('hong');
335    $('.xwsd').animate(
336      {
337        left: '0',
338        borderRadius: '0%',
339      },
340      700,
341    );
342    $('.enter2').show();
343    $('.enter').show();
344  });
345  $('.enter2').click(function () {
346    $('.menu_left').removeClass('hong');
347  });
348  $('.main1 .tab_tt .title')
349    .eq(1)
350    .click(function () {
351      $('.main1').addClass('w2');
352    });
353  $('.main1 .tab_tt .title')
354    .eq(0)
355    .click(function () {
356      $('.main1').removeClass('w2');
357    });
358
359  //选项卡
360  $('.n_tab').sudyTab({
361    handle: '.n_tab_menu li', // 控制器元素,默认为.tab-menu li
362    content: '.n_tab_con > li', // 内容体,可以有多个并以英文逗号隔开,如.tab-list li,.tab-more li,默认值为".tab-list li,.tab-more li"
363    trigger: 'click', // 触发事件,默认为"mouseenter"鼠标经过
364    start: 1, // 开始项,默认为第一个
365    autoPlay: {
366      active: false, // 是否激活自动切换
367      interval: 5000, // 自动切换时间间隔
368      pauseHover: true, // 是否鼠标放上面时停止自动
369    },
370  });
371  //选项卡
372  $('.mbanner').sudyTabs({
373    handle: '.tab-menu li', // 控制器元素,默认为.tab-menu li
374    content: '.tab-list > li', // 内容体,可以有多个并以英文逗号隔开,如.tab-list li,.tab-more li,默认值为".tab-list li,.tab-more li"
375    trigger: 'click', // 触发事件,默认为"mouseenter"鼠标经过
376    start: 1, // 开始项,默认为第一个
377    autoPlay: {
378      active: true, // 是否激活自动切换
379      interval: 5000, // 自动切换时间间隔
380      pauseHover: false, // 是否鼠标放上面时停止自动
381    },
382    // callback: function (index) {
383    //     //大图优化
384    //     let itmeList = document.querySelectorAll(".mbanner .tab-list .news_list")[index];
385    //     if (!itmeList.classList.contains("success")) {
386    //         let videoArr = itmeList.querySelectorAll("video");
387    //         let imgArr =itmeList.querySelectorAll("img[data-imgsrc]");
388    //         videoArr.forEach(item => {
389    //             if (item.src != '') {
390    //                 item.loop = true;
391    //                 item.play();
392    //             }
393    //         })
394    //         imgArr.forEach(item => {
395    //             item.src = item.getAttribute("data-imgsrc");
396    //         })
397    //         itmeList.classList.add("success");
398    //     }
399    // }
400  });
401  $('.mbanner .tab-list .news_list').each(function () {
402    $(this).find('.index').text('01');
403    $(this)
404      .find('.sum')
405      .text('0' + $(this).children('.news').length);
406  });
407  //slick左右轮播
408  $('.mbanner .tab-list .news_list').slick({
409    dots: true, //指示点
410    infinite: true, //循环播放
411    autoplay: true, //自动播放
412    autoplaySpeed: 19800, //自动播放间隔
413    arrows: true, //左右箭头
414    useCSS: true, //使用 CSS3 过度
415    speed: 600, //滑动时间
416    slide: 'li', //滑动元素查询
417    slidesToShow: 1, //幻灯片每屏显示个数
418    slidesToScroll: 1, //幻灯片每次滑动个数
419  });
420  $('.jzrz').slick({
421    dots: false, //指示点
422    infinite: true, //循环播放
423    autoplay: true, //自动播放
424    autoplaySpeed: 3000, //自动播放间隔
425    arrows: true, //左右箭头
426    useCSS: true, //使用 CSS3 过度
427    speed: 600, //滑动时间
428    slide: 'div', //滑动元素查询
429    slidesToShow: 1, //幻灯片每屏显示个数
430    slidesToScroll: 1, //幻灯片每次滑动个数
431  });
432  $('.post-21 .list1').slick({
433    dots: true, //指示点
434    infinite: true, //循环播放
435    autoplay: true, //自动播放
436    autoplaySpeed: 8000, //自动播放间隔
437    arrows: false, //左右箭头
438    useCSS: true, //使用 CSS3 过度
439    speed: 600, //滑动时间
440    slide: 'li', //滑动元素查询
441    slidesToShow: 1, //幻灯片每屏显示个数
442    slidesToScroll: 1, //幻灯片每次滑动个数
443    asNavFor: '.post-21 .list2',
444  });
445  $('.post-21 .list2').slick({
446    dots: false, //指示点
447    infinite: true, //循环播放
448    autoplay: false, //自动播放
449    autoplaySpeed: 8000, //自动播放间隔
450    arrows: false, //左右箭头
451    useCSS: true, //使用 CSS3 过度
452    speed: 600, //滑动时间
453    slide: 'li', //滑动元素查询
454    slidesToShow: 1, //幻灯片每屏显示个数
455    slidesToScroll: 1, //幻灯片每次滑动个数
456    asNavFor: '.post-21 .list1',
457  });
458  /*
459         $('.post-54 .news_list').slick({
460            dots: true,  //指示点
461            infinite: true,  //循环播放
462            autoplay: true,  //自动播放
463            autoplaySpeed: 5000, //自动播放间隔
464            arrows: false,  //左右箭头
465            useCSS: true,  //使用 CSS3 过度
466            speed: 600,  //滑动时间
467            slide: 'li',  //滑动元素查询
468            slidesToShow: 1,  //幻灯片每屏显示个数
469            slidesToScroll: 1,  //幻灯片每次滑动个数
470
471        });
472    */
473
474  var mySwiper = new Swiper('.swiper.post-54', {
475    autoplay: true,
476    pagination: {
477      el: '.swiper-pagination',
478      clickable: true,
479    },
480  });
481
482  $('.mbanner .tab-list .news_list').on('afterChange', function (event, slick, currentSlide) {
483    $(this)
484      .find('.index')
485      .text('0' + (currentSlide + 1));
486  });
487
488  //上理要闻切换
489  $('.main1').sudyTab({
490    handle: '.tab_tt .title', // 控制器元素,默认为.tab-menu li
491    content: '.post', // 内容体,可以有多个并以英文逗号隔开,如.tab-list li,.tab-more li,默认值为".tab-list li,.tab-more li"
492    trigger: 'click', // 触发事件,默认为"mouseenter"鼠标经过
493    start: 1, // 开始项,默认为第一个
494    autoPlay: {
495      active: autop, // 是否激活自动切换
496      interval: 10000, // 自动切换时间间隔
497      pauseHover: false, // 是否鼠标放上面时停止自动
498    },
499  });
500
501  //日历
502  var date = new Date();
503  var year = date.getFullYear();
504  var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
505  var day = new Date(year, month, 0).getDate();
506  var html = '';
507  for (var i = 1; i <= day; i++) {
508    if (i == date.getDate()) {
509      html += '<li class="day today" date="' + year + '-' + month + '-' + (i < 10 ? '0' + i : i) + '">' + (i < 10 ? '0' + i : i) + '</li>';
510    } else {
511      html += '<li class="day" date="' + year + '-' + month + '-' + (i < 10 ? '0' + i : i) + '">' + (i < 10 ? '0' + i : i) + '</li>';
512    }
513  }
514  $('.calendar_news .day_list').append(html);
515
516  //日历切换
517  $('.calendar_news .day_list').slick({
518    dots: false, //指示点
519    infinite: true, //循环播放
520    autoplay: false, //自动播放
521    autoplaySpeed: 5000, //自动播放间隔
522    arrows: true, //左右箭头
523    useCSS: true, //使用 CSS3 过度
524    speed: 600, //滑动时间
525    slide: 'li', //滑动元素查询
526    slidesToShow: 7, //幻灯片每屏显示个数
527    slidesToScroll: 1, //幻灯片每次滑动个数
528    initialSlide: date.getDate() - 4,
529    responsive: [
530      //断点触发设置
531      {
532        breakpoint: 767, //分辨率之下(不包含设置分辨率本身)
533        settings: {
534          //参数设置
535          slide: 'li', //滑动元素查询
536          slidesToShow: 5, //幻灯片每屏显示个数
537          slidesToScroll: 1, //幻灯片每次滑动个数
538          infinite: true, //循环播放
539        },
540      },
541      {
542        breakpoint: 479, //分辨率之下(不包含设置分辨率本身)
543        settings: {
544          //参数设置
545          slide: 'li', //滑动元素查询
546          slidesToShow: 4, //幻灯片每屏显示个数
547          slidesToScroll: 1, //幻灯片每次滑动个数
548          infinite: true, //循环播放
549        },
550      },
551      {
552        breakpoint: 379, //分辨率之下(不包含设置分辨率本身)
553        settings: {
554          //参数设置
555          slide: 'li', //滑动元素查询
556          slidesToShow: 3, //幻灯片每屏显示个数
557          slidesToScroll: 1, //幻灯片每次滑动个数
558          infinite: true, //循环播放
559        },
560      },
561    ],
562  });
563  //日历切换
564  $('.post-61 .news_list').slick({
565    dots: false, //指示点
566    infinite: true, //循环播放
567    autoplay: true, //自动播放
568    autoplaySpeed: 6000, //自动播放间隔
569    arrows: true, //左右箭头
570    useCSS: true, //使用 CSS3 过度
571    speed: 600, //滑动时间
572    slide: 'li', //滑动元素查询
573    slidesToShow: 5, //幻灯片每屏显示个数
574    slidesToScroll: 5, //幻灯片每次滑动个数
575    responsive: [
576      //断点触发设置
577      {
578        breakpoint: 999, //分辨率之下(不包含设置分辨率本身)
579        settings: {
580          //参数设置
581          slide: 'li', //滑动元素查询
582          slidesToShow: 4, //幻灯片每屏显示个数
583          slidesToScroll: 3, //幻灯片每次滑动个数
584          infinite: true, //循环播放
585        },
586      },
587    ],
588  });
589  $('.post-71 .news_list .news').each(function () {
590    $(this).find('.news_more a').attr('href', $(this).find('.more_btn a').attr('href'));
591  });
592  var date = '';
593  var calendarLoaded = false;
594  $('.calendar_news .day').click(function () {
595    date = $(this).attr('date');
596
597    $(this).addClass('today');
598    $(this).siblings().removeClass('today');
599    calendarLoaded = true;
600    loadContents();
601  });
602//   scheduleCalendarLoad();
603
604  function ensureCalendarLoaded() {
605    if (calendarLoaded) return;
606    calendarLoaded = true;
607    loadContents();
608  }
609
610  function scheduleCalendarLoad() {
611    var target = document.querySelector('.calendar_news');
612
613    if (!target) {
614      ensureCalendarLoaded();
615      return;
616    }
617    if ('IntersectionObserver' in window) {
618      var calendarObserver = new IntersectionObserver(
619        function (entries) {
620          if (entries[0].isIntersecting) {
621            ensureCalendarLoaded();
622            calendarObserver.disconnect();
623          }
624        },
625        { rootMargin: '0px' },
626      );
627      calendarObserver.observe(target);
628    } else {
629      setTimeout(ensureCalendarLoaded, 1500);
630    }
631  }
632
633  function escapeAttr(value) {
634    return String(value || '')
635      .replace(/&/g, '&amp;')
636      .replace(/"/g, '&quot;')
637      .replace(/</g, '&lt;');
638  }
639  $('.post-31 .news_list').slick({
640    dots: true, //指示点
641    infinite: true, //循环播放
642    autoplay: false, //自动播放
643    autoplaySpeed: 5000, //自动播放间隔
644    arrows: false, //左右箭头
645    useCSS: true, //使用 CSS3 过度
646    speed: 600, //滑动时间
647    slide: 'li', //滑动元素查询
648    slidesToShow: 1, //幻灯片每屏显示个数
649    slidesToScroll: 1, //幻灯片每次滑动个数
650  });
651  function loadContents() {
652    calendarLoaded = true;
653
654    //排序参数
655    var orderData = [
656      {
657        field: 'f1',
658        type: 'desc',
659      },
660    ];
661    var returnInfos = JSON.stringify(returnData());
662    var orders = JSON.stringify(orderData);
663    var conditions = JSON.stringify(conditData(date));
664
665    $.ajax({
666      url: '/_wp3services/generalQuery?queryObj=articles',
667      type: 'POST',
668      contentType: 'application/x-www-form-urlencoded; charset=utf-8',
669      async: true,
670      dataType: 'json',
671      data: {
672        siteId: 7,
673        columnId: 1045,
674        pageIndex: 1,
675        rows: 5,
676        orders: orders,
677        returnInfos: returnInfos,
678        conditions: conditions,
679      },
680      success: function (result) {
681        var total = result.total;
682        var html = '';
683        if (result != null) {
684          if (result.total != 0) {
685            if ($('.post-31 .news_list').hasClass('slick-initialized')) {
686              $('.post-31 .news_list').slick('destroy');
687            }
688            for (j = 0; j < result.data.length; j++) {
689              var art = result.data[j];
690              var imgsrc = art.imgPath;
691
692              if (art.imgPath == '') {
693                imgsrc = '/_upload/tpl/00/40/64/template64/images/jzrzimg' + (j + 1) + '.jpg';
694              }
695
696              var url = art.url;
697              html +=
698                '<li class="news n1 clearfix">' +
699                '<div class="news_imgs"><a class="lazy-bg bg-cover" href="' +
700                escapeAttr(url) +
701                '" target="_blank" data-bg="' +
702                escapeAttr(imgsrc) +
703                '"></a>' +
704                '</div>' +
705                '<div class="news_wz">' +
706                '<div class="news_con">' +
707                '<div class="news_form">' +
708                art.f4 +
709                '</div>' +
710                '<div class="news_title"><a href="' +
711                escapeAttr(url) +
712                '" target="_blank" title="' +
713                escapeAttr(art.title) +
714                '">' +
715                art.title +
716                '</a></div>' +
717                '<div class="news_info">时间:' +
718                art.f4 +
719                '</div>' +
720                ' <div class="news_info">地点:' +
721                art.f5 +
722                '</div>' +
723                ' <div class="news_info">主讲人:' +
724                art.f7 +
725                '</div>' +
726                '</div>' +
727                '</div>' +
728                '</li>';
729            }
730
731            $('.post-31 .news_list').html(html);
732          } else {
733            alert('该日无活动!');
734          }
735          $('.post-31 .news_list li .news_info').each(function () {
736            var key = $(this).text();
737            if (key == '主讲人:') {
738              $(this).css('display', 'none');
739            }
740          });
741
742          $('.post-31 .news_list').slick({
743            dots: true, //指示点
744            infinite: true, //循环播放
745            autoplay: false, //自动播放
746            autoplaySpeed: 5000, //自动播放间隔
747            arrows: false, //左右箭头
748            useCSS: true, //使用 CSS3 过度
749            speed: 600, //滑动时间
750            slide: 'li', //滑动元素查询
751            slidesToShow: 1, //幻灯片每屏显示个数
752            slidesToScroll: 1, //幻灯片每次滑动个数
753          });
754          refreshLazyResources();
755          updateActiveSectionWork();
756        }
757      },
758    });
759  }
760  /*查询条件*/
761  function conditData(date) {
762    var conditdata = [
763      {
764        field: 'scope',
765        value: 0,
766        judge: '=',
767      },
768      {
769        field: 'f6',
770        value: '%' + date + '%',
771        judge: 'like',
772      },
773    ];
774    return conditdata;
775  }
776  //请求返回参数
777  function returnData() {
778    var returnInfosdata = [
779      {
780        field: 'title',
781        pattern: [
782          {
783            name: 'lp',
784            value: '30',
785          },
786        ],
787        name: 'title',
788      },
789      {
790        field: 'f5',
791        name: 'f5',
792      },
793      {
794        field: 'f7',
795        name: 'f7',
796      },
797      {
798        field: 'f2',
799        name: 'f2',
800      },
801      {
802        field: 'imgPath',
803        name: 'imgPath',
804      },
805      {
806        field: 'f4',
807        name: 'f4',
808      },
809      {
810        field: 'mircImgPath',
811        name: 'mircImgPath',
812      },
813      {
814        field: 'allImg',
815        name: 'allImg',
816      },
817      {
818        field: 'link',
819        name: 'link',
820      },
821    ];
822    return returnInfosdata;
823  }
824
825  /*
826        $(".mbanner .news .news_video").each(function () {
827            if ($(this).find("video").attr("src") == "") {
828                $(this).hide();
829                $(this).siblings(".news_imgs").show();
830            } else {
831                $(this).siblings(".news_imgs").hide();
832            }
833        })
834    */
835  $('.mbanner .news .news_imgs').each(function () {
836    var hiddenImg = $(this).find('img').attr('src') || $(this).find('img').attr('data-src') || '';
837    if (hiddenImg == '') {
838      $(this).hide();
839      $(this).siblings('.news_video').show();
840    } else {
841      $(this).siblings('.news_video').hide();
842    }
843  });
844
845  $('.mbanner .news .news_title').each(function () {
846    if ($(this).text().trim() == '' || $(this).text().trim() == '.') {
847      $(this).hide();
848    }
849  });
850  updateActiveSectionWork();
851});
852/*小图标运动*/
853//监听元素
854var targetNode = $('#container-5')[0];
855var targetNodechange = {
856  attributes: true,
857};
858
859function callback(mutationsList, observer) {
860  var Media = document.getElementsByClassName('videosw');
861  var active = mutationsList[0].target.className.indexOf('fp-completely') > -1;
862
863  for (var i = 0; i < Media.length; i++) {
864    if (active) {
865      if (window.lazyVideoLoad) {
866        window.lazyVideoLoad(Media[i]);
867      }
868      var playPromise = Media[i].play();
869      if (playPromise && playPromise.catch) {
870        playPromise.catch(function () {});
871      }
872    } else {
873      Media[i].pause();
874    }
875  }
876
877  if (active) {
878    setTimeout(function () {
879      $('#container-5').find('.mbottom').addClass('show');
880    }, 50);
881  } else {
882    $('#container-5').find('.mbottom').removeClass('show');
883  }
884  //目标元素发生变化时执行的代码
885  // var Media = document.getElementsByClassName("videosw");
886  //     if(mutationsList[0].target.attributes[0].nodeValue.indexOf('fp-completely') > -1 ){
887  //       for (var i = 0; i < Media.length; i++) {
888  //             Media[i].play()
889  //         }
890  //        setTimeout(() => {
891  //             $("#container-5").find('.mbottom').addClass('show')
892  //         }, 50)
893  //      }else{
894  // for (var i = 0; i < Media.length; i++) {
895  //             Media[i].play()
896  //         }
897  //           $("#container-5").find('.mbottom').removeClass('show'), setTimeout(() => {
898  //             $("#container-5").find('.mbottom').removeClass('show')
899  //         }, 50)
900
901  //    }
902}
903var mutationObserver = new MutationObserver(callback);
904if (targetNode) {
905  mutationObserver.observe(targetNode, targetNodechange);
906}
907
908$('.post-31 .news_list li .news_info').each(function () {
909  var key = $(this).text();
910  if (key == '主讲人:') {
911    $(this).css('display', 'none');
912  }
913});

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.