MediaWiki:Mobile.js:修订间差异
无编辑摘要 标签:移动版编辑 移动版网页编辑 |
无编辑摘要 标签:移动版编辑 移动版网页编辑 |
||
| 第3行: | 第3行: | ||
for MW-1.34.2 with MobileFrontend and MinervaNeue | for MW-1.34.2 with MobileFrontend and MinervaNeue | ||
Just replace span text and href to add links */ | Just replace span text and href to add links */ | ||
mw.loader.using('https:// | mw.loader.using('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css',"text/css"); | ||
var navbar = function (data, textStatus, jqxhr) { | var navbar = function (data, textStatus, jqxhr) { | ||
| 第27行: | 第27行: | ||
newa.appendChild(icon); | newa.appendChild(icon); | ||
var newspan=doc.createElement("span"); | |||
newspan.classList.add("toggle-list-item__label"); | |||
newspan.innerHTML=link.innerHTML; | |||
newa.appendChild(newspan); | |||
li[i].insertBefore(newa,li[i].firstChild); | li[i].insertBefore(newa,li[i].firstChild); | ||