-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
88 lines (69 loc) · 2.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Steueridentifikationsnummer - Beispielgenerator</title>
<style>
body {
background: #415281;
color: #b9c8cd;
font-family: "Arial Black", sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 90vh;
}
h1 {
font-family: Arial, sans-serif;
}
#example-steuer-id {
margin-top: 10px;
font-size: 72pt;
font-weight: bold;
}
#new-id {
font-size: 24pt;
padding: 0.5em 0.7em;
border: none;
border-radius: 0.5em;
background: #c1c9df;
color: #283557;
cursor: pointer;
}
@media (max-width: 900px) {
#example-steuer-id {
font-size: 48pt;
}
}
footer {
margin-top: 3em;
}
a {
color: cornflowerblue;
}
a:visited {
color: #7969a9;
}
</style>
</head>
<body>
<h1>Steuerliche Identifikationsnummer (Beispiel)</h1>
<p id="example-steuer-id"></p>
<button id="new-id">Neu generieren</button>
<footer>
Von <a href="http://nikolassv.de" target="_blank">Nikolas Schmidt-Voigt</a>
- Git-Repository: <a href="https://github.com/nikolassv/steuerid-generator">https://github.com/nikolassv/steuerid-generator</a>
</footer>
<script src="steuerId.js"></script>
<script>
const element = document.getElementById('example-steuer-id');
document.getElementById('new-id').onclick = regenerate;
regenerate();
function regenerate() {
const digits = createSteuerIdDigits();
element.innerText = digits.join('');
}
</script>
</body>
</html>