-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
66 lines (63 loc) · 2.46 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
<!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>GS1 Check Digit Calculator</title>
<link href="./lib/bootstrap/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="./styles/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="page">
<main class="main-content">
<div>
<h1>GS1 Check Digit Calculator</h1>
</div>
<div class="left">
<div id="inputs">
<h3>Insert GS1 Key without check digit</h3>
<input id="input">
<button class="btn btn-primary" type="button" id="calculate">Calculate</button>
<button class="btn btn-primary" type="button" id="clear">Clear input</button>
</div>
<div>
<output id="feedback"></output>
</div>
<div id="results">
<div>
<label><strong>Check digit:</strong></label>
<output id="output"></output>
</div>
<div>
<label><strong>Entire GS1 Key:</strong></label>
<output id="keyWithCD"></output>
</div>
</div>
<div id="demo-values">
<div>
<h3>Insert demo values in input field</h3>
<button id="gtin8" class="btn btn-outline-primary key_button">GTIN-8</button>
<button id="gtin12" class="btn btn-outline-primary key_button">GTIN-12</button>
<button id="gtin13" class="btn btn-outline-primary key_button">GTIN-13</button>
</div>
<div>
<button id="gtin14" class="btn btn-outline-primary key_button">GTIN-14</button>
<button id="gln" class="btn btn-outline-primary key_button">GLN</button>
<button id="sscc" class="btn btn-outline-primary key_button">SSCC</button>
</div>
<div>
<button id="gsin" class="btn btn-outline-primary key_button">GSIN</button>
<button id="gsrn" class="btn btn-outline-primary key_button">GSRN</button>
<button id="gsrnp" class="btn btn-outline-primary key_button">GSRN-P</button>
</div>
</div>
</div>
<div class="right">
<img id="figure" src="images/checkDigitCalculatorIllustration.png" alt="Check Digit Calculator Illustration">
</div>
</main>
</div>
<script src="javascript/websiteLogic.js" type="module"></script>
</body>
</html>