-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (38 loc) · 1.44 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
<!DOCTYPE html>
<html>
<head>
<title>A dynamic and accessible form</title>
<meta name="author" content="Jyri Konttinen">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h2>Enter participants</h2>
<div id="formField">
<form class="column" onsubmit="return false" autocomplete="on">
<div class="row">
<label for="firstName">First name</label><br>
<input type="text" name="firstName" id="firstName" placeholder="Enter first name here" onkeydown="addInputByEnterKey(this)" />
</div>
<div class="row">
<label for="familyName">Family name</label><br>
<input type="text" name="familyName" id="familyName" placeholder="Enter family name here" onkeydown="addInputByEnterKey(this)" />
</div>
<div class="rowEnd" hidden>
<label for="deletePerson"></label><br>
<input class="material-icons" name="deletePerson" type="button" id="deletePerson" value="delete" onclick="deleteForm(this.parentElement)">
</div>
</form>
</div>
<div class="column">
<label for="addPerson"></label><br>
<input class="button" type="button" value="Add new participant" id="addPerson" onclick="addForm()"/>
</div>
<div class="column">
<label for="saveData"></label><br>
<input class="button" type="button" value="Save participants" id="saveData" onclick="saveData()"/>
</div>
<p id="savedData" hidden></p>
<script src="scripts.js"></script>
</body>
</html>