initial import
This commit is contained in:
89
templates/train.html
Normal file
89
templates/train.html
Normal file
@ -0,0 +1,89 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Vokabeln trainieren</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
text-align: center;
|
||||
background-color: #f0f0f0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
margin-top: 50px;
|
||||
}
|
||||
#wordDisplay {
|
||||
font-size: 24px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
#inputArea {
|
||||
margin: 20px 0;
|
||||
}
|
||||
#textInput {
|
||||
font-size: 18px;
|
||||
padding: 10px;
|
||||
width: 300px;
|
||||
}
|
||||
canvas {
|
||||
border: 1px solid black;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
}
|
||||
.button {
|
||||
display: inline-block;
|
||||
padding: 15px 25px;
|
||||
font-size: 18px;
|
||||
color: white;
|
||||
background-color: #007bff;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
text-decoration: none;
|
||||
margin: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.button:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
#result {
|
||||
margin-top: 20px;
|
||||
font-size: 20px;
|
||||
color: green;
|
||||
min-height: 50px;
|
||||
}
|
||||
#recognizedText {
|
||||
margin-top: 10px;
|
||||
font-size: 18px;
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Vokabeln trainieren</h1>
|
||||
<div id="wordDisplay">Lade...</div>
|
||||
|
||||
<div id="inputArea">
|
||||
<input type="text" id="textInput" placeholder="Antwort eingeben">
|
||||
<canvas id="drawingCanvas" width="600" height="400"></canvas>
|
||||
<button id="clearCanvas" class="button">Zeichnung löschen</button>
|
||||
</div>
|
||||
|
||||
<button id="toggleInput" class="button">Zu Zeichnen wechseln</button>
|
||||
<button id="previewDrawing" class="button">Zeichnung prüfen</button>
|
||||
<button id="submitAnswer" class="button">Abgeben</button>
|
||||
|
||||
<div id="recognizedText"></div>
|
||||
|
||||
<div id="result">
|
||||
<pre id="text"></pre>
|
||||
</div>
|
||||
<a href="/" class="button">Zurück zur Startseite</a>
|
||||
<script src="https://cdn.jsdelivr.net/npm/tesseract.js@2.1.1/dist/tesseract.min.js"></script>
|
||||
<script src="/static/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Reference in New Issue
Block a user