-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
192 lines (180 loc) · 5.98 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html ng-app="colorMixer">
<head>
<title>Color mixer - la jmina skari</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" href="./css/style.css">
<script type="text/javascript" src="./js/ntc.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular.min.js"></script>
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/color/jquery.color-2.1.2.min.js"></script>
<script src="./js/main.js"></script>
</head>
<body class="container"><div class="col-sm-12">
<h1 class="text-center">Color mixer</h1>
<table class="color-table text-center" ng-controller="ColorMixerController as colorMix">
<thead>
<tr>
<th>Leftmost</th>
<th colspan="3">Resulting color</th>
<th>Rightmost</th>
</tr>
</thead>
<tbody>
<tr>
<td class="leftmost-color color {{ colorMix.result.leftmost.colorCss }}" rowspan="4"> </td>
<td
class="result-color"
colspan="3"
title="Resulting direct color"
style="
color: {{ colorMix.result.direct.colorCss }};
background-color: {{ colorMix.result.direct.rgbColor }}
"
>
<span>
Direct<br />
<span class="result-rgb-color">{{ colorMix.result.direct.rgbColor }}</span><br />
<span class="result-eng-color">{{ colorMix.result.direct.title }}</span>
</span>
</td>
<td class="rightmost-color color {{ colorMix.result.rightmost.colorCss }}" rowspan="4"> </td>
</tr>
<tr>
<td
class="result-vague-color"
style="
animation-name: {{ colorMix.result.rightmost.colorCss }};
background-color: {{ colorMix.result.direct.rgbColor }};
color: {{ colorMix.result.direct.colorCss }};
"
colspan="3"
title="Resulting vague color"
>
Vague
</td>
</tr>
<tr>
<td
class="result-vague-color text-right"
title="Resulting vague color"
style="
animation-name: {{ colorMix.result.rightmost.colorCss }};
background-color: {{ colorMix.result.direct.rgbColor }};
color: {{ colorMix.result.direct.colorCss }};
"
>
<span class="result-rgb-color">
{{ colorMix.result.direct.rgbColor }}
</span>
</td>
<td
class="result-vague-color"
title="Resulting vague color"
style="
animation-name: {{ colorMix.result.rightmost.colorCss }};
background-color: {{ colorMix.result.direct.rgbColor }};
color: {{ colorMix.result.direct.colorCss }};
"
><=></td>
<td
class="result-vague-color text-left"
title="Resulting vague color"
style="
animation-name: {{ colorMix.result.rightmost.colorCss }};
background-color: {{ colorMix.result.direct.rgbColor }};
color: {{ colorMix.result.direct.colorCss }};
"
>
<span class="rightmost-rgb-color">
{{ colorMix.result.rightmost.rgbColor }}
</span>
</td>
</tr>
<tr>
<td
class="result-vague-color text-right"
title="Resulting vague color"
style="
animation-name: {{ colorMix.result.rightmost.colorCss }};
background-color: {{ colorMix.result.direct.rgbColor }};
color: {{ colorMix.result.direct.colorCss }};
"
>
<span class="result-eng-color">
{{ colorMix.result.direct.title }}
</span>
</td>
<td
class="result-vague-color"
title="Resulting vague color"
style="
animation-name: {{ colorMix.result.rightmost.colorCss }};
background-color: {{ colorMix.result.direct.rgbColor }};
color: {{ colorMix.result.direct.colorCss }};
"
><=></td>
<td
class="result-vague-color text-left"
title="Resulting vague color"
style="
animation-name: {{ colorMix.result.rightmost.colorCss }};
background-color: {{ colorMix.result.direct.rgbColor }};
color: {{ colorMix.result.direct.colorCss }};
"
>
<span class="rightmost-eng-color">
{{ colorMix.result.rightmost.title }}
</span>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<th colspan="5">Append colors</td>
</tr>
<tr>
<td colspan="5">
<span
ng-repeat="color in colorMix.colors"
><br ng-if="color.newline"
/><a
href="#"
class="label color button badge {{ color.colorCss }}"
data-color="{{ color.colorCss }}"
data-color-hex="{{ color.colorHex }}"
title="{{ color.title }}"
ng-click="colorMix.append(this)"
>{{ color.lojbanText }}</a></span>
</td>
</tr>
<tr>
<th colspan="5">Resulting tanru</td>
</tr>
<tr>
<td colspan="5" class="tanru">
<span
ng-repeat="color in colorMix.tanru track by $index"
><a
href="#"
class="label color button badge {{ color.colorCss }}"
ng-click="colorMix.remove(this)"
data-color="{{ color.colorCss }}"
data-color-hex="{{ color.colorHex }}"
title="{{ color.title }}"
>{{ color.lojbanText }}</a><span ng-if="!$last">=></span></span>
</td>
</tr>
<tr>
<td colspan="5">Names provided by <em>Chirag Mehta</em> of <strong>Name that Color</strong> JavaScript library project</td>
</tr>
</tfoot>
</table>
</div>
</body>
</html>