-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathaiarticlesum.html
More file actions
364 lines (286 loc) · 15.2 KB
/
aiarticlesum.html
File metadata and controls
364 lines (286 loc) · 15.2 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<!DOCTYPE html>
<html lang="en">
<head>
<title>AI Article Summary</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=ads_click" />
<link rel="stylesheet" href="aiarticlesum.css" />
</head>
<body id="summarizer-page">
<div class="container" style="max-height: 350px;">
<div class="new2">
<div class="new">
<i class="fa-brands fa-apple" style="color: #f7d204;"></i>
<div class="macicon" style="position: relative;">
<i id="close-btn" class="fa-solid fa-circle" style="color: red; cursor: pointer;">
<i class="fa-solid fa-xmark"
style="color: black;position: absolute; margin: -1.2px -11.2px;"></i>
</i>
<i id="back-btn" class="fa-solid fa-circle" style="color: yellow; position: relative;">
<i class="fa-solid fa-arrow-left"
style="color: black; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);"></i>
</i>
<i style="color: black; position: absolute; left: 687px;" class="fa-solid fa-arrow-left"></i></i>
<i class="fa-solid fa-circle" style="color: green; margin-left: 2px;"></i>
</div>
</div>
<div class="modification">
<div class="h2" style="position: relative;">
<span>AI Article Summary</span>
</div>
<div class="icon-added" style="margin-top: 0px; position: relative;">
<!-- Checkbox + Updates -->
<span class="checkbox" id="checkbox" style="position: absolute; margin-left: 0px;">
<i id="notch" class="fa-solid fa-circle-notch"></i>
<i id="check" class="fa-regular fa-circle-check"></i>
</span>
<!-- Updates button + container -->
<div
style="display: flex; align-items: center; gap: 10px; margin-bottom: 5px; margin-left: 20px; position: relative;">
<i id="updates-btn" class="fa-solid fa-upload" style="cursor: pointer;"></i>
<!-- Red dot for updates -->
<div id="updates-container"></div>
</div>
<!-- Color theme buttons -->
<span id="white-black">
<i class="fa-solid fa-circle" style="
background-image: linear-gradient(-11deg, #1c1c1cf2 37%, #2c2c2eed 76%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;">
</i>
</span>
<span id="black-blue">
<i class="fa-solid fa-circle" style="
background: linear-gradient(to right, black, blue);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;">
</i>
</span>
<span id="yellow-green">
<i class="fa-solid fa-circle" style="
background: linear-gradient(to left, rgb(16, 193, 16), rgb(214, 228, 5));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;">
</i>
</span>
<span id="red-pink">
<i class="fa-solid fa-circle" style="
background: linear-gradient(to right, rgb(227, 58, 11), rgb(225, 10, 222));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;">
</i>
</span>
<span id="black-red">
<i class="fa-solid fa-circle" style="
background: linear-gradient(to right, rgb(208, 16, 16), blue);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;">
</i>
</span>
</div>
</div>
</div>
<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">
<span class="material-symbols-outlined">ads_click</span>
<span>Summarize</span>
</button>
<button id="speak-btn">
<i class="fa-solid fa-volume-high" style="color: black;"></i>
Speaker
</button>
<button id="copy-btn">
<i class="fa-solid fa-copy" style="color: black;"></i>
Copy
</button>
<button id="share-btn" style="cursor: pointer; display: flex; align-items: center; gap: 5px;">
<i class="fa-solid fa-share-nodes" style="color: black;"></i> Share
</button>
<button id="history-btn">
<i class="fa-solid fa-clock-rotate-left" style="color: black;"></i>
History
</button>
<button id="voice-btn">
<i class="fa-solid fa-microphone" style="color: black;"></i>
<p>Voice</p>
</button>
<div id="share-menu" style="
display: none;
position: absolute;
background: #fff;
border: 1px solid #ccc;
padding: 5px;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
z-index: 999;
margin-top: -71px;
margin-left: 162px;
margin-right: -3px;
">
<button class="share-btn" data-platform="whatsapp"
style="background-color: #25D366; color: #fff; margin: 3px; padding: 8px; border: none; border-radius: 4px;">
<i class="fa-brands fa-whatsapp"></i>
</button>
<button class="share-btn" data-platform="twitter"
style="background-color: #1DA1F2; color: #fff; margin: 3px; padding: 8px; border: none; border-radius: 4px;">
<i class="fa-brands fa-twitter"></i>
</button>
<button class="share-btn" data-platform="facebook"
style="background-color: #1877F2; color: #fff; margin: 3px; padding: 8px; border: none; border-radius: 4px;">
<i class="fa-brands fa-facebook"></i>
</button>
<button class="share-btn" data-platform="linkedin"
style="background-color: #0A66C2; color: #fff; margin: 3px; padding: 8px; border: none; border-radius: 4px;">
<i class="fa-brands fa-linkedin"></i>
</button>
<button class="share-btn" data-platform="copy"
style="background-color: #333; color: #fff; margin: 3px; padding: 8px; border: none; border-radius: 4px;">
<i class="fa-solid fa-link"></i>
</button>
</div>
</div>
<div id="result" style="color: white; position: relative;">
Select a summary type and click ' 👆🏻 Summarize This Page' to generate a
summary.
</div>
<div class="left-icon" id="toggleBtn">
<span>F</span>
<span>O</span>
<span>N</span>
<span>T</span>
</div>
<!-- Sidebar Font Panel -->
<div class="panel" id="sidePanel">
<!-- font picker header (keeps your existing header/title) -->
<!-- Font Picker (replace previous font-list markup) -->
<div class="font-panel-content">
<div class="font-top" style="display:flex; justify-content:space-between; align-items:center;">
<div style="display:flex; align-items:center; gap:8px;">
<button class="font-toggle-btn">Aa</button>
<div class="font-title-display">Font: <span id="activeFontName">Default</span></div>
</div>
</div>
<input id="fontSearch" class="font-search" placeholder="Search fonts (type to filter) — e.g. Roboto, Poppins..." />
<div class="font-tabs">
<button class="font-tab active" data-tab="localFonts">Local Fonts</button>
<button class="font-tab" data-tab="systemFonts">System Fonts</button>
<button class="font-tab" data-tab="customFonts">Custom Fonts</button>
<button class="font-tab" data-tab="favoriteFonts">⭐Fav</button>
</div>
<div id="localFonts" class="font-list show"></div>
<div id="systemFonts" class="font-list"></div>
<div id="customFonts" class="font-list"></div>
<div id="favoriteFonts" class="font-list"></div>
</div>
</div>
<div class="footer" style="display: flex; margin-top: 15px;">
<div class="newdiv" style="background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
border-radius: 25px;
padding: px;
font-size: 13px;
font-weight: 700;
color: black;
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
display: flex;
width: 300px;
gap: 2px;
">
<!-- Contributor 1 -->
<a href="https://github.com/Sangram03" target="_blank"
style="display: flex; align-items: center; text-decoration: none; color: black; gap: 5px;">
<span>Develop by</span>
<img href="https://github.com/Sangram03" target="_blank" src="https://github.com/Sangram03.png"
alt="Sangram Das"
style="width: 24px; height: 24px; border-radius: 50%; border: 2px solid white;">
</a>
<!-- Contributor 2 -->
<a href="https://github.com/Krushna-Chandra" target="_blank"
style="display: flex; align-items: center; text-decoration: none; color: black;">
<span>Contributor</span>
<img src="https://github.com/Krushna-Chandra.png" alt="Other Contributor"
style="width: 24px; height: 24px; border-radius: 50%; border: 2px solid white;">
<!-- Contributor 3 -->
</a>
<a href="https://github.com/prakashjena938" target="_blank"
style="display: flex; align-items: center; text-decoration: none; color: black;">
<img src="https://github.com/prakashjena938.png" alt="Other Contributor"
style="width: 24px; height: 24px; border-radius: 50%; border: 2px solid white;">
</a>
<a href="https://github.com/Bhababhanjan1" target="_blank"
style="display: flex; align-items: center; text-decoration: none; color: black;">
<img src="https://github.com/Bhababhanjan1.png" alt="Other Contributor"
style="width: 24px; height: 24px; border-radius: 50%; border: 2px solid white;">
</a>
<a href="https://github.com/Rajibpanda01" target="_blank"
style="display: flex; align-items: center; text-decoration: none; color: black;">
<img src="https://github.com/Rajibpanda01.png" alt="Other Contributor"
style="width: 24px; height: 24px; border-radius: 50%; border: 2px solid white;">
</a>
</div>
<div style="position: relative; margin-left: 20px;">
<!-- Dropdown Button -->
<div style="padding: 7px;" id="dropdownBtn" class="dropdown-btn">
<i style="color: black;" class="fa-solid fa-download"></i>
<i id="angleIcon" style="color: black;" class="fa-solid fa-angle-down"></i>
</div>
<div id="dropdownMenu" class="dropdown hidden">
<button id="downloadPdfBtn">
<i class="fa-regular fa-file-pdf"></i> Download PDF
</button>
<button id="copyLinkBtn" class="qr-btn">
<i class="fa-solid fa-qrcode"></i> Create QR Code
</button>
<!-- QR Code container -->
<div id="qrcodeContainer" style="margin-top: 20px; display: none; text-align: center;"></div>
<!-- Download button -->
<button id="downloadQRBtn" style="margin-top: 10px; display: none;">
Download QR Code
</button>
</div>
</div>
<!-- insert this inside the .options div next to #summary-type -->
<select style="border-radius: 10px; margin-left: 15px; " id="language-select" title="Select language">
<option value="auto">🌐 Auto-detect (Default) ⮟
</option>
<option value="en-US">English (en-US)</option>
<option value="hi-IN">हिन्दी / Hindi (hi-IN)</option>
<option value="es-ES">Español / Spanish (es-ES)</option>
<option value="fr-FR">Français / French (fr-FR)</option>
<option value="de-DE">Deutsch / German (de-DE)</option>
<option value="pt-BR">Português (pt-BR)</option>
<option value="zh-CN">中文 / Chinese (zh-CN)</option>
<option value="ar-SA">العربية / Arabic (ar-SA)</option>
<option value="ru-RU">Русский / Russian (ru-RU)</option>
<option value="or-IN">ଓଡ଼ିଆ / Odia (or-IN)</option>
<!-- add more language codes as needed -->
</select>
<!-- Add jsPDF -->
<div id="font-controls">
<button id="increase-font" title="Increase text size">
<i class="fa-solid fa-magnifying-glass-plus"></i>
</button>
<button id="decrease-font" title="Decrease text size">
<i class="fa-solid fa-magnifying-glass-minus"></i>
</button>
</div>
</div>
</div>
<!-- Then load your extension logic -->
<script src="lib/qrious.min.js"></script>
<script src="lib/jspdf.umd.min.js"></script>
<script src="aiarticlesum.js"></script>
</body>
</html>