-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·96 lines (82 loc) · 3.17 KB
/
Copy pathindex.html
File metadata and controls
executable file
·96 lines (82 loc) · 3.17 KB
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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Your ADA LOGO</title>
<meta name="description" content="Get the dominant color or color palette from an image.">
<meta name="author" content="Lokesh Dhakar">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Karla%7CMontserrat:700">
<link rel="stylesheet" href="examples/css/screen.css">
</head>
<body>
<section id="drag-drop" class="drag-drop-section">
<div class="container">
<h2>Drag and drop your image here</h2>
<div id="drop-zone" class="drop-zone">
<div class="drop-zone-label default-label">Drag an image here</div>
<div class="drop-zone-label dragging-label">Drop it!</div>
</div>
<div id="dragged-images" class="dragged-images"></div>
<h2>Result</h2>
<canvas id="myCanvas" width="256" height="256" style="border:1px solid #000000; display:inline-block;"></canvas><br>
<h2>ADD logo</h2>
<select id="aa" name="aa" class="button">
<option value ="">Please Select One</option>
<option value ="machineLearned">Machine learned best colour</option>
<option value ="blue">Blue</option>
<option value ="coffee">Coffee</option>
<option value ="cyanStone">cyanStone</option>
<option value ="greyWhite">greyWhite</option>
<option value ="Anonymous">Anonymous</option>
<option value="hehe">hehe</option>
<option value="izumi">izumi</option>
<option value="joy">joy</option>
<option value="lightpurple">lightpurple</option>
<option value="sakura">sakura</option>
<option value="tea">tea</option>
<option value="winnie">winnie</option>
</select>
</div>
</section>
<footer>
<div class="container">
<p>
Note: We do not support FireFox<br />
Created by UofTADA<br />
<a href="http://uoftada.com/" class="button button-minor">Follow us</a>
</p>
</div>
</footer>
<!-- Mustache templates -->
<script id='image-section-template' type='text/x-mustache'>
{{#images}}
<div class="image-section {{class}}">
<div class="image-wrap">
<button class="run-functions-button">
<span class="no-touch-label">Click</span>
<span class="touch-label">Tap</span>
</button>
<img class="target-image" src="{{file}}" />
</div>
<div class="color-thief-output"></div>
</div>
{{/images}}
</script>
<script id="color-thief-output-template" type="text/x-mustache">
<div class="function get-color">
<h3 class="function-title">Dominant Color</h3>
<div class="swatches">
<div class="swatch" style="background-color: rgb({{color.0}}, {{color.1}}, {{color.2}})"></div>
</div>
<!-- set canvas -->
<!-- set canvas -->
</div>
</script>
<script src="src/color-thief.js"></script>
<script src="examples/js/jquery.js"></script>
<script src="examples/js/mustache.js"></script>
<script src="examples/js/demo.js"></script>
</body>
</html>