-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.html
73 lines (64 loc) · 2.19 KB
/
settings.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
<!DOCTYPE html>
<html>
<head>
<title>DuckDuckSocial</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
label {
display: block;
margin-bottom: 10px;
}
input {
width: 100%;
padding: 8px;
box-sizing: border-box;
margin-bottom: 20px;
}
.advanced-settings {
display: none;
}
button {
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
}
.dateConfigGroup {
display: flex;
justify-content: space-between;
}
</style>
</head>
<body>
<h1>DuckDuckSocial</h1>
<form id="settingsForm">
<label for="domain">Mastodon Compatible Domain:</label>
<input type="text" id="domain" name="domain" placeholder="mastodon.social">
<label for="numPosts">Number of posts to display:</label>
<input type="number" id="numPosts" name="numPosts" min="1" value="5" />
<div class="dateConfigGroup">
<label for="dateConfig">Date Configuration:</label>
<select id="dateConfig" name="dateConfig">
<option value="absolute">Absolute</option>
<option value="relative">Relative</option>
</select>
</div>
<div class="advanced-settings">
<label for="apiKey">API Key:</label>
<input type="password" id="apiKey" name="apiKey" placeholder="Enter your API key">
<!-- setting for list of words that will be dropped before performing search -->
<label for="dropWords">Words to drop:</label>
<input type="text" id="dropWords" name="dropWords" placeholder="Enter words separated by commas">
</div>
<button type="submit">Save Settings</button>
<button id="connectMastodon">Reconnect Mastodon</button>
<button type="button" id="toggleAdvancedSettings" class="toggle-button">Show Advanced Settings</button>
</form>
<p class="message"></p>
<script src="options.js"></script>
</body>
</html>