sr2ini/index.html

96 lines
3.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Shadowrun 2e Ini Tracker</title>
<!-- Style sheets -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">-->
<link href="css/custom.css" rel="stylesheet">
<!-- javascript files -->
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>-->
<script src="js/sr2ini.js" type="text/javascript"></script>
</head>
<body>
<br/>
<div class="container">
<div class="table-responsive">
<table class="table table-sm table-borderless" id="combatants">
<thead>
<tr id="combatants-headrow">
<th class="col-sm-5" id="combNameHeader" title="Name">Name</th>
<th class="col-sm-2" id="combIniHeader" title="Initiative">Initiative</th>
<th class="col-sm-3" id="combDiceReaHeader" title="Initiative Dice and Reaction">Ini Dice & REA</th>
<th class="col-sm-2" id="combActionsHeader" title="Available Actions">Actions</th>
</tr>
</thead>
<tbody class="align-middle" id="sortable">
<tr class="table-primary combRow" id="newCombRow">
<form name="newCombForm" class="combForm was-validated" onsubmit="return false;">
<td>
<input type="text" maxlength="40" class="form-control combName" form="newComForm" placeholder="Name" required />
</td>
<td class="col-sm-2">
<input type="number" min="0" max="50" class="form-control combIni" form="newComForm" placeholder="Ini" />
</td>
<td class="col-sm-3">
<div class="input-group">
<input type="number" min="1" max="5" class="form-control combDice" form="newComForm" placeholder="Dice" />
<span class="input-group-text">D+</span>
<input type="number" min="1" max="20" class="form-control combRea" form="newComForm" placeholder="REA" />
</div>
</td>
<td>
<div class="btn-group d-flex">
<button type="button" class="btn btn-primary" id="newCombAddButton" title="Add combatant to fight" form="newComForm">Add</button>
</div>
</td>
</form>
</tr>
<tr id="newRoundRow">
<td colspan="3" />
<td>
<div class="btn-group d-flex">
<button type="button" class="btn btn-secondary" id="newRoundButton" data-bs-toggle="modal" data-bs-target="#newRoundModal" title="begin new round">New Round</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal fade" id="newRoundModal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content modal-sm">
<div class="modal-header">
<h5 class="modal-title">Start New Round</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>Are you sure?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="newRoundOkButton" data-bs-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
</body>
</html>