-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.html
More file actions
109 lines (103 loc) · 5.61 KB
/
settings.html
File metadata and controls
109 lines (103 loc) · 5.61 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Settings</title>
<link href="./static/css/settings.css" rel="stylesheet" type="text/css" />
<script src="./i18n/i18next-22.4.14/i18next.min.js"></script>
<script src="./i18n/i18next-xhr-backend-master/i18nextXHRBackend.min.js"></script>
</head>
<body>
<nav>
<div id="indicator"></div>
<a class="arrow" href="#display">Display</a>
<a class="arrow" href="#preferences">Preferences</a>
<a class="arrow" href="#background">Background</a>
<a class="arrow" href="#more">More</a>
<a class="arrow" href="#about">About</a>
</nav>
<header id="Setting" i18n="settings">Settings</header>
<div class="content">
<div id="display">
<h3 i18n="display">Display</h3>
<label for="language" i18n='language'>Language</label>
<select id="language">
<option value="en">English</option>
<option value="zh-CN">简体中文</option>
<option value="zh-HK">繁體中文</option>
</select>
</div>
<br>
<div id="preferences">
<h3 i18n="preferences">Preferences</h3>
<div>
<label for="search_engine" class="search_engine back" title="You can click to change the search engine" i18n="search_engine">Search engine</label>
<select id="search_engine" onchange="changePreferences(this.id,this.value)">
<option value="google">Google</option>
<option value="baidu">Baidu</option>
<option value="bing">Bing</option>
</select>
</div>
<div>
<label for="sug_select" title="suggested word" i18n="suggestions" i18n-type='{"title":"suggested_word"}'>Suggestions</label>
<select id="sug_select" title="You can click to change the source of the suggested word" i18n-type='{"title":"sug_select"}' onchange="changePreferences(this.id,this.value)">
<option value="google" i18n='Google'>Google</option>
<option value="baidu" i18n='Baidu'>Baidu</option>
<option value="bing" i18n='Bing'>Bing</option>
<option value="close" i18n='Close'>Close</option>
</select>
</div>
</div>
<br>
<div id="background">
<h3 i18n="background">Background</h3>
<div>
<label for="Opacity" i18n="opacity">Opacity</label>
<input id="Opacity" type="range" value="67" min="1" max="99" step="1" onchange="parent.setMask(this.value);">
<h4 i18n="mode">Mode</h4>
<label><input type="radio" name="mod" value="pic"><span i18n="pictures">Pictures</span></label>
<label><input type="radio" name="mod" value="vid"><span i18n="videos">Videos</span></label>
</div>
<div>
<h4 i18n="library">Library</h4>
<label for="input" class="upload-btn"><span i18n="update_tip" id="update_tip">Click to Select File</span></label>
<input id="input" type="file" accept="image/*, video/*" multiple>
<div class="library-list">
<ul id="file-list"></ul>
<ul id="video-list"></ul>
</div>
</div>
</div>
<br>
<div id="more">
<h3 i18n="more">More</h3>
<div>
<h4 i18n="weather">Weather</h4>
<label><input type="radio" name="weather" value="close" onclick="weather.setAttribute('disabled','disabled');weather.value=``;setWeather()"><span i18n="close">Close</span></label>
<label><input type="radio" name="weather" value="wttr.in" onclick="weather.setAttribute('disabled','disabled');weather.value=`https:\/\/wttr.in\/?format=3`;setWeather()">Wttr.in</label>
<label><input type="radio" name="weather" value="personalAPI" onclick="weather.removeAttribute('disabled');weather.value=``;setWeather()"><span i18n="other">Other</span></label><br>
<textarea id="weather" autocomplete="off" disabled onchange="setWeather()" spellcheck="false"></textarea>
</div>
<div>
<h4 i18n="icon">Icon</h4>
<label><input type="radio" name="icon" value="close" onclick="weather.setAttribute('disabled','disabled')"><span i18n="close">close</span></label>
<label><input type="radio" name="icon" value="auto" onclick="weather.setAttribute('disabled','disabled')"><span i18n="auto">Auto</span></label>
<label><input type="radio" name="icon" value="favicon" onclick="weather.setAttribute('disabled','disabled')">favicon.ico</label>
<label><input type="radio" name="icon" value="google" onclick="weather.setAttribute('disabled','disabled')">Google API</label><br>
</div>
<div>
<h4 i18n="Q">Quick Launch</h4>
<label><input type="radio" name="quick" onclick="preset('universal')"><span i18n="preset1">预设1</span></label>
<label><input type="radio" name="quick" onclick="preset('CN')" ><span i18n="preset2">预设2</span></label><br>
<textarea id="quick" autocomplete="off" onchange="saveQuick(this.value)" spellcheck="false"></textarea>
</div>
</div>
<br>
<div id="about">
<h3 i18n="about">About</h3>
<a href="https://github.com/ij369/1tab">Github</a>
</div>
</div>
<script src="./static/js/settings.js"></script>
</body>
</html>