openCountdown/templates/adminPanel.html

94 lines
3.0 KiB
HTML
Raw Normal View History

2022-02-24 19:11:13 +01:00
<!doctype html>
<html lang="en">
<head>
2022-02-24 20:17:24 +01:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-02-24 19:11:13 +01:00
2022-02-24 20:17:24 +01:00
<title>openCountdown - Admin</title>
<meta name="description" content="openCountdown">
<meta name="author" content="TheGreydiamond">
2022-02-24 19:11:13 +01:00
2022-02-24 20:17:24 +01:00
<link rel="stylesheet" href="css/styles.css?v=1.1">
2022-02-24 19:11:13 +01:00
</head>
<body>
2022-02-24 20:17:24 +01:00
<form action="/api/v1/set/mode" target="hiddenFrame">
2022-02-23 21:55:13 +01:00
<select id="mode" name="mode">
2022-02-24 20:17:24 +01:00
<option value="timer">Timer</option>
<option value="clock">Clock</option>
<option value="black">Black</option>
<option value="test">Test</option>
</select>
2022-02-23 21:55:13 +01:00
<button type="submit">Submit</button>
2022-02-24 20:17:24 +01:00
</form>
2022-02-24 21:08:31 +01:00
2022-02-24 20:17:24 +01:00
<br>
2022-02-25 17:55:06 +01:00
<form action="/api/v1/set/layout/showMillis" target="hiddenFrame">
2022-02-24 20:17:24 +01:00
<select id="show" name="show">
<option value="true">Enable Milliseconds</option>
<option value="false">Disable Milliseconds</option>
</select>
<button type="submit">Submit</button>
</form>
2022-02-25 17:55:06 +01:00
<form action="/api/v1/set/layout/showTime" target="hiddenFrame">
2022-02-24 21:08:31 +01:00
<select id="show" name="show">
<option value="true">Show Clock on Countdown page</option>
<option value="false">Do not show Clock on Countdown page</option>
</select>
<button type="submit">Submit</button>
</form>
2022-02-24 20:17:24 +01:00
<form action="/api/v1/set/addMillisToTimer" target="hiddenFrame">
<input type="time" step="0.001" name="time2" id="time2" onchange="updateHiddenForm()"></input>
<input type="hidden" step="0.001" name="time" id="time"></input>
<button type="submit">Submit</button>
</form>
<form action="/api/v1/set/addMillisToTimer" target="hiddenFrame">
<select id="time" name="time" onchange="">
2022-02-24 22:18:21 +01:00
<option value="20000">debug 1 (20 secs)</option>
2022-02-24 20:17:24 +01:00
<option value="300000">00:05:00</option>
<option value="600000">00:10:00</option>
<option value="900000">00:15:00</option>
<option value="1200000">00:20:00</option>
<option value="1500000">00:25:00</option>
<option value="1800000">00:30:00</option>
<option value="2100000">00:35:00</option>
<option value="2400000">00:40:00</option>
<option value="2700000">00:45:00</option>
</select>
<button type="submit">Submit</button>
</form>
2022-02-24 21:08:31 +01:00
Play controls:
2022-02-24 20:17:24 +01:00
<form action="/api/v1/ctrl/timer/play" target="hiddenFrame">
<button type="submit">Play</button>
</form>
<form action="/api/v1/ctrl/timer/pause" target="hiddenFrame">
<button type="submit">Pause</button>
</form>
<form action="/api/v1/ctrl/timer/restart" target="hiddenFrame">
<button type="submit">Restart</button>
</form>
2022-02-24 22:18:21 +01:00
2022-02-24 21:08:31 +01:00
Message:
<form action="/api/v1/ctrl/message/show" target="hiddenFrame">
<input type="text" name="msg">
<button type="submit">Submit</button>
</form>
<form action="/api/v1/ctrl/message/hide" target="hiddenFrame">
<button type="submit">Hide</button>
</form>
2022-02-24 20:17:24 +01:00
<iframe name="hiddenFrame" style="display: none"></iframe>
<iframe src="/timer?smaller=true" height="80%" width="80%"> </iframe>
2022-02-24 19:11:13 +01:00
</body>
<script src="js/interface.js"></script>
2022-02-24 20:17:24 +01:00
2022-02-24 19:11:13 +01:00
</html>