-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
239 lines (198 loc) · 12.3 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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="resources/index.css" type="text/css" />
<link rel="stylesheet" href="resources/adminlte.min.css" type="text/css" />
<style>
.custom-swal-width {
width: 380px;
}
label{
display: block;
margin-bottom: 5px;
margin-top: 5px;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function() {
loadVoucherStoreContent();
});
function loadVoucherStoreContent() {
document.getElementById("login").classList.add("show");
document.getElementById("login").classList.add("active");
}
</script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const operHint = document.getElementById("oper-hint");
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.type === "childList" && operHint.innerText) {
Swal.fire({
title: "Notice",
text: operHint.innerText,
icon: "warning",
confirmButtonText: "OK",
}).then(() => {
setTimeout(() => {
}, 3000);
});
}
});
});
observer.observe(operHint, { childList: true });
});
</script>
<body class="portal">
<div>
<div class="wave"></div>
<div class="wave"></div>
</div>
<img class="mx-auto d-block img-fluid mt-2" src="resources/logo.png" style="width: 120px; height: auto; margin-bottom: 10px; border-radius: 5px;">
<div class="container">
<div class="row justify-content-center p-3">
<div class="card card-outline card-tabs" style="width: 480px; border-radius: 15px;">
<div class="card-header p-0 pt-1 border-bottom-0 ml-2">
<ul class="nav nav-tabs" id="klcis-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="login-tab" data-toggle="pill" href="#login" role="tab" aria-controls="login" aria-selected="true">Login</a>
</li>
<li class="nav-item">
<a class="nav-link" id="voucher-tab" data-toggle="pill" href="#voucher" role="tab" aria-controls="voucher" aria-selected="false">Voucher Store</a>
</li>
<li class="nav-item">
<a class="nav-link" id="transactions-tab" data-toggle="pill" href="#transactions" role="tab" aria-controls="transactions" aria-selected="false">Transaction Logs</a>
</li>
</ul>
</div>
<div class="card-body">
<div class="tab-content" id="klcis-tabContent">
<div class="tab-pane fade" id="login" role="tabpanel" aria-labelledby="login-tab">
<p class="text-center text-gray h6">Enter the voucher code and tap Login to begin.</p>
<div class="oper-section-outer">
<div class="oper-section-inner">
<span id="oper-hint" style="color: red; display: none;"></span>
<div id="hotspot-section">
<select id="hotspot-selector" class="oper-section-item" style="display:none;"></select>
</div>
<form id="login-form">
<div id="input-voucher">
<input id="voucherCode" class="oper-section-item input" name="voucherCode" type="text" placeholder="Voucher Code" />
</div>
<div id="input-user">
<input id="username" class="oper-section-item input" name="username" type="text" placeholder="Username"/>
</div>
<div id="input-password" class="user-input">
<input id="password" class="oper-section-item input" name="password" type="password" placeholder="Password"/>
</div>
<div id="input-simple">
<input id="simplePassword" class="password oper-section-item" name="simplePassword" type="password" placeholder="Password"/>
</div>
<div id="input-phone-num">
<span class="add">+</span><input id="country-code" class="input"><input id="phone-number" class="input" name="phone-number" type="text" placeholder="Phone Number"/>
</div>
<div id="input-verify-code">
<input id="verify-code" class="input" name="verify-code" type="text" placeholder="Verification Code"/><button id="get-code" class="button">Get Code</button>
</div>
<input name="clientMac" id="cMac" style="display:none"/>
<input name="radiusSvrIp" id="radiusServerIp" style="display:none"/>
</form>
<div id="button-area">
<button id="button-facebook" class="btn btn-block btn-success btn-shadow">Facebook</button>
<button id="button-login" class="btn btn-block btn-warning btn-lg text-white">LOGIN</button>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="voucher" role="tabpanel" aria-labelledby="voucher-tab">
<!-- <div class="text-center text-gray h4">KLCiS Voucher Store</div> -->
<form id="paymentForm" action="https://s2.klinternetservices.com/xendit/ewallet" method="GET">
<input type="hidden" class="form-control" id="method" name="method" value=""></input>
<div class="form-group mt-3">
<label class="text-muted text-sm" for="amountDropdown">Select promo:</label>
<select id="amountDropdown" name="amount" class="form-control text-lg btn-block">
<!--PAKI-EDIT NG VALUE SAKA DESCRIPTION BASE SA VOUCHER AMOUNT NA NAKA-UPLOAD SA IYONG KLCIS ACCOUNT -->
<option value="5">₱5.00 - 3 HOURS (no exp.|unli pause)</option>
<option value="10">₱10.00 - 7 HOURS (no exp.|unli pause)</option>
<option value="20">₱20.00 - 1 day (no exp.|unli pause)</option>
<option value="50">₱50.00 - 3 DAYS INTERNET</option>
<option value="100">₱100.00 - 7 DAYS INTERNET</option>
<option value="180">₱180.00 - 15 DAYS INTERNET</option>
<option value="300">₱300.00 - 30 DAYS INTERNET</option>
</select>
<!--PAKI-PALITAN ANG value="PUT_YOUR_KLCIS_API_KEY_HERE" ng iyong KLCiS API KEY-->
<input type="hidden" class="form-control" id="tokenInput" name="token" value="PUT_YOUR_KLCIS_API_KEY_HERE">
<label class="text-muted text-sm mt-1" for="numberInput">Mobile number for SMS notification:</label>
<input type="tel" id="numberInput" class="form-control text-center text-lg" style="width:100%; letter-spacing: 3px;" placeholder="e.g. 09912346789" name="number" pattern="[0]{1}[9]{1}[0-9]{9}" autocomplete="tel" required>
</div>
<button type="submit" class="btn btn-md btn-primary btn-block rounded-pill" id="gcash"><img src="resources/gcash_logo.png" style="height: 28px; width: 120px;"></button>
<button type="submit" class="btn btn-md btn-success btn-block rounded-pill" id="maya"><img src="resources/maya_logo.png" style="height: 25px; width: 80px;"></button>
<button type="submit" class="btn btn-md btn-warning btn-block rounded-pill" id="spay"><img src="resources/spay_logo.svg" style="height: 28px; width: 120px;"></button>
</form>
<div class="text-center">
<button class="btn btn-md btn-primary rounded-pill mt-2" id="generate_qr"><i class="fas fa-qrcode"></i> Generate QR</button>
</div>
<div id="qrcode" style="display: none;"></div>
</div>
<div class="tab-pane fade" id="transactions" role="tabpanel" aria-labelledby="transactions-tab">
<form id="checkNumberForm">
<div class="form-group">
<input type="text" name="getVouchers" id="getVouchers" value="vouchers" hidden></input>
<input type="text" name="getTransactions" id="getTransactions" value="transactions" hidden></input>
<label class="text-muted text-sm" for="numberSearch">Mobile number:</label>
<input type="tel" name="numberSearch" id="numberSearch" class="form-control text-center text-lg" style="width:100%; letter-spacing: 3px;" placeholder="e.g. 09912346789" pattern="[0]{1}[9]{1}[0-9]{9}" autocomplete="tel" required>
<label class="text-muted text-sm mt-1" for="key">KLCiS Client API Secret:</label>
<input type="password" name="key" id="key" class="form-control text-center text-lg" placeholder="KLCIS Client API Secret" required>
</div>
<button type="submit" id="checkVouchers" class="btn btn-md btn-success btn-block rounded-pill mb-2">Check Vouchers</button>
<button type="submit" id="checkTransactions" class="btn btn-md btn-primary btn-block rounded-pill mb-2">Check Transactions</button>
</form>
<div id="vouchersTable" style="display: none;">
<table class="table table-sm table-bordered table-fluid table-hover">
<thead>
<tr>
<th class="text-sm text-muted">Date</th>
<th class="text-sm text-center text-muted">Voucher</th>
<th class="text-sm text-center text-muted">Amount</th>
<th class="text-sm text-muted">Transaction Code</th>
</tr>
</thead>
<tbody id="vouchersTableBody">
</tbody>
</table>
</div>
<div id="transactionTable" style="display: none;">
<table class="table table-sm table-bordered table-hover">
<thead>
<tr>
<th class="text-sm text-muted">Date</th>
<th class="text-sm text-center text-muted">Status</th>
<th class="text-sm text-center text-muted">Amount</th>
<th class="text-sm text-center text-muted">Check Status</th>
</tr>
</thead>
<tbody id="transactionTableBody">
</tbody>
</table>
</div>
<div class="text-center text-xs text-muted" id="result"></div>
</div>
<hr>
<p class="text-muted text-sm mb-0 mt-0 text-center">No KLCiS client account? <br>
<a class="text-muted text-sm" href="https://s2.klinternetservices.com/client"><strong>CLICK HERE TO SIGN-UP!</strong></a>
</p>
</div>
</div>
</div>
</div>
</div>
<!-- END OF KLCIS VOUCHER SYSTEM CODE -->
<script src="resources/index.js"></script>
<script src="resources/qr.js"></script>
<script src="resources/jquery.min.js"></script>
<script src="resources/klcis.js"></script>
<script src="resources/alert.js"></script>
<script src="resources/bootstrap.bundle.min.js"></script>
<script src="resources/adminlte.min.js"></script>
</body>
</html>