-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport.html
More file actions
887 lines (775 loc) Β· 24.8 KB
/
Copy pathreport.html
File metadata and controls
887 lines (775 loc) Β· 24.8 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
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ShareHive - Report</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
transition: 0.3s;
}
:root {
--bg-color: #ffffff;
--text-color: #222;
--primary-color: #0077ff;
--secondary-color: #00c896;
--sidebar-bg: #f4f4f4;
--card-bg: #f8f8f8;
--border-color: #e0e0e0;
--success-color: #28a745;
--warning-color: #ffc107;
--danger-color: #dc3545;
--info-color: #17a2b8;
}
body.dark {
--bg-color: #1e1e1e;
--text-color: #f0f0f0;
--sidebar-bg: #2c2c2c;
--card-bg: #333333;
--border-color: #444;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background: linear-gradient(135deg, var(--primary-color), #0056cc);
color: white;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar h1 { font-size: 20px; }
.toggle-btn {
background: white;
border: none;
color: var(--primary-color);
padding: 8px 15px;
border-radius: 20px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.toggle-btn:hover {
transform: scale(1.05);
box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.container { display: flex; height: calc(100vh - 50px); }
.sidebar {
width: 220px;
background: var(--sidebar-bg);
padding: 20px;
overflow-y: auto;
border-right: 1px solid var(--border-color);
}
.sidebar h2 { font-size: 16px; margin-bottom: 10px; }
.sidebar a {
display: block;
text-decoration: none;
color: var(--text-color);
padding: 8px 10px;
border-radius: 5px;
margin-bottom: 5px;
transition: all 0.3s ease;
}
.sidebar a:hover {
background: var(--primary-color);
color: white;
transform: translateX(5px);
}
.main {
flex: 1;
overflow-y: auto;
background: var(--bg-color);
}
/* Hero Section */
.hero-section {
background: linear-gradient(135deg, var(--danger-color), #a82828);
color: white;
padding: 60px 40px;
text-align: center;
position: relative;
overflow: hidden;
}
.hero-section::before {
content: "π";
position: absolute;
font-size: 300px;
opacity: 0.08;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(-15deg);
}
.hero-section h1 {
font-size: 48px;
margin-bottom: 15px;
position: relative;
z-index: 1;
}
.hero-section p {
font-size: 20px;
opacity: 0.95;
position: relative;
z-index: 1;
max-width: 700px;
margin: 0 auto;
line-height: 1.6;
}
/* Content Area */
.content {
max-width: 1000px;
margin: 0 auto;
padding: 40px 20px;
}
/* Report Type Cards */
.report-types {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.type-card {
background: var(--card-bg);
padding: 30px;
border-radius: 15px;
border: 2px solid var(--border-color);
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
animation: fadeInUp 0.6s ease-out backwards;
}
.type-card:hover {
transform: translateY(-8px);
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.type-card.active {
border-color: var(--primary-color);
background: linear-gradient(135deg, rgba(0,119,255,0.1), rgba(0,85,204,0.05));
box-shadow: 0 8px 25px rgba(0,119,255,0.2);
}
.type-card .icon {
font-size: 60px;
margin-bottom: 15px;
display: block;
}
.type-card h3 {
font-size: 22px;
margin-bottom: 10px;
color: var(--text-color);
}
.type-card p {
font-size: 14px;
opacity: 0.8;
line-height: 1.6;
}
/* Form Section */
.form-section {
background: var(--card-bg);
padding: 40px;
border-radius: 20px;
border: 2px solid var(--border-color);
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
margin-bottom: 40px;
animation: fadeInUp 0.6s ease-out backwards;
animation-delay: 0.3s;
}
.form-section h2 {
font-size: 32px;
margin-bottom: 10px;
color: var(--text-color);
display: flex;
align-items: center;
gap: 10px;
}
.form-section .subtitle {
font-size: 16px;
opacity: 0.7;
margin-bottom: 30px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
font-size: 14px;
color: var(--text-color);
}
.form-group label .required {
color: var(--danger-color);
margin-left: 3px;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 12px 15px;
border: 2px solid var(--border-color);
border-radius: 10px;
background: var(--bg-color);
color: var(--text-color);
font-size: 15px;
transition: all 0.3s ease;
font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(0,119,255,0.1);
}
.form-group textarea {
min-height: 150px;
resize: vertical;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.priority-select {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin-top: 8px;
}
.priority-option {
padding: 12px;
border: 2px solid var(--border-color);
border-radius: 10px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
background: var(--bg-color);
}
.priority-option:hover {
border-color: var(--primary-color);
}
.priority-option.active {
border-color: var(--primary-color);
background: var(--primary-color);
color: white;
}
.priority-option.low.active {
border-color: var(--success-color);
background: var(--success-color);
}
.priority-option.medium.active {
border-color: var(--warning-color);
background: var(--warning-color);
color: #333;
}
.priority-option.high.active {
border-color: var(--danger-color);
background: var(--danger-color);
}
.submit-btn {
width: 100%;
padding: 18px 30px;
background: var(--primary-color);
color: white;
border: none;
border-radius: 25px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
font-size: 18px;
box-shadow: 0 4px 15px rgba(0,119,255,0.3);
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 10px;
}
.submit-btn:hover {
background: #0056cc;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0,119,255,0.4);
}
/* Success Message */
.success-message {
background: var(--success-color);
color: white;
padding: 15px 20px;
border-radius: 10px;
margin-bottom: 20px;
display: none;
align-items: center;
gap: 10px;
animation: slideIn 0.3s ease-out;
}
.success-message.show {
display: flex;
}
/* Guidelines Section */
.guidelines {
background: var(--card-bg);
padding: 35px;
border-radius: 15px;
border: 2px solid var(--border-color);
margin-bottom: 40px;
animation: fadeInUp 0.6s ease-out backwards;
animation-delay: 0.2s;
}
.guidelines h3 {
font-size: 24px;
margin-bottom: 20px;
color: var(--text-color);
display: flex;
align-items: center;
gap: 10px;
}
.guidelines-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 25px;
}
.guideline-item {
display: flex;
gap: 15px;
align-items: flex-start;
}
.guideline-item .icon {
font-size: 24px;
flex-shrink: 0;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--primary-color), #0056cc);
border-radius: 10px;
color: white;
}
.guideline-item .text h4 {
font-size: 16px;
margin-bottom: 5px;
color: var(--text-color);
}
.guideline-item .text p {
font-size: 14px;
opacity: 0.8;
line-height: 1.6;
}
/* Stats */
.stats-bar {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.stat-card {
background: var(--card-bg);
padding: 25px;
border-radius: 12px;
border: 2px solid var(--border-color);
text-align: center;
transition: all 0.3s ease;
animation: fadeInUp 0.6s ease-out backwards;
}
.stat-card:hover {
border-color: var(--primary-color);
transform: translateY(-3px);
}
.stat-number {
font-size: 36px;
font-weight: bold;
color: var(--primary-color);
display: block;
margin-bottom: 5px;
}
.stat-label {
font-size: 14px;
opacity: 0.7;
font-weight: 600;
}
/* Responsive */
@media (max-width: 968px) {
.form-row {
grid-template-columns: 1fr;
}
.guidelines-grid {
grid-template-columns: 1fr;
}
.hero-section h1 {
font-size: 36px;
}
.priority-select {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.container { flex-direction: column; }
.sidebar { width: 100%; }
.hero-section {
padding: 40px 20px;
}
.hero-section h1 {
font-size: 28px;
}
.content {
padding: 20px 15px;
}
.form-section {
padding: 25px 20px;
}
.report-types {
grid-template-columns: 1fr;
}
.stats-bar {
grid-template-columns: repeat(2, 1fr);
}
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.type-card:nth-child(1) { animation-delay: 0.1s; }
.type-card:nth-child(2) { animation-delay: 0.2s; }
.type-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
/* Scrollbar */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: var(--sidebar-bg);
}
::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
background: #0056cc;
}
</style>
</head>
<body>
<!-- Navbar -->
<div class="navbar">
<h1>π ShareHive - Report & Feedback</h1>
<button class="toggle-btn" onclick="toggleTheme()">π</button>
</div>
<div class="container">
<!-- Sidebar -->
<div class="sidebar">
<h2>Menu</h2>
<a href="index.html">π Dashboard</a>
<a href="notes.html">π Notes</a>
<a href="bookmarks.html">π Bookmarks</a>
<a href="videos.html">π¬ Video Links</a>
<a href="expenses.html">π° Expense Tracker</a>
<a href="planner.html">π
Planner</a>
<a href="uploads.html">π Upload Files</a>
<a href="projects.html">π Projects</a>
<a href="watchlist.html">π₯ Watchlist</a>
<a href="courses.html">π Courses</a>
<a href="profile.html">π€ Profile</a>
<a href="settings.html">βοΈ Settings</a>
<hr>
<a href="about.html">βΉοΈ About</a>
<a href="help.html">β Help</a>
<a href="faq.html">β FAQ</a>
<a href="blog.html">π° Blog</a>
<a href="contact.html">βοΈ Contact</a>
<a href="join.html">π€ Join Us</a>
<a href="report.html">π Report</a>
<a href="privacy.html">π Privacy & Policy</a>
<a href="community.html">π Community</a>
</div>
<!-- Main -->
<div class="main">
<!-- Hero Section -->
<div class="hero-section">
<h1>Help Us Improve ShareHive</h1>
<p>Found a bug? Have a feature idea? Your feedback makes ShareHive better for everyone!</p>
</div>
<!-- Content -->
<div class="content">
<!-- Stats Bar -->
<div class="stats-bar">
<div class="stat-card">
<span class="stat-number">250+</span>
<span class="stat-label">Reports Fixed</span>
</div>
<div class="stat-card">
<span class="stat-number">85%</span>
<span class="stat-label">User Suggestions Implemented</span>
</div>
<div class="stat-card">
<span class="stat-number">24hrs</span>
<span class="stat-label">Average Response Time</span>
</div>
</div>
<!-- Report Type Selection -->
<div class="report-types">
<div class="type-card active" onclick="selectType('bug')">
<span class="icon">π</span>
<h3>Bug Report</h3>
<p>Report technical issues, errors, or unexpected behavior</p>
</div>
<div class="type-card" onclick="selectType('feature')">
<span class="icon">π‘</span>
<h3>Feature Request</h3>
<p>Suggest new features or improvements to existing ones</p>
</div>
<div class="type-card" onclick="selectType('feedback')">
<span class="icon">π¬</span>
<h3>General Feedback</h3>
<p>Share your thoughts, experiences, or suggestions</p>
</div>
</div>
<!-- Guidelines -->
<div class="guidelines">
<h3>π Reporting Guidelines</h3>
<div class="guidelines-grid">
<div class="guideline-item">
<div class="icon">β
</div>
<div class="text">
<h4>Be Specific</h4>
<p>Provide detailed information about the issue or suggestion</p>
</div>
</div>
<div class="guideline-item">
<div class="icon">π</div>
<div class="text">
<h4>Search First</h4>
<p>Check if the issue has already been reported</p>
</div>
</div>
<div class="guideline-item">
<div class="icon">πΈ</div>
<div class="text">
<h4>Include Screenshots</h4>
<p>Visual evidence helps us understand the problem faster</p>
</div>
</div>
<div class="guideline-item">
<div class="icon">π</div>
<div class="text">
<h4>Steps to Reproduce</h4>
<p>For bugs, describe how we can recreate the issue</p>
</div>
</div>
</div>
</div>
<!-- Report Form -->
<div class="form-section">
<div class="success-message" id="successMessage">
<span>β
</span>
<span>Thank you! Your report has been submitted successfully.</span>
</div>
<h2>
<span id="formIcon">π</span>
<span id="formTitle">Report a Bug</span>
</h2>
<p class="subtitle">Fill out the form below with as much detail as possible</p>
<form id="reportForm" onsubmit="sendReport(event)">
<input type="hidden" id="reportType" value="bug">
<div class="form-row">
<div class="form-group">
<label for="name">Your Name <span class="required">*</span></label>
<input type="text" id="name" placeholder="your name" required>
</div>
<div class="form-group">
<label for="email">Email Address <span class="required">*</span></label>
<input type="email" id="email" placeholder="yourgmail@.com" required>
</div>
</div>
<div class="form-group">
<label for="title">Title/Summary <span class="required">*</span></label>
<input type="text" id="title" placeholder="Brief description of the issue or suggestion" required>
</div>
<div class="form-row">
<div class="form-group">
<label for="feature">Affected Feature</label>
<select id="feature">
<option value="">Select a feature</option>
<option value="Notes">π Notes</option>
<option value="Bookmarks">π Bookmarks</option>
<option value="Video Links">π¬ Video Links</option>
<option value="To-Do List">β
To-Do List</option>
<option value="Expense Tracker">π° Expense Tracker</option>
<option value="Planner">π
Planner</option>
<option value="Wiki">π Wiki</option>
<option value="File Upload">π File Upload</option>
<option value="Projects">π Projects</option>
<option value="Watchlist">π₯ Watchlist</option>
<option value="Courses">π Courses</option>
<option value="Settings">βοΈ Settings</option>
<option value="Other">Other</option>
</select>
</div>
<div class="form-group">
<label for="browser">Browser</label>
<select id="browser">
<option value="">Select browser</option>
<option value="Chrome">Chrome</option>
<option value="Firefox">Firefox</option>
<option value="Safari">Safari</option>
<option value="Edge">Edge</option>
<option value="Opera">Opera</option>
<option value="Other">Other</option>
</select>
</div>
</div>
<div class="form-group">
<label>Priority Level</label>
<div class="priority-select">
<div class="priority-option low active" onclick="selectPriority('low')">
<strong>Low</strong>
<div style="font-size: 12px; margin-top: 5px;">Minor issue</div>
</div>
<div class="priority-option medium" onclick="selectPriority('medium')">
<strong>Medium</strong>
<div style="font-size: 12px; margin-top: 5px;">Affects usage</div>
</div>
<div class="priority-option high" onclick="selectPriority('high')">
<strong>High</strong>
<div style="font-size: 12px; margin-top: 5px;">Critical issue</div>
</div>
</div>
<input type="hidden" id="priority" value="low">
</div>
<div class="form-group">
<label for="description">Detailed Description <span class="required">*</span></label>
<textarea id="description" placeholder="Describe the issue or suggestion in detail. For bugs, include what you expected to happen vs. what actually happened." required></textarea>
</div>
<div class="form-group">
<label for="steps">Steps to Reproduce (for bugs)</label>
<textarea id="steps" placeholder="1. Go to... 2. Click on... 3. See error..." rows="5"></textarea>
</div>
<div class="form-group">
<label for="screenshot">Screenshot/File URL (optional)</label>
<input type="url" id="screenshot" placeholder="https://imgur.com/... or any image hosting link">
</div>
<button type="submit" class="submit-btn">
<span>π€</span>
<span>Submit Report</span>
</button>
</form>
</div>
</div>
</div>
</div>
<script>
// Dark Mode
function toggleTheme() {
document.body.classList.toggle("dark");
const isDark = document.body.classList.contains("dark");
localStorage.setItem("theme", isDark ? "dark" : "light");
document.querySelector(".toggle-btn").textContent = isDark ? "βοΈ" : "π";
}
if(localStorage.getItem("theme") === "dark") {
document.body.classList.add("dark");
document.querySelector(".toggle-btn").textContent = "βοΈ";
}
// Select Report Type
function selectType(type) {
// Update active card
document.querySelectorAll('.type-card').forEach(card => {
card.classList.remove('active');
});
event.target.closest('.type-card').classList.add('active');
// Update form
document.getElementById('reportType').value = type;
// Update form title and icon
const titles = {
bug: { icon: 'π', text: 'Report a Bug' },
feature: { icon: 'π‘', text: 'Suggest a Feature' },
feedback: { icon: 'π¬', text: 'Share Feedback' }
};
document.getElementById('formIcon').textContent = titles[type].icon;
document.getElementById('formTitle').textContent = titles[type].text;
}
// Select Priority
let currentPriority = 'low';
function selectPriority(level) {
currentPriority = level;
document.querySelectorAll('.priority-option').forEach(opt => {
opt.classList.remove('active');
});
event.target.closest('.priority-option').classList.add('active');
document.getElementById('priority').value = level;
}
// Send Report
function sendReport(e) {
e.preventDefault();
const reportType = document.getElementById('reportType').value;
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
const title = document.getElementById('title').value;
const feature = document.getElementById('feature').value;
const browser = document.getElementById('browser').value;
const priority = document.getElementById('priority').value;
const description = document.getElementById('description').value;
const steps = document.getElementById('steps').value;
const screenshot = document.getElementById('screenshot').value;
const typeLabels = {
bug: 'π BUG REPORT',
feature: 'π‘ FEATURE REQUEST',
feedback: 'π¬ FEEDBACK'
};
const subject = encodeURIComponent(`[${typeLabels[reportType]}] ${title}`);
const body = encodeURIComponent(
`${typeLabels[reportType]}\n\n` +
`Title: ${title}\n` +
`Priority: ${priority.toUpperCase()}\n\n` +
`--- Reporter Information ---\n` +
`Name: ${name}\n` +
`Email: ${email}\n\n` +
`--- Details ---\n` +
`Affected Feature: ${feature || 'Not specified'}\n` +
`Browser: ${browser || 'Not specified'}\n\n` +
`--- Description ---\n${description}\n\n` +
`${steps ? `--- Steps to Reproduce ---\n${steps}\n\n` : ''}` +
`${screenshot ? `--- Screenshot/Evidence ---\n${screenshot}\n\n` : ''}` +
`--- Additional Info ---\n` +
`Reported via: ShareHive Report Form\n` +
`Date: ${new Date().toLocaleString()}`
);
// Update this with your actual email
window.location.href = `mailto:sharehivereport@gmail.com?subject=${subject}&body=${body}`;
// Show success message
document.getElementById('successMessage').classList.add('show');
// Reset form
document.getElementById('reportForm').reset();
document.getElementById('reportType').value = 'bug';
// Reset priority to low
document.querySelectorAll('.priority-option').forEach(opt => {
opt.classList.remove('active');
});
document.querySelector('.priority-option.low').classList.add('active');
// Hide success message after 5 seconds
setTimeout(() => {
document.getElementById('successMessage').classList.remove('show');
}, 5000);
// Scroll to top
window.scrollTo({ top: 0, behavior: 'smooth' });
}
</script>
</body>
</html>