-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
204 lines (182 loc) · 8.83 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<title>DucThanh Pick - Tự động hóa Liên Minh Huyền Thoại</title>
<meta name="description" content="DucThanh Pick - Phần mềm tự động pick, tự động chấp nhận trận đấu và chat trong lúc pick tướng với tốc độ chưa đến 1s">
<meta name="author" content="JT Soft - DucThanh IT Corp">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link href="/frontend/css/jtech.css" rel="stylesheet" />
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link rel="shortcut icon" href="/frontend/images/main.jpg">
<style>
.tall-row {
margin-top: 40px;
}
.modal {
position: relative;
top: auto;
right: auto;
left: auto;
bottom: auto;
z-index: 1;
display: block;
}
.gradient-border {
--borderWidth: 3px;
position: relative;
border-radius: var(--borderWidth);
}
.gradient-border:after {
content: '';
position: absolute;
top: calc(-1 * var(--borderWidth));
left: calc(-1 * var(--borderWidth));
height: calc(100% + var(--borderWidth) * 2);
width: calc(100% + var(--borderWidth) * 2);
background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
border-radius: calc(2 * var(--borderWidth));
z-index: -1;
animation: animatedgradient 3s ease alternate infinite;
background-size: 300% 300%;
}
@keyframes animatedgradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="container" style="text-align: center;">
<a href="https://jzontech.asia">
<img src="/frontend/images/logo.png" style="width: 50%;margin-top: 5px;">
</a>
</div>
</div>
</nav>
<div class="container">
<!-- Jumbotron -->
<div class="jumbotron">
<div class="row">
<div class="col-lg-8">
<h1>DucThanh Pick</h1>
<p style="color: grey; font-size: 15px;">Phần mềm tự động pick, tự động chấp nhận trận đấu và chat trong lúc pick tướng với tốc độ chưa đến 1s</p>
<p>
<a class="btn btn-lg btn-primary" href="https://github.com/phamducthanh-jtech/ducthanhpick/blob/main/DucThanhPick_2.0.zip?raw=true" role="button" style="border-radius: 15px;">TẢI VỀ <i class="fas fa-cloud-download-alt"></i></a>
<a class="btn btn-warning">Phiên bản mới nhất: <span id="lastest_version"><i class="fas fa-spinner fa-pulse"></span></i></a>
</p>
<div class="alert alert-warning" id="nofication">
Đang tải dữ liệu...
</div>
</div>
<div class="col-lg-4" id="img_holder">
<h4 class="text-center">ĐANG TẢI ẢNH...</h4>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6" style="margin: 0 auto; float: none; margin-bottom: 10px;">
<div class="jumbotron gradient-border">
<h3 style="margin-top: -10px; margin-bottom: 25px; text-align: center; font-weight: bold; font-style: italic;" class="text-warning">TOP 10 TƯỚNG PICK NHIỀU NHẤT</h3>
<table class="table table-striped table-hover" style="border: 1px solid black;">
<thead>
<tr style="text-align: center !important;">
<th style="width: 50%;">TÊN TƯỚNG</th>
<th style="width: 50%; text-align: center !important;">SỐ LẦN PICK</th>
</tr>
</thead>
<tbody id="data_champions">
<tr>
<td colspan="2">Đang tải dữ liệu xếp hạng...</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row tall-row">
<div class="col-md-12">
<p>Developed by <a href="https://jzontech.asia">JzonTech</a>. © 2021</p>
</div>
</div>
</div>
<script src="https:////maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script>
function rand_str(length) {
var result = '';
var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var charactersLength = characters.length;
for ( var i = 0; i < length; i++ ) {
result += characters.charAt(Math.floor(Math.random() *
charactersLength));
}
return result;
}
$(function(){
$.ajax({
type: "GET",
url: "https://ducthanhpick-files.herokuapp.com/files/version.php",
dataType: "text",
success: function (ver) {
$("#lastest_version").addClass('badge').html(ver)
$("#img_holder").html('<img src="/frontend/version_images/' + ver + '.png" width="100%">')
$.ajax({
type: "GET",
url: "http://ducthanhpick-files.herokuapp.com/files/nofication.php?version=" + ver,
dataType: "text",
success: function (nof) {
var ok__ = nof.replaceAll('\n', '<br>');
$("#nofication").html(ok__)
}
});
}
});
$.ajax({
type: "GET",
url: "https://ducthanhpick-files.herokuapp.com/api/top-picked.php",
dataType: "text",
success: function (data) {
$("#data_champions").html('')
var obj = JSON.parse(data)
var line = obj['data']
var len = objectLength(line)
var final = 0;
if(len >= 10) {
final = 10;
}else{
final = len;
}
for (let i = 0; i < final; i++) {
var name = line[i]['name'];
var times = line[i]['times'];
var icon = line[i]['icon'];
var element = '<tr><td><img src="' + icon + '" style="width: 10%; border-radius: 100%;"> <span class="text-warning">' + name + '</span> </td><td style="text-align: center !important;"> <b style="color: white;">' + times + '</b> </td></tr>';
$("#data_champions").append(element)
}
}
});
})
function objectLength(obj) {
var result = 0;
for(var prop in obj) {
if (obj.hasOwnProperty(prop)) {
result++;
}
}
return result;
}
</script>
</body>
</html>