-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
121 lines (101 loc) · 2.16 KB
/
popup.html
File metadata and controls
121 lines (101 loc) · 2.16 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
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Summarizer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
min-width:500px;
min-height:300px;
padding:15px;
}
.container {
background: #ffffff;
border-radius: 12px;
padding: 40px 50px;
width: 100%;
max-width: 600px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
h2 {
color: #333;
margin-bottom: 20px;
}
.options {
display: flex;
gap: 10px;
margin-bottom: 15px;
}
select, button {
padding: 12px 20px;
font-size: 16px;
border: 2px solid #ccc;
border-radius: 8px;
background-color: #f9f9f9;
cursor: pointer;
transition: all 0.3s ease;
color: #333;
}
select:focus, button:focus {
outline: none;
border-color: #007bff;
}
button {
background-color: #007bff;
color: white;
border: none;
}
button:hover {
background-color: #0056b3;
}
#copy-btn {
background-color: #28a745;
}
#copy-btn:hover {
background-color: #218838;
}
#result {
background-color: #f8f9fa;
color: #555;
padding: 20px;
border-radius: 8px;
font-size: 16px;
margin-top: 20px;
min-height: 120px;
word-wrap: break-word;
white-space: pre-wrap;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border: 1px solid #ddd;
width: 100%;
}
button:active, #copy-btn:active {
transform: scale(0.98);
}
</style>
</head>
<body>
<h2>AI Summary</h2>
<div class="options">
<select id="summary-type">
<option value="brief">Brief</option>
<option value="detailed">Detailed</option>
<option value="bullets">Bullets</option>
</select>
<button id="summarize">Summarize</button>
<button id="copy-btn">Copy</button>
</div>
<pre id="result">Select a type and click Summarize...</pre>
<script src="popup.js"></script>
</body>
</html>