generated from jobtrek/ex-js-empty
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
72 lines (70 loc) · 2 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
62
63
64
65
66
67
68
69
70
71
72
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>JavaScript exercises</title>
</head>
<body>
<header>
<h1>JavaScript exercises</h1>
</header>
<main>
<!-- YOU DO NOT HAVE TO CHANGE ANYTHING IN THIS FILE !!! -->
<section id="manipulating-dom">
<h2>Manipulating DOM</h2>
<div>
<h3>Get element form dom and change his color</h3>
<p id="change-my-color">Change my color to red</p>
</div>
<div>
<h3>Create elements on DOM from JS</h3>
<div id="add-your-elements-in-this-element">
</div>
</div>
<div>
<h3>Create elements from list</h3>
<div id="add-list-here">
</div>
</div>
</section>
<section id="reacting-to-user-events">
<h2>Reacting to user events</h2>
<div>
<h3>React to click on the button</h3>
<button id="click-me">Click me</button>
</div>
<div>
<h3>React to enter key</h3>
<label for="write-some-text">Input write-some-text</label>
<input type="text" name="write-some-text" id="write-some-text">
</div>
<div>
<h3>React to change events</h3>
<label for="list-input">Add text to list : </label>
<input type="text" name="list-input" id="list-input">
<ul id="list">
</ul>
</div>
<div>
<h3>React to mouse movements</h3>
<p id="mouse-coordinates"></p>
</div>
<div>
<h3>React to focus, blur and input events</h3>
<label for="focus-me">Focus me :</label>
<input style="border-width: thick; border-color: #6495ed" type="text" name="focus-me" id="focus-me">
<label for="focus-me">A second label ! just for fun</label>
</div>
</section><section id="fetch-api">
<h2>Fetch API</h2>
<div>
<h3>Click and make a network request</h3>
<button id="click-to-fetch">Click me</button>
<pre id="display-here"></pre>
</div>
</section>
</main>
<script src="src/index.js" type="module"></script>
</body>
</html>