Widget:背景图片:修订间差异

文本替换 - 替换“window.RLQ.push(”为“window.addEventListener('jquery-ready', ”
无编辑摘要
 
(未显示同一用户的1个中间版本)
第8行: 第8行:
             var self = $(this);
             var self = $(this);
             self.appendTo("#mw-navigation").fadeIn().addClass(this.dataset.align === 'top' ? 'top' : 'bottom').css('user-select', 'none');
             self.appendTo("#mw-navigation").fadeIn().addClass(this.dataset.align === 'top' ? 'top' : 'bottom').css('user-select', 'none');
             self.find('img').removeAttr('width').removeAttr('height');
             var ele = self.find('.background-img-replace');
            ele[0].outerHTML = ele[0].outerHTML.replace('<br', '<img').replace('data-srcset', 'srcset');
            ele.removeAttr('width').removeAttr('height');
         });
         });
         $(window).on('resize', function() {
         $(window).on('resize', function() {