Gadget:oouiup.js:修订间差异

添加38字节 、​ 2023年7月30日 (星期日)
// Edit via Wikiplus
(// Edit via Wikiplus)
(// Edit via Wikiplus)
 
(未显示同一用户的3个中间版本)
第3行: 第3行:
html = document.documentElement;
html = document.documentElement;
const innerWidth = window.innerWidth;
const innerWidth = window.innerWidth;
let scrollbarWidth;
var scrollbarWidth;
if($(".backToTop").length > 0) { // 已经加载了仿论坛版本
if($(".backToTop").length > 0) { // 已经加载了仿论坛版本
return;
return;
第22行: 第22行:
const btnObj = new OO.ui.ButtonWidget( {
const btnObj = new OO.ui.ButtonWidget( {
icon: 'collapse',
icon: 'collapse',
label: 'ABC',
label: '返回顶部',
title: 'TIT',
title: '返回顶部',
invisibleLabel: true,
invisibleLabel: true,
classes: [ 'backToTop' ]
classes: [ 'backToTop' ]
第45行: 第45行:
}
}
};
};
window.onscroll();
} );
} );
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,469

个编辑