-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
153 lines (136 loc) · 5.29 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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>xkcd color picker</title>
<meta name="description"
content="a HTML color picker based on xkcd's color survey">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/bootstrap-responsive.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.6.1.min.js"></script>
</head>
<body>
<!--[if lt IE 7]><p class="chromeframe">Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
<div class="container">
<header class="masthead jumbotron">
<div class="inner">
<h1>xkcd color picker</h1>
<p>a HTML5 color picker based on
<a href="http://xkcd.com/">xkcd</a>'s
<a href="http://blog.xkcd.com/2010/05/03/color-survey-results/">
color survey
</a>
</p>
</div>
</header>
<div id="main">
<div id="colordisplay" class="colorbackground">
<div id="maincurrentcolor" class="currentcolor colorpreview"
style="background-color: #7f5f00;">
shit
</div>
</div>
<div id="colorcodes">
<span id="hexcode" class="label">#ff028d</span>
<span id="rgbcode" class="label">rgb(255, 2, 141)</span>
<span id="hslcode" class="label">hsl(327, 100%, 50%)</span>
</div>
<div id="colorselect" class="row-fluid">
<div id="params" class="well span4">
<fieldset class="control-group row-fluid">
<label>color name</label>
<input type="text" id="colorname" placeholder="color name"
value="shit"/>
</fieldset>
<fieldset class="control-group row-fluid rgb">
<label>rgb</label>
<input type="range" id="r" min="0" max="255" value="255" />
<input type="range" id="g" min="0" max="255" value="2" />
<input type="range" id="b" min="0" max="255" value="141" />
</fieldset>
<fieldset class="control-group row-fluid hsl">
<label>hsl</label>
<input type="range" id="h" min="0" max="359" value="327" />
<input type="range" id="s" min="0" max="100" value="100" />
<input type="range" id="l" min="0" max="100" value="50" />
</fieldset>
</div>
<section id="similarity" class="span8">
<div class="span6 tablecontainer">
<table id="similar-colors"
class="table table-bordered similarity-table">
<thead>
<tr><th>similar colors</th></tr>
</thead>
<tbody>
<tr>
<td class="preview-column">
<a href="#shit">
<div class="colorbackground">
<div class="colorpreview"
style="background-color: #7f5f00;"></div>
</div>
</a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="span6 tablecontainer">
<table id="dissimilar-colors"
class="table table-bordered similarity-table">
<thead>
<tr><th>dissimilar colors</th></tr>
</thead>
<tbody>
<tr>
<td class="preview-column">
<a href="#!/hot pink">
<div class="colorbackground">
<div class="colorpreview"
style="background-color: #ff028d;">
hot pink
</div>
</div>
</a>
</td>
</tr>
</tbody>
</table>
</div>
</section>
</div>
</div>
<footer class="footer">
<p>Made by <a href="http://martinble.ch/">Martin Blech</a> ジ</p>
</footer>
</div>
<!-- scripts concatenated and minified via build script -->
<script data-main="js/main.js" src="js/vendor/require-2.0.4.js"></script>
<!-- end scripts -->
<script>
Modernizr.load({
test: Modernizr.inputtypes.range,
nope: [
'js/vendor/fd-slider.min.js',
'css!js/vendor/fd-slider.min.css'
],
callback: function(url, testResult) {
// fd-slider loads automatically, nothing to do
}
});
</script>
<script>
var _gaq=[['_setAccount','UA-33887043-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>