try to draw 1000*1000 svg grig

This commit is contained in:
Gnieark 2016-06-29 17:20:56 +02:00
parent 54ca6d7a20
commit fee43385d9
2 changed files with 14 additions and 18 deletions

View File

@ -38,7 +38,7 @@ switch ($_POST['act']){
error (500,"missing parameter 2");
}
echo "plop";
break;

View File

@ -12,26 +12,22 @@
require_once(__DIR__."/functions.php");
$bots=get_Bots_Array('tron');
$botsArr=array();
foreach($bots as $bot){
$botsArr[]=array('id' => $bot['id'], 'name' => $bot['name']);
}
?>
<article id="mainArticle">
<h2><?php echo $lang['MAKE_DUEL'];?></h2>
<p>
<select name="bot1" id="bot1">
<?php
foreach($bots as $bot){
echo '<option value="'.$bot['id'].'">'.$bot['name'].'</option>';
}
?>
</select>
&nbsp;VS&nbsp;
<select name="bot2" id="bot2">
<?php
foreach($bots as $bot){
echo '<option value="'.$bot['id'].'">'.$bot['name'].'</option>';
}
?>
</select>
</p>
<div id="configurePlayers">
</div>
<script>
var botsAvailable = <?php echo json_encode($botsArena); ?>;
show_bot_panel(0);
</script>
<p><input type="checkbox" id="fullLogs"/><label for="fullLogs">view the full logs</label></p>
<p><input id="fightButton" type="button" value="<?php echo $lang['FIGHT']; ?>" onclick="tron(document.getElementById('bot1').value,document.getElementById('bot2').value,'<?php echo xd_check_input(2); ?>');"></p>
<div id="fightResult"></div>