Repository navigation
Expand file tree
/
Copy pathpopup.html
More file actions
440 lines (393 loc) Β· 14.7 KB
/
Copy pathpopup.html
File metadata and controls
440 lines (393 loc) Β· 14.7 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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Job Application Assistant</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
width: 380px;
min-height: 600px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #333;
}
.header {
background: rgba(255, 255, 255, 0.95);
padding: 20px;
text-align: center;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.logo {
width: 48px;
height: 48px;
background: linear-gradient(45deg, #667eea, #764ba2);
border-radius: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 10px;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.logo svg {
width: 28px;
height: 28px;
fill: white;
}
h2 {
color: #333;
font-size: 18px;
font-weight: 600;
margin: 0;
}
.subtitle {
color: #666;
font-size: 12px;
margin-top: 5px;
}
.content {
padding: 20px;
background: white;
min-height: 500px;
}
.section {
margin-bottom: 25px;
background: #f8f9fa;
border-radius: 12px;
padding: 20px;
border: 1px solid #e9ecef;
}
.section h3 {
color: #495057;
font-size: 14px;
font-weight: 600;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 8px;
}
.section h3::before {
content: '';
width: 4px;
height: 16px;
background: linear-gradient(45deg, #667eea, #764ba2);
border-radius: 2px;
}
.form-group {
margin-bottom: 12px;
}
.form-group label {
display: block;
font-size: 12px;
color: #6c757d;
margin-bottom: 5px;
font-weight: 500;
}
input, textarea {
width: 100%;
padding: 10px 12px;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 13px;
transition: all 0.3s ease;
background: white;
}
input[type="file"] {
border: 2px dashed #667eea !important;
padding: 20px !important;
text-align: center;
background: #f8f9ff !important;
cursor: pointer;
}
input[type="file"]:hover {
border-color: #764ba2 !important;
background: #f0f3ff !important;
}
input:focus, textarea:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
textarea {
height: 80px;
resize: vertical;
font-family: inherit;
}
.btn {
width: 100%;
padding: 12px;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 10px;
}
.btn-primary {
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.btn-secondary {
background: #6c757d;
color: white;
}
.btn-secondary:hover {
background: #5a6268;
transform: translateY(-1px);
}
.btn-success {
background: linear-gradient(45deg, #28a745, #20c997);
color: white;
}
.btn-success:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}
.status {
text-align: center;
margin: 15px 0;
padding: 12px;
border-radius: 8px;
font-size: 13px;
font-weight: 500;
display: none;
}
.success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.error {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.scraped-data {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 12px;
font-size: 12px;
color: #495057;
max-height: 150px;
overflow-y: auto;
}
.tabs {
display: flex;
margin-bottom: 20px;
background: #f8f9fa;
border-radius: 8px;
padding: 4px;
}
.tab {
flex: 1;
padding: 8px 12px;
text-align: center;
cursor: pointer;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
transition: all 0.3s ease;
}
.tab.active {
background: white;
color: #667eea;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
</style>
</head>
<body>
<div class="header">
<div class="logo">
<svg viewBox="0 0 24 24">
<path d="M20,6h-2.18c0.11-0.31,0.18-0.65,0.18-1a2.996,2.996,0,0,0-5.5-1.65l-0.5,0.67-0.5-0.68C10.96,2.54,10.05,2,9,2A2.996,2.996,0,0,0,6,5c0,0.35,0.07,0.69,0.18,1H4c-1.11,0-1.99,0.89-1.99,2L2,19c0,1.11,0.89,2,2,2h16c1.11,0,2-0.89,2-2V8C22,6.89,21.11,6,20,6zM15,4c0.55,0,1,0.45,1,1s-0.45,1-1,1-1-0.45-1-1S14.45,4,15,4zM9,4c0.55,0,1,0.45,1,1s-0.45,1-1,1S8,5.55,8,5S8.45,4,9,4zM20,19H4V8h16V19z"/>
<path d="M12,9c-1.66,0-3,1.34-3,3s1.34,3,3,3s3-1.34,3-3S13.66,9,12,9z M12,13c-0.55,0-1-0.45-1-1s0.45-1,1-1s1,0.45,1,1S12.55,13,12,13z"/>
</svg>
</div>
<h2>Job Application Assistant</h2>
<div class="subtitle">AI-powered job application helper</div>
</div>
<div class="content">
<div class="tabs">
<div class="tab active" data-tab="profile">Profile</div>
<div class="tab" data-tab="scrape">Scrape</div>
<div class="tab" data-tab="questions">Questions</div>
<div class="tab" data-tab="generate">Generate</div>
</div>
<!-- Profile Tab -->
<div class="tab-content active" id="profile-tab">
<div class="section">
<h3>Personal Information</h3>
<div class="form-group">
<label for="fullName">Full Name</label>
<input type="text" id="fullName" placeholder="Enter your full name">
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" id="email" placeholder="Enter your email">
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" placeholder="Enter your phone number">
</div>
<div class="form-group">
<label for="location">Location</label>
<input type="text" id="location" placeholder="City, State/Country">
</div>
</div>
<div class="section">
<h3>Professional Information</h3>
<div class="form-group">
<label for="summary">Professional Summary</label>
<textarea id="summary" placeholder="Brief professional summary..."></textarea>
</div>
<div class="form-group">
<label for="projects">Key Projects</label>
<textarea id="projects" placeholder="Describe your key projects..."></textarea>
</div>
<div class="form-group">
<label for="experience">Experience & Achievements</label>
<textarea id="experience" placeholder="Highlight your experience and achievements..."></textarea>
</div>
<div class="form-group">
<label for="skills">Skills</label>
<input type="text" id="skills" placeholder="Skills (comma separated)">
</div>
</div>
<div class="section">
<h3>Education</h3>
<div class="form-group">
<label for="degree">Degree</label>
<input type="text" id="degree" placeholder="Your degree">
</div>
<div class="form-group">
<label for="university">University</label>
<input type="text" id="university" placeholder="University name">
</div>
</div>
<!-- LinkedIn Profile Import -->
<div class="section">
<h3>Import from LinkedIn</h3>
<div class="form-group">
<label for="linkedinUrl">LinkedIn Profile URL</label>
<input type="url" id="linkedinUrl" placeholder="https://www.linkedin.com/in/username">
</div>
<button class="btn btn-primary" id="scrapeLinkedIn">
π Import LinkedIn Profile
</button>
</div>
<!-- PDF Resume Import -->
<div class="section">
<h3>Import from PDF Resume</h3>
<div class="form-group">
<label for="resumePdf">Upload Resume (PDF)</label>
<input type="file" id="resumePdf" accept=".pdf" style="border: 2px dashed #667eea; padding: 20px; text-align: center; background: #f8f9ff;">
</div>
<button class="btn btn-primary" id="parseResume" disabled>
π Parse Resume (Limited)
</button>
<button class="btn btn-secondary" id="testPdfJs" style="margin-top: 5px;">
π§ Test Parser
</button>
<div id="parseStatus" style="margin-top: 10px; font-size: 12px; color: #666;"></div>
<!-- Manual Text Input Alternative -->
</div>
<button class="btn btn-success" id="saveProfile">
πΎ Save Profile
</button>
</div>
<!-- Scrape Tab -->
<div class="tab-content" id="scrape-tab">
<div class="section">
<h3>Job Listing Scraper</h3>
<div class="form-group">
<label for="jobUrl">Job Listing URL (Optional)</label>
<input type="url" id="jobUrl" placeholder="https://www.linkedin.com/jobs/view/... or leave empty for current page">
</div>
<button class="btn btn-secondary" id="scrapeJob">
π Scrape Job Listing
</button>
<div class="form-group" style="margin-top: 15px;">
<label>Scraped Job Data</label>
<div class="scraped-data" id="scrapedJobData">
Scraped job description will appear here...
</div>
</div>
<button class="btn btn-success" id="saveJob">
πΎ Save Job Description
</button>
</div>
</div>
<!-- Questions Tab -->
<div class="tab-content" id="questions-tab">
<div class="section">
<h3>Application Questions Scraper</h3>
<div class="form-group">
<label for="questionsUrl">Application URL (Optional)</label>
<input type="url" id="questionsUrl" placeholder="https://... or leave empty for current page">
</div>
<button class="btn btn-secondary" id="scrapeQuestions">
β Scrape Application Questions
</button>
<div class="form-group" style="margin-top: 15px;">
<label>Scraped Questions</label>
<div class="scraped-data" id="scrapedQuestionsData">
Scraped application questions will appear here...
</div>
</div>
<button class="btn btn-success" id="saveQuestions">
πΎ Save Questions
</button>
</div>
</div>
<!-- Generate Tab -->
<div class="tab-content" id="generate-tab">
<div class="section">
<h3>AI Content Generation</h3>
<div class="form-group">
<label for="contentType">Content Type</label>
<select id="contentType">
<option value="cover_letter">Cover Letter</option>
<option value="questions">Answer Questions</option>
</select>
</div>
<button class="btn btn-primary" id="generateContent">
π€ Generate AI Content
</button>
<div class="form-group" style="margin-top: 15px;">
<label>Generated Content</label>
<div class="scraped-data" id="generatedContent" style="max-height: 300px; white-space: pre-wrap;">
Generated content will appear here...
</div>
</div>
<button class="btn btn-success" id="copyContent" style="display: none;">
π Copy to Clipboard
</button>
<div class="form-group" style="margin-top: 10px;">
<small id="generationStats" style="color: #666; font-size: 11px;"></small>
</div>
</div>
</div>
<div id="status" class="status"></div>
</div>
<script src="pdf.min.js"></script>
<script src="pdf-parser.js"></script>
<script src="popup.js"></script>
</body>
</html>