-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (82 loc) · 3.44 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PhysLink</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Libre+Barcode+39&family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/assets/style.css">
<script type="module" src="/assets/physlink.js"></script>
</head>
<body>
<form id="controls">
<div class="logo" style="display: flex; gap: 0.5rem;">
<img src="./assets/ic_launcher-playstore.png" alt="Logo">
<h1>
<span>Physlink</span>
<span>Code Generator</span>
</h1>
</div>
<div class="form">
<div class="group">
<h2>Setup</h2>
<label for="start">
Start
<input type="number" name="start" id="start" value="1" required>
</label>
<label for="amount">
Amount (pcs)
<input type="number" name="amount" id="amount" value="224" required>
</label>
<label for="prefix">
Prefix
<input type="text" name="prefix" id="prefix" value="A" maxlength="1">
</label>
<label for="code_type">
Code type
<select id="code_type" required>
<option value="datamatrix">Datamatrix (recommended)</option>
<option value="barcode39">Barcode 39</option>
</select>
</label>
</div>
<div class="group">
<h2>Options</h2>
<label for="group_by">
Group by (pcs)
<input type="number" name="group_by" id="group_by" value="28" required>
</label>
<label for="visible_prefix">
<span><input type="checkbox" checked name="visible_prefix" id="visible_prefix" value="true">Visible prefix</span>
</label>
<label for="visible_number">
<span><input type="checkbox" checked name="visible_number" id="visible_number" value="true">Visible number</span>
</label>
<label for="visible_ad">
<span><input type="checkbox" name="visible_ad" id="visible_ad" value="true">Include ad</span>
</label>
</div>
<div class="group">
<h2>Produce</h2>
<label for="generate">
1. Create codes
<button type="submit" id="generate">Generate</button>
</label>
<label for="hidecontrols">
2. Print codes, use
<button id="hidecontrols" type="button" style="border: 2px solid cadetblue;">CTRL+P</button>
Or
<button id="hidecontrols" type="button" style="border: 2px solid cadetblue;">⋮ -> Print</button>
</label>
</div>
</div>
</form>
<div id="content">
<div class="octet">
</div>
</div>
</body>
</html>