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

“Widget:战术人形属性”的版本间的差异

来自少前百科GFwiki
跳转至: 导航搜索
第2行: 第2行:
 
<table><caption>生命</caption><colgroup><col><col><col><col><col></colgroup><tr><th>×1</th><th>×2</th><th>×3</th><th>×4</th><th>×5</th></tr><tr id="hp-tr"><td></td><td></td><td></td><td></td><td></td></tr></table>
 
<table><caption>生命</caption><colgroup><col><col><col><col><col></colgroup><tr><th>×1</th><th>×2</th><th>×3</th><th>×4</th><th>×5</th></tr><tr id="hp-tr"><td></td><td></td><td></td><td></td><td></td></tr></table>
 
<table><tr><th id="growth" colspan="5">成长</th></tr><tr><td id="grow-td" colspan="5"></td></tr><tr><th id="pow">伤害</th><th id="hit">命中</th><th id="dodge">回避</th><th id="rate">射速</th><th id="armor">护甲</th></tr><tr><td id="pow-td"></td><td id="hit-td"></td><td id="dodge-td"></td><td id="rate-td"></td><td id="armor-td"></td></tr></table>
 
<table><tr><th id="growth" colspan="5">成长</th></tr><tr><td id="grow-td" colspan="5"></td></tr><tr><th id="pow">伤害</th><th id="hit">命中</th><th id="dodge">回避</th><th id="rate">射速</th><th id="armor">护甲</th></tr><tr><td id="pow-td"></td><td id="hit-td"></td><td id="dodge-td"></td><td id="rate-td"></td><td id="armor-td"></td></tr></table>
</template><template id="input-tpl"><input id="lv-input" type="number" min="1" max="100" value="100"><input id="mod-toggle" type="checkbox"><label for="mod-toggle">MOD</label></template><script>
+
</template><script>
 
const basic = [16, 45, 5, 5];
 
const basic = [16, 45, 5, 5];
 
const basic_life_armor = [
 
const basic_life_armor = [
第29行: 第29行:
 
$('#attr-tpl').remove();
 
$('#attr-tpl').remove();
 
$('#attr-table').prepend(tables);
 
$('#attr-table').prepend(tables);
const inputs = $('#input-tpl')[0].content.cloneNode(true);
+
$('#attr-table').insertBefore(`<input id="lv-input" type="number" min="1" max="100" value="100"><input id="mod-toggle" type="checkbox"><label for="mod-toggle">MOD</label>`);
$('#input-tpl').remove();
 
$('#attr-table').insertBefore(inputs);
 
 
const hpRow = $('#hp-tr')[0];
 
const hpRow = $('#hp-tr')[0];
 
const [lvInput, modToggle] = $('#lv-input, #mod-toggle');
 
const [lvInput, modToggle] = $('#lv-input, #mod-toggle');

2023年3月25日 (六) 21:43的版本