微件:不重置限定Box计算器:修订间差异
跳到导航
跳到搜索
Statementreply(讨论 | 贡献) 无编辑摘要 |
Statementreply(讨论 | 贡献) 无编辑摘要 |
||
第4,049行: | 第4,049行: | ||
{"remaining":199,"select_ur":1,"random_ur":1,"ssr":7,"sr":30,"action":11} | {"remaining":199,"select_ur":1,"random_ur":1,"ssr":7,"sr":30,"action":11} | ||
] | ] | ||
]; | |||
var ActionText = [ | |||
{ | |||
0:'不抽', | |||
1:'单抽', | |||
11:'11连' | |||
}, { | |||
0:'不抽', | |||
1:'单抽,优先使用招募券', | |||
11:'如有招募券则招募券单抽,否则11连' | |||
} | |||
]; | ]; | ||
第4,113行: | 第4,125行: | ||
var t = document.getElementById(f).value; | var t = document.getElementById(f).value; | ||
if (t === '') { | if (t === '') { | ||
document.getElementById('result'). | document.getElementById('result').innerHTML = ''; | ||
return; | return; | ||
} | } | ||
第4,124行: | 第4,136行: | ||
document.getElementById('remaining').value = input.remaining.toString(); | document.getElementById('remaining').value = input.remaining.toString(); | ||
if (!checkInput(input)) { | if (!checkInput(input)) { | ||
document.getElementById('result'). | document.getElementById('result').innerHTML = '输入有误,请检查'; | ||
return; | return; | ||
} | } | ||
var action = getAction(input); | var action = getAction(input); | ||
var actionHtml = | var actionHtml = ActionText[input.strategy][action]; | ||
document.getElementById('result').innerHTML = actionHtml; | |||
document.getElementById('result'). | |||
}; | }; | ||
</script> | </script> | ||
第4,170行: | 第4,171行: | ||
</div> | </div> | ||
<div> | <div> | ||
< | <p id="result"><br> | ||
</div> | </div> | ||
</form> | </form> | ||
</html> | </html> | ||
</includeonly> | </includeonly> |
2017年10月13日 (五) 17:13的版本