-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathZAF's sitweb
More file actions
100 lines (77 loc) · 2.09 KB
/
ZAF's sitweb
File metadata and controls
100 lines (77 loc) · 2.09 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
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
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h1> Site internet de ZAF </h1>
<h2> Choses que vous trouverez dans ce site: </h2>
<ul>
<li>Des informations</li>
<li>Des cours</li>
<li>Des fiches de révision</li>
</ul>
<table>
<thead>
<tr>
<th> Propriétaire</th>
<th> Sources</th>
</tr>
</thead>
<tbody>
<tr>
<td>Carla</td>
<td>GitHub</td>
</tr>
</tbody>
</table>
<h2> Vos informations personnelles... </h2>
<fieldset>
<legend><b> Qui êtes-vous ? </b></legend>
<p></p>
<input type="name" id="nom" name="name" value="taper votre prénom" />
<p></p>
<legend> Selectionner votre age : </legend>
<form>
<select name="age" size="1">
<option>11-15
<option>16-17
<option>18 et +
</select>
</form>
<p></p>
<legend>Selectionner votre établissement</legend>
<div>
<input type="checkbox" id="NDG" name="NDG" value="Notre Dame Générale" checked>
<label for="NDG">Notre-Dame Général</label>
</div>
<div>
<input type="checkbox" id="NDP" name="NDP">
<label for="NDP">Notre-Dame Pro</label>
</div>
</fieldset>
<p></p>
<button> Valider </button>
<script>
var nom1 = document.getElementById("nom");
let b1=document.querySelector('button');
b1.addEventListener('click',function(){alert('Validation confirmée, merci '+nom1.value)})
</script>
<!--
<script>
function funi() {
var elt = document.getElementById("res");
console.log("Notre Dame Général" + nom1.checked);
}
var nom1 = document.getElementById("NDG");
var ND1 = document.getElementById("button");
ND1.addEventListener("click", funi);
var nom2 = document.getElementById("nom");
let b2=document.querySelector('button');
b2.addEventListener('click',function(){alert('Validation confirmée, merci '+nom2.value)})
</script>
-->
</body>
</html>