◆少前百科是非盈利性、非官方的少女前线维基百科。
◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科
◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科
◆To foreigners,You can use twitter to contact us.
Icon Nyto Silver.png

“Widget:Equipquery”的版本间的差异

来自少前百科GFwiki
跳转至: 导航搜索
第504行: 第504行:
 
     }
 
     }
  
     var output = `<table id="Equiptable" class="stattable" style="text-align:center; mid-width:300px; width:100%;">`;
+
     var output = `<table id="Equiptable" class="stattable ${liteCheck()}" style="text-align:center; mid-width:300px; width:100%;">`;
 
     output += `<thead><tr><th style="min-width:120px;max-width:120px">装备<\/th><th style="min-width:110px;max-width:110px">图标<\/th><th>类型<\/th><th>伤害<\/th><th>命中<\/th><th>回避<\/th><th>射速<\/th><th>暴击<\/th><th>暴伤<\/th><th>穿甲<\/th><th>护甲<\/th><th>夜视<\/th><th>弹量<\/th><th>移速<\/th><th>效果<\/th><th style="width:110px; text-align:center;">适用人形<\/th><th>获得途径<\/th><\/tr><\/thead>`;
 
     output += `<thead><tr><th style="min-width:120px;max-width:120px">装备<\/th><th style="min-width:110px;max-width:110px">图标<\/th><th>类型<\/th><th>伤害<\/th><th>命中<\/th><th>回避<\/th><th>射速<\/th><th>暴击<\/th><th>暴伤<\/th><th>穿甲<\/th><th>护甲<\/th><th>夜视<\/th><th>弹量<\/th><th>移速<\/th><th>效果<\/th><th style="width:110px; text-align:center;">适用人形<\/th><th>获得途径<\/th><\/tr><\/thead>`;
 
     output += `<tbody id="Equiptbody">` + htmlline + `<\/tbody><\/table>`;
 
     output += `<tbody id="Equiptbody">` + htmlline + `<\/tbody><\/table>`;
第514行: 第514行:
 
for (var x = 0; x < clearSel.length; x++) { clearSel[x].addEventListener("click", function () { clearSelect(this); }); }
 
for (var x = 0; x < clearSel.length; x++) { clearSel[x].addEventListener("click", function () { clearSelect(this); }); }
 
for (var y = 0; y < invertSel.length; y++) { invertSel[y].addEventListener("click", function () { invertSelect(this); });  
 
for (var y = 0; y < invertSel.length; y++) { invertSel[y].addEventListener("click", function () { invertSelect(this); });  
var finaltable = document.querySelector("#Equiptable");console.log(finaltable);if(document.querySelector("#liteMode").checked){finaltable.classList.add("minimode")}else{finaltable.classList.remove("minimode")}
 
 
}
 
}
 +
 +
function liteCheck(){if(document.querySelector("#liteMode").checked){return "minimode"}else{return ""}}
  
 
function invertSelect(box) {//反选函数
 
function invertSelect(box) {//反选函数

2021年7月5日 (一) 09:59的版本