MediaWiki:Gadget-site-javascript.js:修订间差异

imported>=海豚=
无编辑摘要
imported>=海豚=
撤销=海豚=讨论)的版本87744
第1行: 第1行:
/* 顶部公告 */
/* From wjghj.cn under CC BY-NC-SA 4.0*/
function siteNoticeScroll(obj,interval) {
  $(obj).animate({
    height: 'show',
    paddingTop: 'show',
    marginTop: 'show',
    paddingBottom: 'show',
    marginBottom: 'show',
  });
  setInterval(function() {
    $(obj).find('ul:first').animate({
      marginTop: '-25px'
    },
    300,
    function() {
      $(this).css({
        marginTop: '0px',
      }).find('li:first').appendTo(this);
    });
  },
  interval);
}
siteNoticeScroll('.siteNoticeScroll',5000);
/* Tabs */
/* Tabs */
/* eslint-disable no-var */
/* eslint-disable no-var */