-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (70 loc) · 4.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Malaysia TIN Validator</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<link href="styles.css" rel="stylesheet">
</head>
<body class="bg-light">
<div class="container py-5">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="card shadow-lg">
<div class="card-body">
<div class="text-center mb-4">
<div class="flag-container">
<img src="https://upload.wikimedia.org/wikipedia/commons/6/66/Flag_of_Malaysia.svg" alt="Malaysia Flag" class="flag img-fluid mb-3">
</div>
<h1 class="display-5 text-primary">Malaysia TIN Validator</h1>
</div>
<div class="input-group mb-3">
<input type="text" id="tinInput" class="form-control" placeholder="Enter TIN or NIRC number">
<button onclick="validateTIN()" class="btn btn-primary"><i class="fas fa-check"></i> Validate</button>
</div>
<div class="d-flex justify-content-between mb-3">
<button onclick="generateRandomTIN()" class="btn btn-secondary w-100 me-2"><i class="fas fa-random"></i> Generate Random TIN</button>
<button onclick="copyToClipboard()" class="btn btn-secondary w-100 ms-2"><i class="fas fa-copy"></i> Copy TIN</button>
</div>
<div id="result" class="alert d-none" role="alert"></div>
<div id="details" class="mt-3"></div>
<div class="mt-4">
<button class="btn btn-info w-100" type="button" data-bs-toggle="collapse" data-bs-target="#tinGuide" aria-expanded="false" aria-controls="tinGuide">
<i class="fas fa-info-circle"></i> TIN Format Guide
</button>
<div class="collapse mt-2" id="tinGuide">
<div class="card card-body">
<h5>TIN Format Guide:</h5>
<ul>
<li>Individual (New): IG + 10 digits</li>
<li>Individual (Old): SG/OG + 9 digits</li>
<li>Non-Individual (New): C/D/E/F + 10 digits</li>
<li>Non-Individual (Old): C/D/E/F + 9 digits</li>
<li>General TINs: EI + 10 digits</li>
</ul>
</div>
</div>
</div>
<div class="mt-4">
<h5>Validation History</h5>
<ul id="historyList" class="list-group"></ul>
</div>
<div class="mt-3">
<button onclick="exportHistory()" class="btn btn-success w-100"><i class="fas fa-file-export"></i> Export History</button>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="mt-auto py-3 bg-light">
<div class="container text-center">
<span class="text-muted">Contributed by Min Myat Oo ([email protected])</span>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="script.js"></script>
</body>
</html>