forked from Ovilia/lipstick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
123 lines (106 loc) · 2.91 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>口红颜色可视化</title>
<style>
body, html {
padding: 0;
margin: 0;
}
canvas, #zr {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
#ui {
display: none;
position: absolute;
top: 0;
left: 0;
padding: 10px 20px;
}
#info {
position: absolute;
right: 10px;
bottom: 10px;
}
#link {
text-align: right;
}
#link a {
display: inline-block;
margin-right: 5px;
color: #DB9BAC;
font-size: 14px;
}
h1 {
margin: 0;
font-size: 22px;
color: #D4597B;
}
h2 {
margin: 0;
font-size: 16px;
color: #555;
}
h3 {
margin: 3px 0;
font-size: 25px;
color: #D53D49;
}
.series-color {
display: inline-block;
width: 12px;
height: 12px;
border: 2px solid white;
margin-right: 3px;
}
.series-color.active {
width: 20px;
height: 20px;
}
</style>
</head>
<body onload="init()">
<canvas id="bg"></canvas>
<div id="zr"></div>
<div id="ui">
<h2>
<span id="brand-name"></span><span id="series-name"></span>
</h2>
<div id="series-colors"></div>
<h3 id="lipstick-info">
#<span id="lipstick-id"></span> <span id="lipstick-name"></span>
</h3>
</div>
<div id="info">
<h1>口红颜色可视化</h1>
<div id="link">
<a href="https://github.com/Ovilia/lipstick">GitHub</a>
<a href="http://zhangwenli.com">作者:@羡辙</a>
</div>
</div>
<!-- <script src="node_modules/tinycolor2/tinycolor.js"></script>
<script src="node_modules/zepto/dist/zepto.js"></script>
<script src="node_modules/zrender/dist/zrender.js"></script> -->
<script src="dist/lib/tinycolor-min.js"></script>
<script src="dist/lib/zepto.min.js"></script>
<script src="dist/lib/zrender.min.js"></script>
<!-- <script src="src/index.js"></script> -->
<script src="dist/index-min.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?dcee78e565eeaedc76defba5d096b344";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>