-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
287 lines (274 loc) · 12.5 KB
/
Copy pathpopup.html
File metadata and controls
287 lines (274 loc) · 12.5 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
<!DOCTYPE html>
<html>
<head>
<title>AIO Del Browser Extension</title>
<style>
:root {
--primary: #3d2067;
--primary-light: #5e2f8e;
--accent: #a97ff7;
--bg: #f6f7fb;
--surface: #fff;
--border: #e5e5ef;
--success: #e6f6ed;
--success-text: #1a4e2b;
--error: #fbeaea;
--error-text: #a94442;
--info: #e8eafd;
--info-text: #31407a;
--shadow: 0 2px 12px rgba(61, 32, 103, 0.07);
}
html, body {
width: 350px;
min-width: 350px;
max-width: 350px;
height: 520px;
min-height: 520px;
max-height: 520px;
margin: 0;
padding: 0;
overflow: hidden;
background: var(--bg);
font-family: "Segoe UI", Arial, sans-serif;
color: #222;
}
h1 {
font-size: 21px;
color: var(--primary);
margin: 0 0 18px 0;
text-align: center;
font-weight: 700;
letter-spacing: 1px;
padding: 20px 0 0 0;
background: var(--surface);
border-radius: 0 0 18px 18px;
box-shadow: var(--shadow);
}
.tabs-scrollable {
display: flex;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
background: var(--surface);
border-radius: 12px 12px 0 0;
margin-top: 12px;
box-shadow: var(--shadow);
padding-top: 8px;
gap: 2px;
scrollbar-width: none;
-ms-overflow-style: none;
}
.tabs-scrollable::-webkit-scrollbar {
display: none;
}
.tab {
display: inline-block;
padding: 10px 22px;
cursor: pointer;
background: none;
border: none;
border-bottom: 2.5px solid transparent;
border-radius: 12px 12px 0 0;
color: var(--primary);
font-weight: 500;
font-size: 15px;
transition: background 0.15s, color 0.15s, border-color 0.15s;
outline: none;
user-select: none;
margin-right: 2px;
}
.tab.active {
background: var(--bg);
color: var(--primary);
border-bottom: 2.5px solid var(--accent);
box-shadow: 0 -2px 8px rgba(61, 32, 103, 0.03);
}
.tab:focus {
background: var(--info);
outline: 2px solid var(--accent);
}
.tab-content {
display: none;
padding: 18px 18px 0 18px;
background: var(--surface);
border-radius: 0 0 18px 18px;
box-shadow: var(--shadow);
margin-bottom: 16px;
height: 350px;
overflow-y: auto;
}
.tab-content.active {
display: block;
animation: fadeIn 0.2s;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px);}
to { opacity: 1; transform: translateY(0);}
}
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--primary); font-size: 14px; }
input[type="text"], input[type="password"], input[type="number"] {
width: 100%; padding: 9px 10px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 15px;
background: var(--bg); transition: border-color 0.18s, background 0.18s; box-sizing: border-box;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus {
border-color: var(--accent); background: var(--surface); outline: none;
}
button {
background-color: var(--primary); color: white; border: none; padding: 9px 18px; border-radius: 6px;
cursor: pointer; font-weight: 600; font-size: 15px; box-shadow: 0 2px 8px rgba(61,32,103,0.06);
transition: background 0.18s, box-shadow 0.18s; outline: none;
}
button:hover, button:focus {
background-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(61,32,103,0.10);
}
.button-group { display: flex; gap: 10px; margin-top: 10px; justify-content: center; }
.status { margin-top: 15px; padding: 10px; border-radius: 6px; font-size: 14px; font-weight: 500; box-shadow: 0 1px 4px rgba(61,32,103,0.04);}
.success { background-color: var(--success); color: var(--success-text);}
.error { background-color: var(--error); color: var(--error-text);}
.info { background-color: var(--info); color: var(--info-text);}
.announcements-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px;}
.announcements-header h2 { font-size: 15px; color: var(--primary); font-weight: 700; margin: 0; letter-spacing: 0.5px;}
.announcements-list { max-height: 300px; overflow-y: auto; border: 1.5px solid var(--border); border-radius: 7px; background: var(--bg); box-shadow: 0 1px 8px rgba(61,32,103,0.04);}
.announcement-item { padding: 11px 10px 9px 10px; border-bottom: 1px solid #ede9f7; cursor: pointer; transition: background-color 0.18s, box-shadow 0.18s; border-radius: 5px; margin: 0 2px; background: var(--surface); box-shadow: 0 0px 0px rgba(61,32,103,0.0); position: relative;}
.announcement-item:hover, .announcement-item:focus { background-color: #f1f0fa; box-shadow: 0 2px 8px rgba(61,32,103,0.06); outline: none;}
.announcement-title { font-weight: bold; margin-bottom: 3px; font-size: 15px; color: var(--primary); line-height: 1.3; letter-spacing: 0.1px;}
.announcement-meta { font-size: 12px; color: #666; margin-top: 1px;}
.loading, .no-items { text-align: center; padding: 24px 0; color: #666; font-size: 15px; font-style: italic;}
.refresh-btn { background-color: #2c8ed6; font-size: 14px; padding: 7px 16px; border-radius: 5px; box-shadow: none; margin-left: 6px; transition: background 0.15s;}
.refresh-btn:hover, .refresh-btn:focus { background-color: #2267a6; color: #fff;}
.view-all-container { text-align: center; margin-top: 12px; padding: 10px 0 0 0; border-top: 1px solid #eee;}
.btn { display: inline-block; padding: 7px 18px; margin-bottom: 0; font-size: 14px; font-weight: 500; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; border: 1px solid transparent; border-radius: 6px; transition: background 0.15s;}
.btn-primary { color: #fff; background-color: var(--primary); border-color: var(--primary-light);}
.btn-secondary { color: #333; background-color: #f8f9fa; border-color: #ddd;}
.btn:hover, .btn:focus { opacity: 0.97; outline: none;}
.loading { display: flex; align-items: center; justify-content: center; height: 90px;}
.loading:after { content: ""; display: block; width: 20px; height: 20px; margin: 8px; border-radius: 50%; border: 3px solid var(--accent); border-color: var(--accent) transparent var(--accent) transparent; animation: loading 1.2s linear infinite;}
@keyframes loading { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
</style>
</head>
<body>
<h1>All in One Del Helper</h1>
<div class="tabs-scrollable" id="tabs-scrollable">
<div class="tab active" data-tab="login" tabindex="0">Login</div>
<div class="tab" data-tab="announcements" tabindex="0">Pengumuman</div>
<div class="tab" data-tab="settings" tabindex="0">Pengaturan</div>
<div class="tab" data-tab="about" tabindex="0">About</div>
</div>
<!-- Login Tab -->
<div id="login-tab" class="tab-content active">
<div class="form-group">
<label for="username">Username:</label>
<input type="text" id="username" placeholder="Contoh: ifsxxxxx, elsxxxxx, issxxxxx" autocomplete="username">
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" id="password" placeholder="Masukkan password" autocomplete="current-password">
</div>
<div class="button-group">
<button id="login-btn">Login</button>
<button id="check-login-btn">Cek Status</button>
<button id="manual-login-btn">Login Manual</button>
</div>
<div id="login-status" class="status info">Masukkan username dan password CIS ITDel.</div>
</div>
<!-- Announcements Tab -->
<div id="announcements-tab" class="tab-content">
<div class="announcements-header">
<h2>Daftar Pengumuman</h2>
<button id="refresh-announcements-btn" class="refresh-btn">Refresh</button>
</div>
<div id="announcements-list" class="announcements-list">
<div class="loading">Memuat pengumuman...</div>
</div>
</div>
<!-- Settings Tab -->
<div id="settings-tab" class="tab-content">
<div class="form-group">
<label for="interval_check">Interval Cek (detik):</label>
<input type="number" id="interval_check" value="30" autocomplete="interval_check" min="30" step="1">
</div>
<div class="info">Pengaturan akan tersedia di sini.</div>
</div>
<!-- About Tab -->
<div id="about-tab" class="tab-content">
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%;">
<img src="icons/icon128.png" alt="AIO Del Helper Logo" style="width:64px; height:64px; margin-bottom: 14px; border-radius: 16px; box-shadow: 0 2px 8px rgba(61,32,103,0.10);">
<div style="font-size: 20px; font-weight: bold; color: #3d2067; margin-bottom: 6px; letter-spacing: 0.5px;">
All in One Del Helper
</div>
<div style="font-size: 14px; color: #555; margin-bottom: 7px;">
Versi <b>1.0</b> — <span style="color:#5e2f8e;">All in One Del Helper</span>
</div>
<div style="font-size: 13px; color: #444; text-align: center; margin-bottom: 12px; max-width: 260px;">
Ekstensi browser untuk membantu mahasiswa IT Del login otomatis, cek pengumuman, dan akses fitur CIS lebih cepat dan mudah.
</div>
<div style="font-size: 13px; color: #666; margin-bottom: 12px; text-align: center;">
Beberapa fitur akan diperbaharui secara berkala nantinya
</div>
<div style="font-size: 13px; color: #666; margin-bottom: 12px; text-align: center;">
Dibuat oleh <b>Theo Samuel Aritonang</b><br>
© 2025 Theo Samuel Aritonang
</div>
<a href="https://github.com/kangphp/AIO-Del-Browser-Extension" target="_blank" style="display:inline-block; text-decoration:none; margin-top:8px;">
<button class="btn btn-secondary" style="font-size:13px; padding: 7px 18px;">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/github/github-original.svg" alt="GitHub" style="width:17px; vertical-align:middle; margin-right:7px; opacity:0.7;">
Source Code & Support
</button>
</a>
</div>
</div>
<script>
// Tab switching
document.querySelectorAll('.tab').forEach(tab => {
tab.addEventListener('click', function() {
document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
this.classList.add('active');
const tabName = this.getAttribute('data-tab');
document.querySelectorAll('.tab-content').forEach(tc => tc.classList.remove('active'));
document.getElementById(tabName + '-tab').classList.add('active');
});
});
// Enable drag-to-scroll for horizontal tabs
const tabsScrollable = document.getElementById('tabs-scrollable');
let isDown = false, startX, scrollLeft;
tabsScrollable.addEventListener('mousedown', (e) => {
isDown = true;
tabsScrollable.classList.add('dragging');
startX = e.pageX - tabsScrollable.offsetLeft;
scrollLeft = tabsScrollable.scrollLeft;
});
tabsScrollable.addEventListener('mouseleave', () => {
isDown = false;
tabsScrollable.classList.remove('dragging');
});
tabsScrollable.addEventListener('mouseup', () => {
isDown = false;
tabsScrollable.classList.remove('dragging');
});
tabsScrollable.addEventListener('mousemove', (e) => {
if (!isDown) return;
e.preventDefault();
const x = e.pageX - tabsScrollable.offsetLeft;
const walk = (x - startX) * 1.5;
tabsScrollable.scrollLeft = scrollLeft - walk;
});
// Touch support
tabsScrollable.addEventListener('touchstart', (e) => {
isDown = true;
startX = e.touches[0].pageX - tabsScrollable.offsetLeft;
scrollLeft = tabsScrollable.scrollLeft;
});
tabsScrollable.addEventListener('touchend', () => {
isDown = false;
});
tabsScrollable.addEventListener('touchmove', (e) => {
if (!isDown) return;
const x = e.touches[0].pageX - tabsScrollable.offsetLeft;
const walk = (x - startX) * 1.5;
tabsScrollable.scrollLeft = scrollLeft - walk;
});
</script>
<script src="popup.js"></script>
</body>
</html>