-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (77 loc) · 2.84 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Pallet selector</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<!--script src="https://code.jquery.com/jquery-1.12.0.min.js"></script-->
<script>window.jQuery || document.write('<script src="js/jquery-1.12.0.min.js"><\/script>')</script>
<script src="js/main.js"></script>
<script>
function down(){
var a = document.body.appendChild(
document.createElement("a")
);
a.download = "export.txt";
a.href = "data:text/plain;base64," + btoa(JSON.stringify(colArray));
a.innerHTML = "download example text";
}
</script>
</head>
<body>
<div class="saver"><a href = "javascript: document.write('data:text/plain;base64,'+btoa(JSON.stringify(colArray);">SAVE</a></div>
<div class="main-container">
<ul class="color-list">
<script> $c = "#"+get_color();
$colId++;
document.write("<li class=\"color\" style=\" background-color: " + $c + "; \">");
colArray = $c;
</script>
<div class="color-container">
<script>document.write("<input type=\"text\" class=\"color-code\" id="+$colId+ " value="+$c+ ">");
</script>
</div>
</li>
</ul>
</div>
<div class="footer">
<div class="cite">
jQuery Clone of <a href="http://www.palettable.io/">Palettable.io</a>
</div>
<div class="direction-block">
<div class="direction" id="dislike" onclick="keyDislike()">
<div class="key">D</div>
<div class="action">Dislike</div>
</div>
<div class="direction" id="space" onclick="keyChange()">
<div class="key"><space></div>
<div class="action">Change</div>
</div>
<div class="direction" id="like" onclick="keyLike()">
<div class="key">L</div>
<div class="action">Like</div>
</div>
</div>
<div class="author">
<a href="https://twitter.com/rohanOnly">@rohanOnly</a><br>
</> by <a href="http://www.rohanShewale.me">Rohan Shewale</a>
</div>
</div>
<!-- <script src="js/plugins.js"></script> -->
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-80924737-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>