Skip to content

Commit b65a7e2

Browse files
Site updated: 2017-11-16 17:10:33
1 parent 3052d6d commit b65a7e2

File tree

161 files changed

+10734
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+10734
-0
lines changed

Diff for: demos/colornamer/LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Harry Sun
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

Diff for: demos/colornamer/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ColorNamer
2+
Name a color
3+
4+
The color pick based on [colpick-jQuery-Color-Picker](https://github.com/josedvq/colpick-jQuery-Color-Picker)
5+
6+
Styles
7+
-------------------
8+
It looks like the followings
9+
10+
![ColorNamer-image-1](http://7tszla.com1.z0.glb.clouddn.com/ColorNamer/1.png)

Diff for: demos/colornamer/bower.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "ColorNamer",
3+
"version": "0.0.1",
4+
"homepage": "https://github.com/CraryPrimitiveMan/ColorNamer",
5+
"authors": [
6+
"Harry Sun <[email protected]>"
7+
],
8+
"description": "Name a color",
9+
"keywords": [
10+
"color",
11+
"name"
12+
],
13+
"license": "MIT",
14+
"ignore": [
15+
"**/.*",
16+
"node_modules",
17+
"lib",
18+
"test",
19+
"tests"
20+
],
21+
"dependencies": {
22+
"colpick": "2.0.2",
23+
"jquery": "2.1.3"
24+
}
25+
}

Diff for: demos/colornamer/css/colornamer.css

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
body {
2+
font-family: Arial, Helvetica, sans-serif;
3+
}
4+
.container {
5+
margin: 0 auto;
6+
width: 540px;
7+
}
8+
.title {
9+
font-size: 18px;
10+
text-align: center;
11+
padding: 10px;
12+
}
13+
.block-item {
14+
width: 75px;
15+
height: 75px;
16+
background: #ffffff;
17+
border: 1px solid rgb(143, 143, 143);
18+
margin-left: 15px;
19+
}
20+
.picker-container {
21+
position: relative;
22+
}
23+
.color-name-container {
24+
position: absolute;
25+
left: 355px;
26+
top: 0;
27+
color: rgb(85, 85, 85);
28+
font-size: 12px;
29+
line-height: 20px;
30+
}
31+
.colpick {
32+
width: 550px;
33+
}

Diff for: demos/colornamer/index.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<html>
2+
<head>
3+
<link rel="stylesheet" href="lib/colpick/css/colpick.css" type="text/css">
4+
<link rel="stylesheet" href="css/colornamer.css" type="text/css">
5+
<head/>
6+
<body>
7+
<div class="container">
8+
<div class="title">Color Namer</div>
9+
<div class="picker-container">
10+
<div id="picker"></div>
11+
<div class="color-name-container">
12+
<p>Color Name : <span id="colorname">White</span></p>
13+
<p>Similar Color : <span id="colorhex">#ffffff</span></p>
14+
<div class="block-item" id="similarcolor"></div>
15+
</div>
16+
</div>
17+
</div>
18+
19+
<script type="text/javascript" src="lib/jquery/dist/jquery.min.js"></script>
20+
<script type="text/javascript" src="lib/colpick/js/colpick.js"></script>
21+
<script type="text/javascript" src="js/colornamer.js"></script>
22+
<body/>
23+
<html/>

Diff for: demos/colornamer/js/colornamer.js

+46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)