- Interactive mission selector with metadata-driven design - 5 educational missions (basics + advanced) - AI assistant roles (Deepbit, Bugsy, Schnippsi, Tobi) - SnakeCam gesture recognition system - Token tracking utilities - CLAUDE.md documentation - .gitignore for logs and secrets
116 lines
2.6 KiB
HTML
Executable File
116 lines
2.6 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>🐍 SnakeCam Vision</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #111;
|
|
color: #eee;
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
h1 {
|
|
margin-bottom: 20px;
|
|
color: #90ee90;
|
|
}
|
|
.video-container {
|
|
display: inline-block;
|
|
border: 4px solid #333;
|
|
background: black;
|
|
}
|
|
img {
|
|
width: 320px;
|
|
height: 240px;
|
|
object-fit: cover;
|
|
}
|
|
.video-container {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
|
|
form {
|
|
display: inline-block;
|
|
text-align: left;
|
|
background: #222;
|
|
padding: 15px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
label, select, input, button {
|
|
display: block;
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
input, select {
|
|
padding: 6px;
|
|
border-radius: 4px;
|
|
border: none;
|
|
}
|
|
|
|
button {
|
|
background-color: #28a745;
|
|
color: white;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
border: none;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #218838;
|
|
}
|
|
</style>
|
|
|
|
</head>
|
|
<body>
|
|
<h1>🐍 SnakeCam Vision</h1>
|
|
|
|
<div class="video-container">
|
|
<img src="{{ url_for('video_feed') }}" alt="Live Video Feed">
|
|
</div>
|
|
<br clear=all/>
|
|
<form id="logForm">
|
|
<p>
|
|
<label for="antwort">Antwort:</label><br>
|
|
<input type="text" id="antwort" name="antwort" placeholder="Was denkst du?">
|
|
</p>
|
|
<p>
|
|
<label for="mood">Stimmung:</label><br>
|
|
<select id="mood" name="mood">
|
|
<option value="happy">😄 Happy</option>
|
|
<option value="excited">🤩 Excited</option>
|
|
<option value="neutral">😐 Neutral</option>
|
|
<option value="confused">😕 Confused</option>
|
|
</select>
|
|
</p>
|
|
<p>
|
|
<label for="gesture">Geste:</label><br>
|
|
<select id="gesture" name="gesture">
|
|
<option value="wave">👋 Wave</option>
|
|
<option value="fist">✊ Faust</option>
|
|
<option value="none">🚫 Keine</option>
|
|
</select>
|
|
</p>
|
|
<button type="submit">📝 Speichern</button>
|
|
</form>
|
|
|
|
<script>
|
|
document.getElementById("logForm").addEventListener("submit", async function(e) {
|
|
e.preventDefault(); // Kein Reload!
|
|
const formData = new FormData(this);
|
|
await fetch("/log_answer", {
|
|
method: "POST",
|
|
body: formData
|
|
});
|
|
console.log("✅ Antwort wurde gespeichert.");
|
|
this.reset(); // Eingabefelder leeren
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|