-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (49 loc) · 1.63 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>IE Midterm Project</title>
<link rel="stylesheet" href="styles/myStyles.css">
<script src="scripts/myScripts.js"></script>
<script src="scripts/CONST.js"></script>
</head>
<body>
<div class="grid-container">
<form name="collect-data" class="grid-item" >
<p class="Head-title">Mr. or Ms.?</p>
<label for="input-name">Name:</label>
<input id="input-name" type="text" name="name" value="" size="20" maxlength="255" pattern="^[A-Za-z\s]*$"/>
<br/>
<p>Choose gender: </p>
<input id="male" type="radio" name="gender" value="male"/>
<label for="male">Male</label>
<br/>
<input id="female" type="radio" name="gender" value="female"/>
<label for="female">Female</label>
<br/>
<br/>
<button id="submit-form" onclick="submit_func()" class="button">Submit</button>
<br/>
<br/>
<button id="save-form" onclick="save_func()" class="button">Save</button>
</form>
<div id="results" class="grid-item">
<div id="prediction">
<p class="Head-title">
Prediction:
</p>
<p id="predicted-gender"></p>
<p id="predicted-probability"></p>
</div>
<div id="saved">
<p class="Head-title">
Saved Answer:
</p>
<p id="saved-answer-text"></p>
<button id="clear-saved" onclick="clear_func()" class="button">Clear</button>
</div>
</div>
<div class="grid-item" id="pop-up-message"></div>
</div>
</body>
</html>