-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (56 loc) · 2.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Internet Engineering Midterm Project">
<meta name="author" content="Amirhossein Alibakhshi">
<title>🤷♀️ Mr. or Ms.? 🤷♂️</title>
<link rel="stylesheet" href="src/styles/main.css" media="all">
<link rel="stylesheet" href="src/styles/content.css" media="all">
<link rel="stylesheet" href="src/styles/alert.css" media="all">
<script src="https://kit.fontawesome.com/2b752132bd.js" crossorigin="anonymous"></script>
</head>
<body>
<div id="container">
<div id="alert">test</div>
<div id="content-box">
<section>
<h2>Mr. or Ms.?</h2>
<form>
<div class="input-text-field">
<label for="name-input">Name:</label>
<input type="text"
id="name-input"
name="name-input"
oninput="checkSubmitButtonValidity()"
maxlength="255"
placeholder="Ex.: Hasan">
</div>
<input type="radio" id="male-radio" name="gender-input" value="male" onclick="checkSaveButtonValidity()">
<i class='fas fa-male'></i>
<label for="male-radio">Male</label><br>
<input type="radio" id="female-radio" name="gender-input" value="female" onclick="checkSaveButtonValidity()">
<i class='fas fa-female'></i>
<label for="female-radio">Female</label><br>
<button onclick="guessGender()" id="submit-button"> submit </button>
</form>
<button onclick="saveGender(textareaObject.value, predictionGender.innerText)" id="save-button"> save </button>
</section>
<section>
<h2>Prediction</h2>
<p id="prediction-gender" onchange="updateSavedAnswersSection()">-</p>
<p id="prediction-probability">-</p>
<h2 id="saved-answer-header">Saved Answer</h2>
<p id="saved-answer">-</p>
<button id="clear-saved-answer" onclick="clearSavedDate(textareaObject.value)">clear</button>
</section>
</div>
</div>
<script src="src/scripts/getPageElements.js"></script>
<script src="src/scripts/genderDetection.js"></script>
<script src="src/scripts/handlingSavedNames.js"></script>
<script src="src/scripts/alert.js"></script>
</body>
</html>