-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
72 lines (58 loc) · 2.12 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
<html>
<head>
<link rel="stylesheet" href="css/colorpicker.css" type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" media="screen" type="text/css" href="css/layout.css" />
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Handlee">
<title>Cl.rs</title>
</head>
<body>
<h1><br>Click the circle to start!</h1>
<!-- <div class="circle"> </div> -->
<div id="colorSelector" width="566">
<div style="background-color: #7373bf"></div>
</div>
<!--
<script>
var c = document.getElementById("mainCircle");
var ctx = c.getContext("2d");
ctx.beginPath();
var circlePath = ctx.arc(95, 50,80, 0, 2 * Math.PI);
ctx.lineWidth = 0;
ctx.stroke();
</script>
-->
<!-- <button id="testAlg">Click me!</button> -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/colorpicker.js"></script>
<script type="text/javascript" src="js/eye.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/layout.js?ver=1.0.2"></script>
<script src="js/generateColors.js"></script>
<!-- ajax request code -->
<script type="text/javascript">
// function displayData(x) {
// x.success(function(data) {
// $.each(data, function(i, item){
// $('body').append(item);
// });
// });
// }
$(document).ready(function(){
$('#colorSelector').find('div').click(function(){
$('#colorSelector').find('div').focusout(function(){
var color = $('#colorSelector').find('div').css('background-color');
$('body').append(color);
});
});
// getPalettesFromFirstInput("CCCCCC");
// $('#testAlg').click(function() {
// getPalettesFromFirstInputForRandomAlg("CCCCCC");
// });
// $.each(secondaryColors, function(i, item){
// $('body').append(item);
// });
});
</script>
</body>
</html>