-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrast.html
130 lines (91 loc) · 4.15 KB
/
contrast.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!--
Add: close button on modal windows
Clear all button on the table UI
-->
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset="utf-8"/>
<title>Color Palette Contrast Tester</title>
<script type="text/javascript" src = "jdataview.js"></script>
<script type="text/javascript" src = "loadAse.js"></script>
<script type="text/javascript" src = "ase.js"></script>
<script type="text/javascript" src="contrast.js"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- MODAL WINDOWS -->
<div id = "add-color-modal" class = "modal-window">
<div class = "modal-label">Add a color</div>
<div id = "add-color-controls-container">
<div id = "rgb-container">
<div class="rgb-entry-form">
R
<input class="rgb-input" type="number" id="red" placeholder = "127">
</div>
<div class="rgb-entry-form">
G
<input class="rgb-input" type="number" id="green" placeholder = "127">
</div>
<div class="rgb-entry-form">
B
<input class="rgb-input" type="number" id="blue" placeholder = "127">
</div>
</div>
<div id = "hex-container">
<div class="hex-entry-form">
Hex #
<input class="hex-input" type="text" id="hex" placeholder = "7F7F7F">
</div>
</div>
<div id = "color-display"></div>
<div id = "add-color-cancel-button" class = "cancel-button">Cancel</div>
<div id = "add-color-confirm-button" class = "confirm-button">Add color</div>
</div>
</div>
<div id = "modify-color-modal" class = "modal-window">
<div class = "modal-label">Change color</div>
<table id = "selected-color-grid"></table>
<div id = "modify-controls-container">
<div id = "modify-color-display"></div>
<div id = "darker-button" class = "modify-color-button">
<div id = "left-arrow-label">Darker</div>
</div>
<div id = "lighter-button" class = "modify-color-button">
<div id = "right-arrow-label">Lighter</div>
</div>
<div id = "modify-color-cancel-button" class = "cancel-button">Cancel</div>
<div id = "modify-color-confirm-button" class = "confirm-button">Update color</div>
<div id = "delete-color-button">Remove this color</div>
<p id = "instructions">Hold down the shift key to darken or lighten in bigger steps.</p>
</div>
</div>
<div id = "transparency"></div>
<!-- TABLE -->
<h1>Color Palette Contrast Tester</h1>
<table id="buttons-container">
<tr>
<td class = "buttons-td">
<label id = "load-button" class = "load-save-button" >
<input id = "load-file-input" type = "file" />
Load ASE or CSV
</label>
</td>
<td class = "buttons-td">
<div id = "save-ase-button" class = "load-save-button" >
Save as ASE
</div>
</td>
<td class = "buttons-td">
<div id = "save-csv-button" class = "load-save-button">
Save as CSV
</div>
</td>
</tr>
</table>
<div id = "palette-container">
<table id = "palette-table">
</table>
</div>
</body>
</html>