forked from vaeho/Perplexity_Shortcut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.html
104 lines (103 loc) · 3.28 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Perplexity Shortcut - Settings</title>
<meta name="description"
content="Settings page for Perplexity Shortcut application.">
<meta name="keywords" content="Perplexity, Shortcut, Settings, Application">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
line-height: 1.6;
margin: 0;
padding: 20px;
transition: background-color 0.3s, color 0.3s;
}
body.dark-mode {
background-color: #131314;
color: #e0e0e0;
}
body.light-mode {
background-color: #f4f4f4;
color: #333;
}
.container {
max-width: 600px;
margin: auto;
padding: 30px;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s;
}
.dark-mode .container {
background: #1e1e1f;
}
.light-mode .container {
background: #ffffff;
}
h1 {
color: #20808D;
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 10px;
}
input[type="checkbox"], input[type="range"] {
margin-right: 10px;
}
button {
background-color: #20808D;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
margin-top: 20px;
transition: background-color 0.3s;
}
button:hover {
background-color: #1a6a74;
}
button:disabled {
background-color: #cccccc;
cursor: not-allowed;
}
#saveSettings.saved {
background-color: #4CAF50;
}
</style>
</head>
<body>
<div class="container">
<h1>Perplexity Shortcut Settings</h1>
<div class="setting-group">
<label>
<input type="checkbox" id="openInNewTab">
Open search results in a new tab
</label>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="darkMode">
Dark Mode
</label>
</div>
<div class="setting-group">
<label for="inputSize">Search Input Size:</label>
<input type="range" id="inputSize" min="300" max="800" step="50">
<span id="inputSizeValue"></span>px
</div>
<div class="setting-group">
<p>
Current shortcut: <span id="currentShortcut">Loading...</span>
</p>
<button id="changeShortcut">Change Shortcut</button>
</div>
<button id="saveSettings">Save Settings</button>
</div>
<script src="settings.js"></script>
</body>
</html>