show.ejs
13.8 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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
<meta name="keywords" content="GAME, SCORE, LOL, LEAGE OF LEGEND">
<meta name="description" content="ARE YOT TROLL?">
<title>TROLL GG</title>
<link rel="stylesheet" href="stylesheets/bootstrap.css">
<link rel="stylesheet" href="stylesheets/modal-video.min.css">
<link rel="stylesheet" href="stylesheets/style.css">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@700&display=swap" rel="stylesheet">
<style>
.navbar{
background-color: #2E9AFE !important;
}
.btn-primary{
color : white !important;
}
body{
background: #FAFAFA;
}
.column#caption {
position: relative;
}
.column#caption .text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10;
opacity: 0;
transition: all 0.8s ease;
}
.column#caption .text h1 {
margin: 0;
color: white;
}
.column#caption:hover .text {
opacity: 1;
}
.column#caption:hover img {
-webkit-filter: sepia(90%);
}
.column#caption {
position: relative;
}
.column#caption .text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10;
opacity: 0;
transition: all 0.8s ease;
}
.column#caption .text h1 {
margin: 0;
color: white;
}
.column#caption:hover .text {
opacity: 1;
}
.column#caption:hover img {
-webkit-filter: opacity(50%);
}
</style>
</head>
<body>
<style type="text/css">
hr.new4 {
border: 3px solid black;
}
img{
max-width: 100%;
height: auto !important;
}
footer { padding: 200px 0; text-align: center; background-color: #2E9AFE !important; color:white;
}
footerul li { display: inline; }
footerul a { font-size: 18px; margin: 0 15px; }
a:link { color: #513926; }
a:visited { color: #513926; }
a:hover { color: #7F593C; }
</style>
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="/"><img src="images/home.png" width="40" height="40" alt="">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<a class="navbar-brand" href="/"><strong>TROLL.GG</strong></a>
</div>
</nav>
</header>
<main class="container my-1 " >
<div class="pricing-header px-3 py-1 pt-md-3 pb-md-1 mx-auto text-center">
<%if(data[5]>16){%>
<h4 class="display-6 font-weight-bold" ><%=userid%>님은 에이스 입니다.</h4>
<%}%>
<%if(data[5]<10){%>
<h4 class="display-6 font-weight-bold" ><%=userid%>님은 트롤 입니다.</h4>
<%}%>
<%if(data[5]>=10&&data[5]<=16) {%>
<h4 class="display-6 font-weight-bold" ><%=userid%>님은 일반유저 입니다.</h4>
<%}%>
</div>
<hr class="my-3" style="color: white" >
<section id="examples" class="text-center" style="background-color: white">
<div class="row">
<div class="col-3">
<%if(data[6]==0){%>
<a href="#"data-toggle="modal" data-target="#ti" data-whatever="@mdo">
<img src="images/브론즈.png" class="card-img-top" alt="..." >
</a>
<tr></tr>
<div class="card-body">
<h5 class="card-title" style="color:#2E9AFE ">BRONZE</h5>
</div>
<%}%>
<%if(data[6]==1){%>
<a href="#"data-toggle="modal" data-target="#ti" data-whatever="@mdo">
<img src="images/실버.png" class="card-img-top" alt="..." >
</a>
<tr></tr>
<div class="card-body">
<h5 class="card-title" style="color:#2E9AFE ">SILVER</h5>
</div>
<%}%>
<%if(data[6]==2){%>
<a href="#"data-toggle="modal" data-target="#ti" data-whatever="@mdo">
<img src="images/골드.png" class="card-img-top" alt="..." >
</a>
<tr></tr>
<div class="card-body">
<h5 class="card-title" style="color:#2E9AFE ">GOLD</h5>
</div>
<%}%>
<%if(data[6]==3){%>
<a href="#"data-toggle="modal" data-target="#ti" data-whatever="@mdo">
<img src="images/다이아.png" class="card-img-top" alt="..." >
</a>
<tr></tr>
<div class="card-body">
<h5 class="card-title" style="color:#2E9AFE ">PLATINUM</h5>
</div>
<%}%>
<%if(data[6]==4){%>
<a href="#"data-toggle="modal" data-target="#ti" data-whatever="@mdo">
<img src="images/플레.png" class="card-img-top" alt="..." >
</a>
<tr></tr>
<div class="card-body">
<h5 class="card-title" style="color:#2E9AFE ">DIAMOND</h5>
</div>
<%}%>
<%if(data[6]==5){%>
<a href="#"data-toggle="modal" data-target="#ti" data-whatever="@mdo">
<img src="images/마스터.png" class="card-img-top" alt="..." >
</a>
<tr></tr>
<div class="card-body">
<h5 class="card-title" style="color:#2E9AFE ">MASTER</h5>
</div>
<%}%>
<%if(data[6]==6){%>
<a href="#"data-toggle="modal" data-target="#ti" data-whatever="@mdo">
<img src="images/그랜드마스터.png" class="card-img-top" alt="..." >
</a>
<tr></tr>
<div class="card-body">
<h5 class="card-title" style="color:#2E9AFE ">GRANDMASTER</h5>
</div>
<%}%>
<%if(data[6]==7){%>
<a href="#"data-toggle="modal" data-target="#ti" data-whatever="@mdo">
<img src="images/챌린저.png" class="card-img-top" alt="..." >
</a>
<tr></tr>
<div class="card-body">
<h5 class="card-title" style="color:#2E9AFE ">CHALLEGER</h5>
</div>
<%}%>
</div>
<div class="col-9">
<div class="row text-center">
<div class="col-4">
<img src="images/knife.png" width="80" height="80">
<hr class="my-3" >
<h5>KILL</h5>
<h5><%=data[0]%></h5>
</div>
<div class="col-4">
<img src="images/grave.png" width="80" height="80">
<hr class="my-3" >
<h5>DEATH</h5>
<h5><%=data[1]%></h5>
</div>
<div class="col-4">
<img src="images/shield.png"width="80" height="80">
<hr class="my-3" >
<h5>ASSIST</h5>
<h5><%=data[2]%></h5>
</div>
<hr class="my-3" style="color: white">
<div class="col-4">
<img src="images/candies.png"width="80" height="80">
<hr class="my-3" >
<h5>CS</h5>
<h5><%=data[3]%></h5>
</div>
<div class="col-4">
<img src="images/view.png"width="80" height="80">
<hr class="my-3" >
<h5>VIEW</h5>
<h5><%=data[4]%></h5>
</div>
<div class="col-4">
<img src="images/score.png"width="80" height="80">
<hr class="my-3" >
<h5>OP SCORE</h5>
<h5><%=data[5]%></h5>
</div>
</div>
</div>
</div>
</section>
<hr class="my-3" style="background-color: white">
<section id="carousel-3" class="text-center" style="background-color: white">
<div class="row">
<div class="col-6">
<div id="chartContainer" style="height: 370px; width: 100%;"></div>
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
</div>
<div class="col-6">
<div id="chartContainer2" style="height: 370px; width: 100%;"></div>
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
</div>
</div>
<hr class="my-3" style="color: white" >
<hr class="my-3" style="color: white" >
<hr class="my-3" style="color: white" >
<hr class="my-3" style="color: white" >
<hr class="my-3" >
</section>
<hr class="my-4" style="background-color: white">
<hr class="my-4" style="background-color: white">
<hr class="my-4" style="background-color: white">
<hr class="my-4" style="background-color: white">
<hr class="my-4" style="background-color: white">
</section>
</main>
<footer class="mastfoot mt-auto " id="foot">
</footer>
<div class="modal fade" id="ti" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">TI STEP</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body text-center">
<div class="row">
<div class="col-3">
<img src="images/브론즈.png"width="500" height="500">
</div>
<div class="col-3">
<img src="images/실버.png" width="150" height="150">
</div>
<div class="col-3">
<img src="images/골드.png" width="150" height="150">
</div>
<div class="col-3">
<img src="images/플레.png"width="150" height="150">
</div>
<div class="col-3">
<img src="images/다이아.png"width="150" height="150">
</div>
<div class="col-3">
<img src="images/마스터.png"width="150" height="150">
</div>
<div class="col-3">
<img src="images/그랜드마스터.png"width="150" height="150">
</div><div class="col-3">
<img src="images/챌린저.png"width="150" height="150">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary"data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="javascripts/bootstrap.js"></script>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/0.2.0/Chart.min.js"></script>
<script>
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
data: [{
type: "column",
showInLegend: true,
legendMarkerColor: "grey",
legendText: "IN GAME DATA",
dataPoints: [
{ y: Number(<%=data[0]%>), label: "kill" },
{ y: Number(<%=data[1]%>), label: "death" },
{ y: Number(<%=data[2]%>), label: "assist" },
]
}]
});
var chart1 = new CanvasJS.Chart("chartContainer2", {
animationEnabled: true,
theme: "light2", // "light1", "light2", "dark1", "dark2"
data: [{
type: "column",
showInLegend: true,
legendMarkerColor: "grey",
legendText: "IN GAME DATA",
dataPoints: [
{ y: Number(<%=data[3]%>), label: "cs" },
{ y: Number(<%=data[4]%>), label: "view" },
{ y: Number(<%=data[5]%>), label: "opscore" }
]
}]
});
chart.render();
chart1.render();
}
</script>
</body>
</html>