-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
75 lines (66 loc) · 1.56 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<title>Cookie Interceptor</title>
<style>
body {
font-family: sans-serif;
margin: 10px;
width: 300px;
font-size: 12px;
}
.container {
margin-bottom: 15px;
}
.code {
border-radius: 8px;
background-color: #eee;
font-family: monospace;
padding: 8px;
text-wrap: wrap;
overflow-x: auto;
}
.item {
display: flex;
flex-direction: row;
align-items: center;
column-gap: 4px;
margin-top: 4px;
}
input {
width: 100%;
box-sizing: border-box;
padding: 5px;
}
button {
cursor: pointer;
font-size: 12px;
}
</style>
</head>
<body><div id="app">
<div class="container">
<pre class="code" id="cookieStr">N/A</pre>
<div>Update at <span id="cookieTime"></span></div>
<div><span id="errorMsg"></span> <button id="syncBtn">Sync</button></div>
</div>
<div class="container">
<div class="item">
<label for="alistUrl">URL:</label>
<input type="url" id="alistUrl" placeholder="https://your-alist-backend.com">
</div>
<div class="item">
<label for="alistUsername">Username:</label>
<input type="text" id="alistUsername" placeholder="admin" value="admin">
</div>
<div class="item">
<label for="alistPassword">Password:</label>
<input type="password" id="alistPassword">
</div>
<button id="saveBtn">Save</button>
<div id="status" style="margin-top: 5px;"></div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>