-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpopup.html
More file actions
48 lines (48 loc) · 1.42 KB
/
popup.html
File metadata and controls
48 lines (48 loc) · 1.42 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
<!DOCTYPE html>
<html>
<head>
<title>Toggle Extension</title>
<link rel="stylesheet" type="text/css" href="popup.css">
<script src="popup.js"></script>
</head>
<body>
<div id="mainPage">
<div class="header">
<div></div> <!-- Empty div for alignment -->
<label class="switch">
<input type="checkbox" id="toggleButton">
<span class="slider"></span>
</label>
<span id="settingsButton" class="cog">⚙</span> <!-- Unicode cog -->
</div>
<div class="options">
<div class="option">
<input type="radio" id="google" name="source" value="google">
<label for="google">Google</label>
</div>
<div class="option">
<input type="radio" id="gpt" name="source" value="gpt">
<label for="gpt">GPT</label>
</div>
<div class="option">
<input type="radio" id="text" name="source" value="text">
<label for="text">Selected Text</label>
</div>
</div>
</div>
<div id="settingsPage" class="hidden">
<div class="header">
<span id="backButton" class="back">←</span> <!-- Unicode left arrow -->
<div></div> <!-- Empty div for alignment -->
</div>
<div>
<label for="googleKey">Google Search API Key:</label>
<input type="text" id="googleKey">
</div>
<div>
<label for="gptKey">GPT API Key:</label>
<input type="text" id="gptKey">
</div>
</div>
</body>
</html>