-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (50 loc) · 2.04 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
<!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">
<link rel="stylesheet" href="./resources/style.css">
<title>Luhn Algorithm Checker</title>
</head>
<body>
<header class="card">
<h1>Check if a series of numbers can pass the Luhn algorithm logic!</h1>
</header>
<section >
<div class="card text">
<h2>What is the Luhn Algorithm?</h2>
<p>The Luhn algorithm or Luhn formula, also known as the "modulus 10"
or "mod 10" algorithm, named after its creator, IBM scientist Hans Peter Luhn,
is a simple checksum formula used to validate a variety of identification numbers,
such as credit card numbers, IMEI numbers, National Provider Identifier numbers in the United States,
Canadian social insurance numbersamong others</p>
<p>Find more information about it <a href="https://en.wikipedia.org/wiki/Luhn_algorithm" target="_blank">here</a></p>
</div >
<div class="card text" id="buttons">
<h3>Examples of valid and invalid numbers:</h3>
<div>
<button id="valid">Valid Number Generator</button>
<button id="invalid">Invalid Number Generator</button>
</div>
</div>
</section>
<main>
<div id="results" class="card text">
<div id="number">
<h3>Your Number:</h3>
<input type="number" placeholder="Type only numbers" id="numberInput">
<div id="test">
<button id="testButton">Test!</button>
<button id="erase">Clear!</button>
</div>
</div>
<div>
<h3>Results:</h3>
<textarea disabled id="resultBox"></textarea>
</div>
</div>
</main>
<script src="./luhnChecker.js"> </script>
</body>
</html>