forked from wbruno/boas-praticas-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (33 loc) · 1.22 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript - Boas Práticas e Otimizações</title>
<script src="//polyfill.io"></script>
<style>
#btns input { width: 40px; height: 40px; }
.black { background-color: black; }
.blue { background-color: blue; }
.red { background-color: red; }
.yellow { background-color: yellow; }
.pink { background-color: pink; }
.white { background-color: white; }
.green { background-color: green; }
.gray { background-color: gray; }
</style>
</head>
<body class="home wordpress">
<fieldset id="btns">
<input type="button" name="changecolor" data-class="black" class="black" />
<input type="button" name="changecolor" data-class="blue" class="blue" />
<input type="button" name="changecolor" data-class="red" class="red" />
<input type="button" name="changecolor" data-class="yellow" class="yellow" />
<input type="button" name="changecolor" data-class="pink" class="pink" />
<input type="button" name="changecolor" data-class="white" class="white" />
<input type="button" name="changecolor" data-class="green" class="green" />
<input type="button" name="changecolor" data-class="gray" class="gray" />
</fieldset>
<p>click me</p>
<script src="paleta.js"></script>
</body>
</html>