◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:AVGplayer/js”的版本间的差异
第33行: | 第33行: | ||
xmlhttp_se.open("GET", "/index.php?title=JSON:AVGSE&action=raw", true); | xmlhttp_se.open("GET", "/index.php?title=JSON:AVGSE&action=raw", true); | ||
xmlhttp_se.send(); | xmlhttp_se.send(); | ||
+ | |||
+ | mw.loader.using('ext.gadget.md5hasher', function() { | ||
+ | const prefabcodes = [0, 2, 3, 4, 5, 6, 7, 8, 9].concat([...Array(26)].map((_, i) => String.fromCharCode(i + 97))); | ||
+ | for (const c of prefabcodes) { | ||
+ | var newXhr = new XMLHttpRequest(); | ||
+ | newXhr.responseType = 'json'; | ||
+ | newXhr.onload = function() { | ||
+ | dollarray = Object.assign(dollarray, this.response); | ||
+ | } | ||
+ | const prefab = 'AVG_Pic_' + c + '.txt'; | ||
+ | newXhr.open('GET', '/images/' + window.gfUtils.createWikiPathPart(prefab) + '/' + prefab); | ||
+ | newXhr.send(); | ||
+ | }); | ||
var effarray = { | var effarray = { |