「Widget:SideBarPic」:修訂間差異

移除 426 位元組 、​ 2021年3月11日 (星期四)
無編輯摘要
imported>=海豚=
(创建页面,内容为“<noinclude>用来给{{tl|替换侧边栏底图}}和{{tl|背景图片}}更好的体验效果的,作者User:AnnAngela,修订User:=海豚=。</noinclude><in…”)
 
imported>=海豚=
無編輯摘要
行 3: 行 3:
window.RLQ.push(function() {
window.RLQ.push(function() {
    $(function() {
    $(function() {
     var sidebarCharacter = $(".sidebar-character").slice(0, 3);
     if (!sidebarCharacter.length) return;
      $("body").addClass("sideBarPic");
      $("body").addClass("sideBarPic");
      sidebarCharacter.addClass('active').each(function() {
      sidebarCharacter.addClass('active').each(function() {
行 10: 行 8:
        self.find('img').removeAttr('width').removeAttr('height');
        self.find('img').removeAttr('width').removeAttr('height');
      });
      });
     $(window).on('resize', function() {
       sidebarCharacter.each(function() {
         var self = $(this);
         self.find('img').width(self.width());
       });
     }).resize();
     if (sidebarCharacter.is('[data-displaylogo="yes"]')) $('body').addClass('show-logo');
    });
    });
});</script><style>
});</script><style>
匿名使用者