-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
160 lines (160 loc) · 4.81 KB
/
options.html
File metadata and controls
160 lines (160 loc) · 4.81 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AutoEZproxy options</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/options.css" />
</head>
<body>
<nav class="navbar navbar-expand-sm bg-body-tertiary">
<div class="container-fluid">
<span class="navbar-brand">
<img
src="icons/icon48.png"
alt="Logo"
width="24"
height="24"
class="d-inline-block align-text-top"
/>
AutoEZproxy
</span>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a
class="nav-link"
aria-current="page"
href="https://github.com/hamataku/AutoEZproxy"
>GitHub</a
>
</li>
</ul>
</div>
</div>
</nav>
<div class="container-sm mt-5">
<div class="row">
<div class="col-lg-5 col-12 mb-4">
<h3>Proxy Setting</h3>
<strong style="color: red" class="d-none" id="proxyError"
>Please select your proxy from the list.</strong
>
<input
type="text"
id="searchBox"
class="form-control mt-4"
placeholder="Search for a proxy..."
/>
<div class="list-container mt-3">
<ul class="list-group" id="proxyList"></ul>
</div>
<form class="mt-3">
<label for="customProxyInput" class="form-label"
>Custom Proxy URL
</label>
<input
type="url"
class="form-control"
id="customProxyInput"
aria-describedby="customProxyHelp"
/>
<div id="customProxyHelp" class="form-text">
You can use a custom EZproxy URL. The string $@ will be replaced
with the current URL. For example,
https://utokyo.idm.oclc.org/login?url=$@
</div>
</form>
</div>
<div class="col-lg-6 offset-lg-1 col-12">
<h3>Redirect rules</h3>
<form class="mt-4" id="proxy-form">
<div id="url-container"></div>
<button type="button" class="btn btn-primary me-2" id="addRule">
+ Add Rule
</button>
<button
type="button"
class="btn btn-outline-dark me-2"
id="importButton"
>
Import
</button>
<button
type="button"
class="btn btn-outline-dark me-2"
id="exportButton"
>
Export
</button>
<button
type="button"
class="btn btn-outline-dark"
data-bs-toggle="modal"
data-bs-target="#confirmationModal"
>
Reset to Default
</button>
<input
type="file"
id="importFile"
accept=".json"
style="display: none"
/>
</form>
</div>
</div>
</div>
<!-- Modal -->
<div
class="modal fade"
id="confirmationModal"
tabindex="-1"
aria-labelledby="exampleModalLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Confirmation</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
Are you sure you want to reset to default settings?
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-bs-dismiss="modal"
>
Cancel
</button>
<button type="button" class="btn btn-danger" id="resetButton">
Reset to Default
</button>
</div>
</div>
</div>
</div>
<script type="module" src="js/options.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>