This commit is contained in:
Gnieark 2016-06-30 12:18:32 +02:00
parent 71b595dc48
commit fb7f321b9e
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ function applyInitMessage(req){
} }
} }
} }
function tron(bot1,bot2,xd_check){ function tron(xd_check){
//empty //empty
while (document.getElementById('fightResult').firstChild) { while (document.getElementById('fightResult').firstChild) {
document.getElementById('fightResult').removeChild(document.getElementById('fightResult').firstChild); document.getElementById('fightResult').removeChild(document.getElementById('fightResult').firstChild);

View File

@ -29,7 +29,7 @@ foreach($bots as $bot){
<p><input type="checkbox" id="fullLogs"/><label for="fullLogs">view the full logs</label></p> <p><input type="checkbox" id="fullLogs"/><label for="fullLogs">view the full logs</label></p>
<p><input id="fightButton" disabled="disabled" type="button" value="<?php echo $lang['FIGHT']; ?>" onclick="tron(document.getElementById('bot1').value,document.getElementById('bot2').value,'<?php echo xd_check_input(2); ?>');"></p> <p><input id="fightButton" disabled="disabled" type="button" value="<?php echo $lang['FIGHT']; ?>" onclick="tron('<?php echo xd_check_input(2); ?>');"></p>
<div id="fightResult"></div> <div id="fightResult"></div>
</article> </article>