-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (49 loc) · 2.1 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
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<title>Calcolo del codice fiscale</title>
<link rel="stylesheet" href="./styles/style.css">
<script src="main.js"></script>
<script src="data/italia.json" type="application/json"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="shortcut icon" href="./data/img/cf.png" type="image/x-icon">
</head>
<body>
<h1>Calcolo del codice Fiscale</h1>
<form id="form">
<h3>Compila i campi sottostanti per calcolare il tuo codice fiscale!</h3>
<label for="surname">Cognome</label>
<input type="text" id="surname" class="textinput">
<label for="name">Nome</label>
<input type="text" id="name" class="textinput">
<label for="sex">Sesso</label>
<select id="sex">
<option>Maschio</option>
<option>Femmina</option>
</select>
<label for="birthplace">Luogo di Nascita o Stato, se estero</label>
<input type="text" id="birthplace" class="textinputcap">
<label for="provincia">Provincia (Sigla), o EE se estero</label>
<input type="text" id="provincia" class="textinput" title="Se si è nati all'estero, inserire EE">
<label for="birthday">Data di Nascita</label>
<input type="date" id="birthday">
<input type="button" id="invio" value="Elabora" onclick="calcola(
document.getElementById('surname').value.toUpperCase(),
document.getElementById('name').value.toUpperCase(),
document.getElementById('sex').value.toString(),
document.getElementById('birthplace').value,
document.getElementById('provincia').value.toUpperCase(),
document.getElementById('birthday').value.toString())">
</form>
<div id="invalid">
<h2>Attenzione! Per poter calcolare il codice fiscale è necessario che tutti i campi siano compilati correttamente!</h2>
<button class="ritenta" onclick="ritenta()">Ritenta</button>
</div>
<div id="result">
<h3>Il tuo codice fiscale è:</h3>
<h4 id="cf"></h4>
<button class="ritenta" onclick="ritenta()">Calcola un nuovo Codice</button>
</div>
</body>
</html>