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

更改

跳转至: 导航搜索

Widget:融合势力属性

删除17字节2022年5月1日 (日) 22:04
无编辑摘要
let resolution = new Array(5);
let variables = {size: 0, formation: 45, lv: 100, rank: 4, resolution: 4};
let stars;
function updateResSignal() { return; }
function addInputs(container, name, labels, targetbase = 0) {
for (let i = 0; i < 5; i++) {
let label = document.createElement('label');
container.appendChild(label);
input.addEventListener('click', e => {
let val = +e.currentTarget.value+ base; if (variables[targetname] != val) { variables[targetname] = val;
updateAttrs();
}
let rankCtrl = document.getElementById('rank-control');
let resCtrl = document.getElementById('resolve-control');
if (sizeCtrl) addInputs(sizeCtrl, 'size', ['微', '小', '中', '大', '巨'], 'size'); if (maxform == 5) addInputs(formCtrl, 'formation', ['×1', '×2', '×3', '×4', '×5'], 'formation'1);
else formCtrl.textContent = '×1';
let lvLabel = document.createElement('label');
let unitid = div.dataset.id;
if (unitid < 2000 || unitid == 2006 || unitid == 3010) maxform = 1;
variables.formation = maxform - 1;
type = div.dataset.type;
ratios = div.dataset.attrs.split(',').map(x => +x);

导航菜单