-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
59 lines (59 loc) · 1.6 KB
/
index.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Parse Ingredients</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/default.min.css"
/>
<style>
body {
color: #333;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue',
Arial, sans-serif;
margin: 1rem;
}
code {
background-color: lightgray;
border: 1px solid darkgray;
border-radius: 4px;
padding: 0.1rem;
}
pre {
border: 1px solid gray;
border-radius: 0.5rem;
padding: 1rem;
}
h4 {
border-bottom: 1px solid lightgray;
}
</style>
</head>
<body>
<h4>Ingredient List</h4>
<textarea id="ingredient-list" cols="90" rows="20"></textarea>
<br />
<label>
<input type="checkbox" id="normalize-uom" />
Normalize units of measure
</label>
<br />
<label>
<input type="checkbox" id="allow-leading-of" />
Allow leading "of "
</label>
<br />
<label>
Ignore UOMs
<input type="text" id="ignore-uoms" />
</label>
<br />
<button type="button" id="parse">Parse</button>
<h4>Results</h4>
<pre id="results" class="language-json">(Click "Parse" to see results.)</pre>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script>
<script type="module" src="/src/dev.ts"></script>
</body>
</html>