-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
119 lines (103 loc) · 2.36 KB
/
popup.html
File metadata and controls
119 lines (103 loc) · 2.36 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
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html>
<head>
<title>AI Summary</title>
<style>
body {
font-family: Arial, sans-serif;
min-width: 500px;
min-height: 300px;
padding: 15px;
}
h2 {
color: #333;
margin-bottom: 15px;
}
.options {
display: flex;
gap: 10px;
margin-bottom: 15px;
}
button {
padding: 8px 15px;
background-color: #4285f4;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
}
button:hover {
background-color: #3367d6;
}
#copy-btn {
background-color: #34a853;
}
#copy-btn:hover {
background-color: #2e8b57;
}
#summary-type {
padding: 8px;
border-radius: 4px;
border: 1px solid #ddd;
}
#result {
margin-top: 15px;
padding: 15px;
border: 1px solid #ddd;
border-radius: 4px;
min-height: 150px;
max-height: 400px;
overflow-y: auto;
white-space: pre-wrap;
line-height: 1.5;
}
#result ul {
padding-left: 20px;
}
#result li {
margin-bottom: 10px;
}
.loading {
display: flex;
justify-content: center;
align-items: center;
height: 150px;
}
.loader {
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
width: 30px;
height: 30px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<h2>AI Summary</h2>
<div class="options">
<select id="summary-type">
<option value="brief">Brief Summary</option>
<option value="detailed">Detailed Summary</option>
<option value="bullets">Bullet Points</option>
</select>
<button id="summarize">Summarize This Page</button>
<button id="copy-btn">Copy Summary</button>
</div>
<div id="result">
Select a summary type and click 'Summarize This Page' to generate a
summary.
</div>
<script src="config.js"></script>
<script src="popup.js"></script>
</body>
</html>