mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 04:26:03 +00:00
Viz cols first
This commit is contained in:
parent
974de24f6f
commit
ac81143618
@ -10,7 +10,7 @@ require_once './src/D2Functions.php';
|
||||
require_once './src/D2ByteReader.php';
|
||||
require_once './src/D2BitReader.php';
|
||||
|
||||
error_reporting(E_ALL);
|
||||
//error_reporting(E_ALL);
|
||||
set_time_limit(-1);
|
||||
ini_set('max_input_time', '-1');
|
||||
ini_set('max_execution_time', '0');
|
||||
@ -76,10 +76,10 @@ unset($output[0]);
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Level Viz/Warp Editor</title>
|
||||
<link rel="stylesheet" href="/res/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/res/bootstrap.min.css">
|
||||
<script src="/res/jquery-3.5.1.min.js"></script>
|
||||
<script src="/res/popper.min.js"></script>
|
||||
<script src="/res/bootstrap.min.js"></script>
|
||||
<script src="/res/bootstrap.min.js"></script>
|
||||
<style>
|
||||
.viz {
|
||||
background-color: #fafafa;
|
||||
@ -88,7 +88,7 @@ unset($output[0]);
|
||||
background-color: #eef;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@ -100,7 +100,9 @@ unset($output[0]);
|
||||
<th>Name</th>
|
||||
<?php for ($i = 0; $i <= 7; $i++): ?>
|
||||
<th>Vis<?php echo $i; ?></th>
|
||||
<th>Warp<?php echo $i; ?></th> <!-- Add WarpX fields to header -->
|
||||
<?php endfor; ?>
|
||||
<?php for ($i = 0; $i <= 7; $i++): ?>
|
||||
<th>Warp<?php echo $i; ?></th>
|
||||
<?php endfor; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -120,8 +122,10 @@ unset($output[0]);
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
<?php endfor; ?>
|
||||
|
||||
<?php for ($i = 0; $i <= 7; $i++): ?>
|
||||
<td class="warp">
|
||||
<!-- Create WarpX dropdowns -->
|
||||
<select name="Warp<?php echo $i; ?>" data-id="<?php echo $level['Id']; ?>">
|
||||
<?php foreach ($lvlwarp as $key => $value): ?>
|
||||
<option value="<?php echo $key; ?>">
|
||||
@ -135,6 +139,7 @@ unset($output[0]);
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
$("select[name^='Vis'], select[name^='Warp']").change(function () {
|
||||
var levelId = $(this).data('id');
|
||||
|
Loading…
Reference in New Issue
Block a user