◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:ChibiCostumeSwitcher”的版本间的差异
Mikumikuer(讨论 | 贡献) |
Mikumikuer(讨论 | 贡献) |
||
第12行: | 第12行: | ||
function swap_costume(element, targetId) { | function swap_costume(element, targetId) { | ||
+ | console.log(element,targetId); | ||
var neededGadgets = [ 'ext.gadget.md5hasher' ]; | var neededGadgets = [ 'ext.gadget.md5hasher' ]; | ||
if (mw.user.options.get("gadget-chibiAnimation") == 1) { | if (mw.user.options.get("gadget-chibiAnimation") == 1) { | ||
第19行: | 第20行: | ||
// Switch costume when everything is ready | // Switch costume when everything is ready | ||
mw.loader.using(neededGadgets).then(function () { | mw.loader.using(neededGadgets).then(function () { | ||
− | swap_costume_intern(element, targetId); | + | swap_costume_intern(element, targetId);console.log(element,targetId) |
},function () {var mobile=$("#section_0"); | },function () {var mobile=$("#section_0"); | ||
if (mobile.length == 0){console.error("Loading needed libraries failed");} | if (mobile.length == 0){console.error("Loading needed libraries failed");} |
2020年3月4日 (三) 01:31的版本
Original widget created by https://en.gfwiki.com/wiki/User:Messing_with_data, Copied under Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) License