-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (28 loc) · 1.18 KB
/
Copy pathindex.html
File metadata and controls
34 lines (28 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ezekiel Bread Lot Decoder</title>
<link rel="stylesheet" href="styles.css" />
<link rel="icon" href="favicon.png" type="image/png"/>
</head>
<body>
<div class="container">
<h1>Ezekiel Bread Lot Decoder</h1>
<p>Enter the 5-character lot number or scan the tag:</p>
<input type="text" id="lotInput" maxlength="5" placeholder="e.g. R1234" />
<button onclick="decodeLot()">Decode</button>
<div class="divider">OR</div>
<input type="file" accept="image/*" capture="environment" id="imageInput" style="display: none;" onchange="handleImage(this)">
<button onclick="document.getElementById('imageInput').click()">Scan Tag</button>
<p id="result"></p>
<p id="scanStatus"></p>
<button class="help" onclick="alert('📌 Take a clear well-lit photo of the lot number. It looks like R1234CA and is usually printed or stamped on the tag.')">
Help
</button>
</div>
<script src="https://cdn.jsdelivr.net/npm/tesseract.js@4/dist/tesseract.min.js"></script>
<script src="decoder.js"></script>
</body>
</html>