37 lines
1012 B
HTML
37 lines
1012 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Proto logbook analyzer UI</title>
|
|
<link rel="stylesheet" href="styles.css" />
|
|
<script src="https://unpkg.com/tesseract.js@5/dist/tesseract.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="top">
|
|
<h1>Proto logbook analyzer UI</h1>
|
|
<label for="myfile">Select a file:</label>
|
|
<input type="file" id="fileInput" name="myfile" />
|
|
</div>
|
|
|
|
<div class="center">
|
|
<div class="left">
|
|
<img
|
|
id="imagePreview"
|
|
src="https://puzzlemania-154aa.kxcdn.com/products/2024/puzzle-schmidt-1000-pieces-random-galaxy.webp"
|
|
alt="" />
|
|
</div>
|
|
<div class="right">
|
|
<textarea name="textarea" id="textEditor"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="bottom">
|
|
<button id="btnRunOCR">Run OCR</button>
|
|
<button id="btnExport">Export JSON</button>
|
|
<div id="status"></div>
|
|
</div>
|
|
<script src="/src/app.js"></script>
|
|
</body>
|
|
</html>
|