forked from jespitiaa/color-palette
-
Notifications
You must be signed in to change notification settings - Fork 305
/
index.html
65 lines (44 loc) · 1.25 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
<!DOCTYPE html>
<html>
<head>
<title> Awesome color palette generator </title>
<script src="script.js"></script>
<script src="colors.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<link href="styles.css" type="text/css" rel="stylesheet">
</head>
<body>
<div id ="colors-viewer">
<h2> Paleta de colores </h2>
<div id="color1" class="color-view">
Fondo página
</div>
<div id="color2" class="color-view">
Texto elementos
</div>
<div id="color3" class="color-view">
Borde elementos
</div>
<div id="color4" class="color-view">
Fondo elementos
</div>
<div id="color5" class="color-view">
Texto encabezado
</div>
</div>
<div id ="css-rules-div">
<h2> Reglas CSS</h2>
<textarea id="css-rules" class="rules">
.website-background{ color: #FFFFFF;}
.element-text{ color: #FFFFFF;}
.element-border{ border-color: #FFFFFF;}
.element-background{ background-color: #FFFFFF;}
.header{ color: #FFFFFF;}
</textarea>
</div>
<div id="actions">
<button id='generate' onclick="generateRules()"> Generar nueva paleta</button>
<button id='clean' onclick="clean()"> Limpiar paleta</button>
</div>
</body>
</html>