-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (33 loc) · 903 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Chef Steps</title>
<link rel="stylesheet" href="w3.css">
</head>
<body>
<div class="body-card">
<script src="src/challenge.js"></script>
<h1>Chef Steps Challenge</h1>
<form id="frm1" onsubmit="return run()">
<h4>Input Array</h4>
<input type="text" name="input_array"></br></br>
<button>Submit</button>
</form>
<h4>Result</h4>
<div class="large-container">
<h4 id="result" name="result_array"></h4>
</div>
<script>
function run() {
var challenge = new Challenge();
var element = document.getElementById("frm1");
var text = element[0].value;
document.getElementById("result").innerHTML = challenge.getFilteredList(text);
return false;
}
</script>
</div>
</body>
</html>