-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpopup.html
More file actions
74 lines (63 loc) · 2.55 KB
/
popup.html
File metadata and controls
74 lines (63 loc) · 2.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Smart Reply Generator</title>
<link rel="stylesheet" href="popup.css" />
</head>
<body>
<div class="tab-buttons">
<button id="generate-tab-btn" class="active">🧠 Generate</button>
<button id="settings-tab-btn" >⚙️ Settings</button>
</div>
<!-- 🧠 GENERATE TAB -->
<div id="generate-tab" class="tab-content">
<div class="container">
<h1>Smart Reply Generator</h1>
<form id="reply-form">
<label for="thread">Email / Message Thread</label>
<textarea id="thread" placeholder="Enter email or message thread..." required></textarea>
<label for="role">Your Role</label>
<select id="role" required>
<option value="Colleague">Colleague</option>
<option value="Manager">Manager</option>
<option value="Student">Student</option>
<option value="Employee">Employee</option>
<option value="Customer Support">Customer Support</option>
</select>
<label for="tone">Tone</label>
<select id="tone" required>
<option value="Friendly">Friendly</option>
<option value="Formal">Formal</option>
<option value="Polite">Polite</option>
<option value="Assertive">Assertive</option>
<option value="Casual">Casual</option>
</select>
<label for="mode">Mode</label>
<select id="mode" required>
<option value="generate">Generate Reply</option>
<option value="analyze">Analyze Reply</option>
<option value="both">Generate & Analyze</option>
</select>
<label for="new-message" id="new-message-label" class="hidden">New Message (for Analyze mode)</label>
<textarea id="new-message" placeholder="Enter student reply or new message..." class="hidden"></textarea>
<button type="submit" id="generate-btn">Generate Replies</button>
</form>
<div id="status" aria-live="polite"></div>
<div id="replies-container"></div>
</div>
</div>
<!-- ⚙️ SETTINGS TAB -->
<div id="settings-tab" class="tab-content hidden">
<div class="container">
<h2>🔑 API Key Settings</h2>
<label for="gemini-api-key">Gemini API Key:</label>
<input type="text" id="gemini-api-key" placeholder="Enter your Gemini API key" />
<button id="save-api-key">💾 Save</button>
<div id="api-status"></div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>