-
Notifications
You must be signed in to change notification settings - Fork 15
/
options.html
52 lines (46 loc) · 1.7 KB
/
options.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<style>
body {
padding: 10px;
background-color: #ffffff;
color: #000000;
height: 100vh;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #202023;
color: #f9f9fa;
}
a {
color: #45a1ff;
}
}
</style>
</head>
<body>
<form id="ASH-form" onsubmit="return validateForm()" >
<label>Redirect Base URL</label>
<input type="url" id="defaultUrl" name="defaultUrl" placeholder="https://whereisscihub.now.sh/go/" style="width:75%" />
<div for="defaultUrl" id="defaultUrlError" style="display: none">
<label for="defaultUrl" style="color: red;">Invalid hostname.</label>
<p>
The value is not a valid url. Maybe try a scihub mirror or another instance of <a href="https://gitlab.com/Flockademic/whereisscihub">WhereIsSciHub</a> like:
<ul>
<li>https://sci-hub.se/</li>
<li>https://whereisscihub-rf7h2bfl8.now.sh/go/</li>
</ul>
You can also get a scihub url from where WISH fetch them: <a href="https://www.wikidata.org/wiki/Q21980377">on Wikidata</a>
</p>
<p>
If you think this is a valid url, please open an issue/bug report at:<br />
<a href="https://github.com/RoiArthurB/Side-Auto_Sci-Hub/issues">https://github.com/RoiArthurB/Side-Auto_Sci-Hub/issues</a>
</p>
</div>
<label for="defaultUrl" id="defaultUrlSaved" style="color: green; display: none;">Saved new default URL</label>
</form>
<script type="text/javascript" src="./options.js"></script>
</body>
</html>