-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndex.html
89 lines (69 loc) · 2.09 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!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">
<link rel="stylesheet" href="index.css">
<script src="script.js"></script>
<title>JS Study</title>
</head>
<body>
<!-- change text (hello/goodbye) -->
<div class="ex1 ex">
<h1>hello!</h1>
<button onclick="hello()">Hello/Goodbye</button>
</div>
<!-- counter -->
<div class="ex2 ex">
<h1>Counter</h1>
<h2 class="start">0</h2>
<button class="button2">Count</button>
</div>
<!-- change colors -->
<div class="ex3 ex">
<h1 id="color">color</h1>
<!-- dropdown -->
<select>
<option value="black">black</option>
<option value="orange">orange</option>
<option value="tomato">tomato</option>
<option value="pink">pink</option>
</select>
<!-- buttons -->
<button class="colorbutton" data-color="red">Red</button>
<button class="colorbutton" data-color="blue">Blue</button>
<button class="colorbutton" data-color="green">Green</button>
</div>
<!-- form with input -->
<div class="ex4 ex">
<h1>Name form</h1>
<form class="form4">
<input autofocus id="name" placeholder="name" type="text">
<input id="submit" type="submit">
</form>
</div>
<!-- task list -->
<div class="ex5 ex">
<h1>Tasks</h1>
<ul id="tasks">
</ul>
<form class="form5">
<input id="task">
<input id="submit2" type="submit">
</form>
</div>
<!-- currency with JSON -->
<div class="ex">
<h1>Currency</h1>
<div id="counter" >
<form id="form5">
<input type="text" id="currency" placeholder="Currency">
<input type="submit" value="Convert">
</form>
<div id="result">
</div>
</div>
</div>
</body>
</html>