-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (41 loc) · 1.71 KB
/
index.html
File metadata and controls
50 lines (41 loc) · 1.71 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ZATCA QR Generator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>ZATCA QR Generator</h1>
<div class="form-group">
<label for="sellerName">Seller Name</label>
<input type="text" id="sellerName" placeholder="e.g. Bob's Records" value="Bob's Records">
</div>
<div class="form-group">
<label for="vatNumber">VAT Registration Number</label>
<input type="text" id="vatNumber" placeholder="e.g. 310122393500003" value="310122393500003">
</div>
<div class="form-group">
<label for="timestamp">Invoice Timestamp</label>
<input type="datetime-local" id="timestamp" step="1">
</div>
<div class="form-group">
<label for="invoiceTotal">Invoice Total (with VAT)</label>
<input type="number" id="invoiceTotal" step="0.01" placeholder="e.g. 1000.00" value="1000.00">
</div>
<div class="form-group">
<label for="vatTotal">VAT Total</label>
<input type="number" id="vatTotal" step="0.01" placeholder="e.g. 150.00" value="150.00">
</div>
<button id="generateBtn">Generate QR String</button>
<div class="output-section hidden" id="outputSection">
<label for="qrOutput">Base64 TLV String</label>
<textarea id="qrOutput" readonly></textarea>
<button id="copyBtn" class="secondary-btn">Copy to Clipboard</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>