-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (57 loc) · 2.21 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="src/styles.css">
<title>SH Code challenge</title>
<meta charset="UTF-8" />
</head>
<body>
<header>
<img alt="Streets Heaver" data-src="https://www.streets-heaver.com/wp-content/uploads/2021/02/Group-2.svg" class=" lazyloaded" src="https://www.streets-heaver.com/wp-content/uploads/2021/02/Group-2.svg">
<h1>Welcome to the challenge!</h1>
</header>
<h3>
Please read through the following carefully. We
<span class="red-text">don't</span> expect you to complete all tasks within the time.
<div>You have <span class="red-text">20 minutes</span> from opening this file to complete the tasks.</div>
</h3>
<article>
<h2>Task 1</h2>
<div>Convert the following patient name string into the following format: 'ROBINSON, Andy (Mr)':</div>
<b id="task1"></b>
<h2>Task 2</h2>
<div>
Add a NEW element of "OxyContin" to this array and then REMOVE the "Nexium" element from this array:
</div>
<b id="task2"></b>
<h2>Task 3</h2>
<div>
Style this list using only CSS as close to the image below as you can get:
</div>
<ul id="task3"></ul>
<img class="list-image" src="https://i.ibb.co/TkftnY7/list-Challenge.jpg"/>
<h2>Task 4</h2>
<div>
1) In the onButtonClick function, create an instance of the patient class with the patient data from the form below.
<div>2) Hook the save button up to output the values from the form data into element "task4":</div>
</div>
<section class="form">
<div class="form-item">
<label>Name:</label>
<input type="text" id="name" name="name"><br><br>
</div>
<div class="form-item">
<label>Age:</label>
<input type="text" id="age" name="age"><br><br>
</div>
<div class="form-item">
<label>Address:</label>
<input type="text" id="address" name="address"><br><br>
</div>
<button>Save</button>
</section>
<b id="task4"></b>
</article>
<script src="src/index.js"></script>
</body>
</html>