-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
232 lines (228 loc) · 8.25 KB
/
index.html
File metadata and controls
232 lines (228 loc) · 8.25 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!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>H-list</title>
<link rel="shortcut icon" href="./favicon.ico" />
<link rel="stylesheet" type="text/css" href="./src/assets/sass/main.css" />
<link
rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/styles/agate.min.css"
/>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/HTMLhead/H-list-ui/dist/listUi.min.js"></script>
<!-- <script src="./dist/listUi.js"></script> -->
<script>
hljs.initHighlightingOnLoad();
</script>
</head>
<body>
<header class="header-fixed">
<a href="./">
<img class="header-fixed-logo" src="./src/assets/img/logo.png" alt="logo" />
</a>
<div class="header-fixed-container">
<a href="#carousel" class="header-link">Carousel</a>
<a href="#grid" class="header-link">Grid</a>
<a href="https://github.com/HTMLhead/H-list-ui" class="header-link">Github</a>
</div>
</header>
<header class="header">
<div class="header-content">
<a href="./" class="header-logo-container">
<img class="header-logo" src="./src/assets/img/logo.png" alt="logo" />
<div class="header-logo-text">
H-LIST
</div>
</a>
<div class="header-link-container">
<a href="#carousel" class="header-link">Carousel</a>
<a href="#grid" class="header-link">Grid</a>
<a href="https://github.com/HTMLhead/H-list-ui" class="header-link">Github</a>
</div>
</div>
</header>
<div class="masthead">
<ul class="introduce">
<ul class="introduce-title-container">
<li class="introduce-title">Light & Simple</li>
<li class="introduce-title">KeyPress ListUi</li>
</ul>
<li class="introduce-word">only pure javascript</li>
<li class="introduce-word">20KB light Weight</li>
<li class="introduce-word">simple customize</li>
<li class="introduce-word">fast animation</li>
</ul>
</div>
<hr class="line" id="carousel"></hr>
<div class="example-title">Carousel</div>
<div class="h-list-container">
<div id="h-list"></div>
<div class="code-container">
<pre class="code-pre">
<code class="plaintext">listUi.createList({
type: "typeA",
domElement: "#h-list",
data: {
titleArr: titleArray,
descriptionArr: descArray,
linkArr: linkArray,
thumbnailArr: thumbnailArray,
},
style: {
container: {
width: "500",
height: "200",
},
content: {
width: "150",
height: "200",
},
title: {
fontSize: "0.8rem",
bold: true,
},
description: {
fontSize: "0.3rem",
},
border: {
size: "1",
color: "#fff",
},
selector: {
color: "#008000",
opacity: "0.3",
},
},
});
</code>
</pre>
</div>
</div>
<hr class="line" id="grid"></hr>
<div class="example-title">Grid</div>
<div class="h-list-grid-container">
<div id="h-list-grid"></div>
<div class="code-container">
<pre class="code-pre">
<code class="plaintext">listUi.createList({
type: "typeB",
domElement: "#h-list-grid",
data: {
titleArr: titleArray,
descriptionArr: descArray,
linkArr: linkArray,
thumbnailArr: thumbnailArray,
},
style: {
container: {
width: "auto",
height: "500",
column: "5",
},
content: {
width: "150",
height: "200",
},
title: {
fontSize: "0.8rem",
bold: true,
},
description: {
fontSize: "0.3rem",
},
border: {
size: "1",
color: "#fff",
},
selector: {
color: "#008000",
opacity: "0.3",
},
},
});
</code>
</pre>
</div>
</div>
<div class="data-container">
<hr class="line" id="mock"></hr>
<div class="example-title">Mock Data</div>
<div class="code-container">
<pre class="code-pre">
<code class="plaintext">const titleArray = [
"네이버",
"네이버 지도",
"네이버 웹툰",
"네이버 클라우드",
"네이버 카페",
"네이버 사전",
"네이버",
"네이버 지도",
"네이버 웹툰",
"네이버 클라우드",
"네이버 카페",
"네이버 사전",
];
const thumbnailArray = [
"https://yt3.ggpht.com/a/AGF-l7-5-hIaLpaYcO4KP1B30jcepRKfwrwli2suxA=s288-mo-c-c0xffffffff-rj-k-no",
"https://lh3.googleusercontent.com/yB6ePH3QA0EMU8qTqM5tOPtpZ8bZeIYhb9Oi2RHOy9YvK5fdxIlbN1H46QtdHNC_1g=s360-rw",
"https://lh3.googleusercontent.com/yEh_3Tn28fJWRW6q9GkiUjl6YKNHAllQLEeQ63gS4rF5hpobUbic0jq4bS6BfP80g1E=s360-rw",
"https://lh3.googleusercontent.com/vvIXRL_fK0t7jqS3neVowUSsWoopT39OgB-fUN26yDT3B0iN4krRjX4GxwASVEDv670=s360-rw",
"https://lh3.googleusercontent.com/Zt1Ac3OOTTTaSrro-Ji6ttmVHx3qrzUklYeCC3RxTScjWGEyZjlJkqJ8t58z0zWENJb_=s360-rw",
"https://lh3.googleusercontent.com/ytdLHA3Td0wOlW-e1exeUNVhrqyWXpbsb0MJVt8IjncgyTSwITJ6tsWUGsd2ulGLS1g=s360-rw",
"https://yt3.ggpht.com/a/AGF-l7-5-hIaLpaYcO4KP1B30jcepRKfwrwli2suxA=s288-mo-c-c0xffffffff-rj-k-no",
"https://lh3.googleusercontent.com/yB6ePH3QA0EMU8qTqM5tOPtpZ8bZeIYhb9Oi2RHOy9YvK5fdxIlbN1H46QtdHNC_1g=s360-rw",
"https://lh3.googleusercontent.com/yEh_3Tn28fJWRW6q9GkiUjl6YKNHAllQLEeQ63gS4rF5hpobUbic0jq4bS6BfP80g1E=s360-rw",
"https://lh3.googleusercontent.com/vvIXRL_fK0t7jqS3neVowUSsWoopT39OgB-fUN26yDT3B0iN4krRjX4GxwASVEDv670=s360-rw",
"https://lh3.googleusercontent.com/Zt1Ac3OOTTTaSrro-Ji6ttmVHx3qrzUklYeCC3RxTScjWGEyZjlJkqJ8t58z0zWENJb_=s360-rw",
"https://lh3.googleusercontent.com/ytdLHA3Td0wOlW-e1exeUNVhrqyWXpbsb0MJVt8IjncgyTSwITJ6tsWUGsd2ulGLS1g=s360-rw",
];
const linkArray = [
"https://www.naver.com",
"https://play.google.com/store/apps/details?id=com.nhn.android.nmap&hl=ko",
"https://play.google.com/store/apps/details?id=com.nhn.android.webtoon&hl=ko",
"https://play.google.com/store/apps/details?id=com.nhn.android.ndrive&hl=ko",
"https://play.google.com/store/apps/details?id=com.nhn.android.navercafe&hl=ko",
"https://play.google.com/store/apps/details?id=com.nhn.android.naverdic&hl=ko",
"https://www.naver.com",
"https://play.google.com/store/apps/details?id=com.nhn.android.nmap&hl=ko",
"https://play.google.com/store/apps/details?id=com.nhn.android.webtoon&hl=ko",
"https://play.google.com/store/apps/details?id=com.nhn.android.ndrive&hl=ko",
"https://play.google.com/store/apps/details?id=com.nhn.android.navercafe&hl=ko",
"https://play.google.com/store/apps/details?id=com.nhn.android.naverdic&hl=ko",
];
const descArray = [
"네이버 홈페이지로 이동",
"네이버 지도 앱 페이지로 이동",
"네이버 웹툰 앱 페이지로 이동",
"네이버 클라우드 앱 페이지로 이동",
"네이버 카페 앱 페이지로 이동",
"네이버 사전 앱 페이지로 이동",
"네이버 홈페이지로 이동",
"네이버 지도 앱 페이지로 이동",
"네이버 웹툰 앱 페이지로 이동",
"네이버 클라우드 앱 페이지로 이동",
"네이버 카페 앱 페이지로 이동",
"네이버 사전 앱 페이지로 이동",
];
</code>
</pre>
</div>
</div>
<footer class="footer">
<span class="footer-text">© 2019 <a class="footer-nickname-link" href="https://github.com/HTMLhead">HTMLhead</a> Template designed by: HTML5 UP.</span>
<span class="footer-text">Featured in Javascript</span>
</footer>
<script>
window.addEventListener("scroll", function() {
const fixedHeader = document.querySelector(".header-fixed");
if (window.scrollY >= 116) fixedHeader.style.display = "block";
else fixedHeader.style.display = "none";
});
</script>
<script src="./src/js/app.js" type="module"></script>
</body>
</html>