-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (44 loc) · 1.24 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basics</title>
</head>
<body>
<h1>Basics</h1>
<p>test</p>
<hr>
<div id='sandbox'>
<h3>Function Expressions</h3>
<p id='content'></p>
<button type="submit" id="button">Click</button>
<input type="text" name="First Name" id="input1">
<input type="text" name="Last name" id="input2">
<button type="submit" id='button2'>Submit</button>
<p>Full name is:
<p id="output"></p>
</p>
</div>
<hr>
<div>
<h3>Switch</h3>
<input type="text" name="browser?" id="browser">
<p id="result"></p>
</div>
<hr>
<div>
<h3>Callbacks</h3>
<input type="button" value="Click" onclick="callbacks('do you confirm?', showTrue, showFalse)">
<p id="result-2"></p>
</div>
<hr>
<div>
<h3>Arrow Functions</h3>
<input type="number" name="A" id="in">
<input type="number" name="B" id="in-1">
<input type="button" value="Click" id="multiply" onclick="multiply()">
<p id="result-3"></p>
</div>
<script src="sandbox.js"></script>
</body>
</html>