Website/calc/index.html

80 lines
2 KiB
HTML
Raw Normal View History

2020-07-18 04:10:49 +00:00
<html>
<head>
<title>Admin Application Calculator</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="script.js"></script>
</head>
<body>
<h1>Admin Application Calculator</h1>
<div class="form">
<div>
<p>Application Type:</p>
<select id="type">
<option value="super">Super Admin</option>
<option value="telnet">Telnet Admin</option>
<option value="senior">Senior Admin</option>
</select>
</div>
<div>
<div>
<p>Operator:</p>
</div>
<div>
<button onclick="submit_vote(1);")>V (+1)</button>
<button onclick="submit_vote(2);">V (+2)</button>
</div>
<div>
<button onclick="submit_vote(-1);">O (-1)</button>
<button onclick="submit_vote(-2);">O (-2)</button>
</div>
</div>
<div>
<div>
<p>Super Admin:</p>
</div>
<div>
<button onclick="submit_vote(2);")>V (+2)</button>
<button onclick="submit_vote(3);">V (+3)</button>
<button onclick="submit_vote(4);">V (+4)</button>
</div>
<div>
<button onclick="submit_vote(-2);">O (-2)</button>
<button onclick="submit_vote(-3);">O (-3)</button>
<button onclick="submit_vote(-4);">O (-4)</button>
</div>
</div>
<div>
<div>
<p>Telnet Admin:</p>
</div>
<div>
<button onclick="submit_vote(3);">V (+3)</button>
<button onclick="submit_vote(4);">V (+4)</button>
</div>
<div>
<button onclick="submit_vote(-3);">O (-3)</button>
<button onclick="submit_vote(-4);">O (-4)</button>
</div>
</div>
<div>
<div>
<p>Senior Admin:</p>
</div>
<div>
<button onclick="submit_vote(4);">V (+4)</button>
</div>
<div>
<button onclick="submit_vote(-4);">O (-4)</button>
</div>
</div>
<div>
<div>
<p>Score:</p>
<p><span id="points">0</span> points / <span id="total_votes">0</span> votes</p>
<p><span id="rounded_percentage">0</span>% (<span id="percentage">0</span>%)</p>
<p>Status: <span id="status">N/A</span></p>
</div>
</div>
</div>
</body>
</html>