127 lines
4.5 KiB
HTML
127 lines
4.5 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<link rel="stylesheet" href="css/bootstrap.css">
|
|
|
|
</head>
|
|
<body>
|
|
<section>
|
|
<div class="container">
|
|
<h1>Genderwatch-protocol</h1>
|
|
<h2 style="margin-left: 10px;">Aktuelles Thema</h2>
|
|
<table class="table-bordered">
|
|
<tr>
|
|
<td colspan="2">
|
|
<input class="form-control" type="text" id="topicInput" placeholder="Thema hier eingeben">
|
|
</td>
|
|
<td>
|
|
<button class="btn btn-primary" onclick="closeTopic()">
|
|
Thema abschliessen
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
M
|
|
</th>
|
|
<th>
|
|
W
|
|
</th>
|
|
<th>
|
|
D
|
|
</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td id="time-0">
|
|
0
|
|
</td>
|
|
<td id="time-1">
|
|
0
|
|
</td>
|
|
<td id="time-2">
|
|
0
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<button class="btn btn-primary" onclick="start(0)">Beginnt zu Reden</button>
|
|
</td>
|
|
<td>
|
|
<button class="btn btn-primary" onclick="start(1)">Beginnt zu Reden</button>
|
|
</td>
|
|
<td>
|
|
<button class="btn btn-primary" onclick="start(2)">Beginnt zu Reden</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3">
|
|
<button class="btn btn-primary" style="width: 98%;" onclick="stop()">Hört auf zu Reden, -> Stille</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3">
|
|
<button class="btn btn-primary" style="width: 98%;" onclick="resetButton()">Reset</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
|
|
<H2>Abgeschlossene Themen</H2>
|
|
<button class="btn btn-primary" onclick="buttonDeleteAllClosedTopics()">alle Löschen</button>
|
|
<table border="1">
|
|
<thead>
|
|
<tr>
|
|
<th style="min-width: 300px;">
|
|
Thema
|
|
</th>
|
|
<th style="min-width: 100px;">
|
|
M
|
|
</th>
|
|
<th style="min-width: 100px;">
|
|
W
|
|
</th>
|
|
<th style="min-width: 100px;">
|
|
D
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="closedTopicsTable">
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</div>
|
|
</section>
|
|
|
|
|
|
<script src="js/functions.js"></script>
|
|
<script>
|
|
closedTopics = JSON.parse(localStorage.getItem("closedTopics"))
|
|
if(!closedTopics) {
|
|
closedTopics = []
|
|
}
|
|
watches = JSON.parse(localStorage.getItem("watches"))
|
|
if(!watches){
|
|
reset()
|
|
}
|
|
|
|
document.getElementById("topicInput").value = localStorage.getItem("actualTopic")
|
|
document.getElementById("topicInput").addEventListener('keyup', saveActualTopicToLocalStorage);
|
|
refreshClosedTopics()
|
|
setInterval(() => {
|
|
refreshWatch(0)
|
|
refreshWatch(1)
|
|
refreshWatch(2)
|
|
}, 100);
|
|
</script>
|
|
</body>
|
|
</html> |