-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTools-C.html
More file actions
7009 lines (6270 loc) · 468 KB
/
Tools-C.html
File metadata and controls
7009 lines (6270 loc) · 468 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
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/png" sizes="32x32" href="https://favicon-generator.org/favicon-generator/htdocs/favicons/2024-04-12/6b13c0e2c4b7ab54ce7583367c42166e.ico.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://favicon-generator.org/favicon-generator/htdocs/favicons/2024-04-12/6b13c0e2c4b7ab54ce7583367c42166e.ico.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-site-verification" content="1izKCetzNj3e7mRvTXIoFhcSN0popYPWvwyzTtEBi24" />
<meta name="mylead-verification" content="36f3e822fb8e7a332ba9fd627eca510d">
<title>USA Staffing Tools</title>
<meta name="description" content="Explore your one-stop destination for comprehensive USA Staffing solutions. Unlock maps, time zones, currency exchange rates, tax terms, visa information, interview preparation questions, email extraction tools, and beyond. Stay connected, keep browsing, and embrace the ease of access!">
<!-- Linkedin -->
<meta property='og:title' content='USA Staffing Tools'/>
<meta property='og:image' content='https://5.imimg.com/data5/SELLER/Default/2021/10/LJ/WB/EG/135105375/us-staffing-project-500x500.jpg'/>
<meta property='og:description' content='Explore your one-stop destination for comprehensive USA Staffing solutions. Unlock maps, time zones, currency exchange rates, tax terms, visa information, interview preparation questions, email extraction tools, and beyond. Stay connected, keep browsing, and embrace the ease of access!'/>
<meta property='og:url' content='https://securebugs.github.io/StaffingTools/Tools'/>
<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="USA Staffing Tools">
<meta itemprop="description" content="Explore your one-stop destination for comprehensive USA Staffing solutions. Unlock maps, time zones, currency exchange rates, tax terms, visa information, interview preparation questions, email extraction tools, and beyond. Stay connected, keep browsing, and embrace the ease of access!">
<meta itemprop="image" content="https://5.imimg.com/data5/SELLER/Default/2021/10/LJ/WB/EG/135105375/us-staffing-project-500x500.jpg">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://securebugs.github.io/StaffingTools/Tools">
<meta property="og:type" content="website">
<meta property="og:title" content="USA Staffing Tools">
<meta property="og:description" content="Explore your one-stop destination for comprehensive USA Staffing solutions. Unlock maps, time zones, currency exchange rates, tax terms, visa information, interview preparation questions, email extraction tools, and beyond. Stay connected, keep browsing, and embrace the ease of access!">
<meta property="og:image" content="https://5.imimg.com/data5/SELLER/Default/2021/10/LJ/WB/EG/135105375/us-staffing-project-500x500.jpg">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="USA Staffing Tools">
<meta name="twitter:description" content="Explore your one-stop destination for comprehensive USA Staffing solutions. Unlock maps, time zones, currency exchange rates, tax terms, visa information, interview preparation questions, email extraction tools, and beyond. Stay connected, keep browsing, and embrace the ease of access!">
<meta name="twitter:image" content="https://5.imimg.com/data5/SELLER/Default/2021/10/LJ/WB/EG/135105375/us-staffing-project-500x500.jpg">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Piedra&display=swap" rel="stylesheet">
<style>
/* General Styles */
body {
padding-top: 56px; /* Adjust for fixed navbar */
margin: 0;
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
min-height: 100vh;
}
.piedra-regular {
font-family: "Piedra", serif;
font-weight: 400;
font-style: normal;
}
.card {
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow */
overflow: auto; /* Add scroll if content overflows */
}
.top-bg{
background-color: #f1d580;
background: linear-gradient(45deg, #c7edfe 10%, #c7f5fe 40%, #fcc8f8 0, #fcc8f8 60%, #eab4f8 0, #eab4f8 65%, #f1d580 0, #f3f798 90%);
background: -webkit-linear-gradient(45deg, #c7edfe 10%, #c7f5fe 60%, #fcc8f8 0, #fcc8f8 60%, #ffc299 0, #ffc299 65%, #f1d580 0, #f3f798 90%);
}
/* Sidebar Styles */
.sidebar {
width: 55px; /* Initial width */
height: 100vh;
position: fixed;
top: 45px;
left: 0;
background-color: #f1d580;
background: linear-gradient(45deg, #c7edfe 10%, #c7f5fe 40%, #fcc8f8 0, #fcc8f8 60%, #eab4f8 0, #eab4f8 65%, #f1d580 0, #f3f798 90%);
background: -webkit-linear-gradient(45deg, #c7edfe 10%, #c7f5fe 40%, #fcc8f8 0, #fcc8f8 60%, #ffc299 0, #ffc299 65%, #f1d580 0, #f3f798 90%);
overflow-x: hidden;
transition: width 0.3s, left 0.3s;
border-right: 1px solid #ddd; /* Light border */
padding-top: 10px;
z-index: 1000;
}
.sidebar:hover {
width: 220px; /* Expanded width */
}
.sidebar ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.sidebar ul li {
padding: 12px 5px;
}
.sidebar ul li a {
color: #333; /* Dark text for light background */
text-decoration: none;
display: flex;
font-weight:800 !important;
align-items: center;
padding: 5px;
border-radius: 5px;
}
.sidebar ul li a i {
font-size: 20px;
width: 35px;
text-align: center;
}
.sidebar ul li a .menu-text {
display: none;
margin-left: 10px;
}
.sidebar:hover ul li a .menu-text,
.sidebar.show ul li a .menu-text {
display: inline;
white-space: nowrap;
}
/* Active Tab Styles */
.sidebar ul li.active {
background-color: #b2e9f7; /* Updated lighter sky blue */
}
.sidebar ul li.active a {
background-color: transparent; /* Remove background from the link */
}
/* Main Content Styles */
.main-content {
margin-left: 55px; /* Initial margin */
padding: 20px;
transition: margin-left 0.3s;
flex: 1;
}
.sidebar:hover ~ .main-content {
margin-left: 220px; /* Expanded margin */
}
/* Tab Content Styles */
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* Home Tab Cards */
.home-cards {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
/* Sidebar Toggle (Hamburger Menu) */
.menu-icon {
font-size: 24px;
cursor: pointer;
display: none; /* Hidden by default */
}
/* Container for inline layout */
.card-container {
display: flex;
gap: 20px;
width: 100%;
}
/* Adjust margin between ad card and first card */
@media (min-width: 768px) {
.home-cards {
margin-left: 20px; /* Reduced margin between ad card and first card */
}
}
@media (max-width: 767.98px) {
.sidebar:hover ~ .main-content {
margin-left: 2px; /* Expanded margin */
}
}
/* Responsive Design */
@media (max-width: 767.98px) {
.sidebar {
left: -220px; /* Hide sidebar by default in mobile */
width: 220px;
}
.sidebar.show {
left: 0; /* Show sidebar when toggled */
}
.main-content {
margin-left: 0; /* Remove margin in mobile */
overflow-x: hidden; /* Prevent horizontal scroll */
}
.menu-icon {
display: block; /* Show hamburger menu in mobile */
padding-left:15px;
font-size:30px;
}
.ad-banner {
display: none; /* Hide ad banner in mobile */
}
.card {
max-width: 100%; /* Cards take full width in mobile */
}
}
</style>
</head>
<body>
<!-- Top Fixed Bar -->
<style>
.footer-svg.g { fill: #0c0; }
/* Your existing alert styles */
.alert-container {
position: fixed;
top: 10px;
left: 50%;
transform: translateX(-50%);
width: 75%;
height: 40px;
text-align: center;
font-size: 11px;
z-index: 9999;
}
.alert strong { font-size: 12px; }
.alert {
color: #000;
padding: 8px;
border-radius: 3px;
display: none;
}
.alert.show { display: block; }
</style>
<div class="dv">
<div class="alert-container">
<div class="alert" role="alert">
<strong>Warning!</strong> Hey! You are not authorized for this action.
</div>
</div>
</div>
<nav class="navbar navbar-light top-bg bg-light fixed-top">
<span class="menu-icon" id="menuToggle"><i class="fas fa-bars"></i></span>
<a class="navbar-brand piedra-regular mx-1" href="https://securebugs.github.io/StaffingTools/Tools">Staffing tools </a>
</nav>
<!-- Sidebar -->
<div class="sidebar" id="sidebar">
<ul>
<li><a href="#stateInfo" data-tab="stateInfo"><i class="fas fa-map-marker-alt"></i> <span class="menu-text">State Info</span></a></li>
<li><a href="#rateConversion" data-tab="rateConversion"><i class="fas fa-exchange-alt"></i> <span class="menu-text">Converters</span></a></li>
<li><a href="#emailHandling" data-tab="emailHandling"><i class="fas fa-envelope"></i> <span class="menu-text">Email Handling</span></a></li>
<li><a href="#calenderInfo" data-tab="calenderInfo"><i class="fas fa-calendar-alt"></i> <span class="menu-text">Calendar Info</span></a></li>
<li><a href="#importantLinks" data-tab="importantLinks"><i class="fas fa-link"></i> <span class="menu-text">Important Links</span></a></li>
<li><a href="#visaDetails" data-tab="visaDetails"><i class="fas fa-passport"></i> <span class="menu-text">Visa Details</span></a></li>
<li><a href="#interview" data-tab="interview"><i class="fas fa-user-tie"></i> <span class="menu-text">Interview</span></a></li>
<li><a href="#staffingInfo" data-tab="staffingInfo"><i class="fas fa-dice"></i> <span class="menu-text">Entertainment</span></a></li>
<li><a href="#contactUs" data-tab="contactUs"><i class="fas fa-phone-alt"></i> <span class="menu-text">Contact Us</span></a></li>
</ul>
</div>
<!-- Main Content -->
<div class="main-content">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
/* Main Interface Styles */
.icon-container {
position: fixed;
right: 20px;
bottom: 60px;
z-index: 1000;
}
.main-icon {
width: 60px;
height: 60px;
background: #007bff;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.main-icon i {
color: white;
font-size: 24px;
}
.main-icon:hover {
background: #0056b3;
transform: rotate(135deg);
}
.vertical-icons {
position: absolute;
bottom: 70px;
right: 0;
display: none;
flex-direction: column;
gap: 15px;
}
.icon-item {
width: 50px;
height: 50px;
background: #007bff;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.3s;
}
.icon-item i {
color: white;
font-size: 18px;
}
.icon-item:hover {
background: #0056b3;
transform: scale(1.1);
}
/* Popup Styles */
.popup {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
justify-content: center;
align-items: center;
z-index: 999;
}
.popup-content {
background: white;
border-radius: 10px;
position: relative;
width: 50%;
min-height: auto;
min-width: 300px;
padding: 20px;
display: flex;
flex-direction: column;
}
.popup-content h2 {
margin: 0 0 15px 0;
padding-bottom: 10px;
border-bottom: 2px solid #eee;
color: #333;
}
.close-btn {
position: absolute;
top: -15px;
right: -15px;
width: 30px;
height: 30px;
background: #ff4444;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
z-index: 1001;
}
/* Calculator Popup Styles */
#calculator-popup .popup-content {
width: 420px;
padding: 15px;
}
.calculator {
width: 100%;
}
.display {
background-color: #f8f9fa;
padding: 15px;
border-radius: 5px;
margin-bottom: 15px;
}
#history {
font-size: 14px;
color: #6c757d;
text-align: right;
min-height: 20px;
margin-bottom: 5px;
overflow-y: auto;
max-height: 60px;
}
#current {
width: 100%;
border: none;
font-size: 24px;
text-align: right;
background-color: transparent;
outline: none;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
}
button {
padding: 15px;
font-size: 18px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: #f8f9fa;
transition: all 0.2s;
}
button:hover {
background-color: #e9ecef;
}
.operator {
background-color: #007bff;
color: white;
}
.operator:hover {
background-color: #0056b3;
}
#equals {
background-color: #28a745;
color: white;
grid-column: span 2;
}
#backspace {
background-color: #dc3545;
color: white;
}
/* Notes Popup Styles */
.content-editable {
width: 100%;
height: 300px;
border: 2px solid #ddd;
border-radius: 8px;
padding: 15px;
outline: none;
overflow: auto;
font-family: Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
}
.content-editable:empty::before {
content: "Start typing here...";
color: #999;
}
/* Cart Popup Styles */
.popup-body ul {
list-style: none;
padding: 0;
margin: 0 0 15px 0;
}
.popup-body li {
margin-bottom: 10px;
padding: 8px;
background: #f8f9fa;
border-radius: 6px;
display: flex;
align-items: center;
gap: 8px;
}
.fa-check-circle { color: #2563eb; }
.fa-long-arrow-alt-right { color: #28a745; }
.terms-link {
font-size: 15px;
text-decoration: none;
font-weight: bold;
color: #2563eb;
margin: 10px 0;
display: inline-block;
}
#paymentForm {
margin-top: 15px;
height: 40px;
width: 100%;
}
/* Responsive Styles */
@media (max-width: 768px) {
.icon-container {
bottom: 40px;
right: 15px;
}
.popup-content {
width: calc(100% - 40px) !important;
margin: 20px;
}
#calculator-popup .popup-content {
width: calc(100% - 40px);
}
button {
padding: 12px;
font-size: 16px;
}
.content-editable {
height: 50vh;
padding: 10px;
font-size: 14px;
}
}
/* Chat Assistant Styles */
.AIChatBox {
height: 300px;
max-height: 300px;
overflow-y: auto;
padding: 10px;
border: 1px solid #ddd;
border-radius: 8px;
margin-bottom: 15px;
background-color: #f9f9f9;
}
.AIMessage {
margin-bottom: 10px;
padding: 10px;
border-radius: 8px;
max-width: 80%;
position: relative;
}
.AIUserMessage {
background-color: #007bff;
color: white;
margin-left: auto;
}
.AIBotMessage {
background-color: #f1f1f1;
color: #333;
margin-right: auto;
}
.AICopyIcon {
position: absolute;
right: 10px;
bottom: 10px;
cursor: pointer;
color: #007bff;
}
.AICopyIcon:hover {
color: #0056b3;
}
.AIInputContainer {
display: flex;
gap: 10px;
}
.AIInput {
flex: 1;
padding: 10px;
border: 1px solid #ddd;
border-radius: 20px;
outline: none;
}
.AISendButton {
background-color: #007bff;
color: white;
border: none;
padding: 10px 15px;
border-radius: 20px;
cursor: pointer;
}
.AISendButton:disabled {
background-color: #ccc;
cursor: not-allowed;
}
.AILoading {
text-align: center;
margin-top: 10px;
}
.fa-spinner {
font-size: 24px;
color: #007bff;
}
/* Table Styling */
.AIBotMessage table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
border: 1px solid #ddd;
}
.AIBotMessage th, .AIBotMessage td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
.AIBotMessage th {
background-color: #007bff;
color: white;
}
/* Hidden Popup Styling */
.AICopyPopup {
position: fixed;
bottom: 20px;
right: 20px;
background: #28a745;
color: white;
padding: 10px 15px;
border-radius: 5px;
display: none;
z-index: 1000;
}
.no-hover-effect path:hover {
fill: #0056b3 !important; /* Reset fill */
}
.no-hover-effect:hover {
transform: scale(1.1); /* Scale up */
transition: transform 0.3s ease, background 0.3s ease; /* Smooth transition */
}
</style>
<!-- Icon Container -->
<div class="icon-container">
<!-- Poppup Ads start -->
<!-- Popup Ads End -->
<div class="main-icon" id="mainIcon">
<i class="fas fa-plus"></i>
</div>
<div class="vertical-icons" id="verticalIcons">
<div class="icon-item" title="Calculator" data-popup="calculator-popup">
<i class="fas fa-calculator" title="Calculator"></i>
</div>
<div class="icon-item" title="Notes" data-popup="notes-popup">
<i class="fas fa-sticky-note" title="Notes" ></i>
</div>
<div class="icon-item" title="Email US" data-popup="email-popup">
<i class="fas fa-envelope" title="Email US"></i>
</div>
<div class="icon-item" title="Buy Now" data-popup="cart-popup">
<i class="fas fa-shopping-cart" title="Buy Now"></i>
</div>
<div class="icon-item" title="AI Chat" data-popup="services-popup">
<svg class="no-hover-effect" width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill="white" transform="translate(9,7) scale(0.7)" d="M20 2H4C2.9 2 2 2.9 2 4V14C2 15.1 2.9 16 4 16H5V19L9 16H20C21.1 16 22 15.1 22 14V4C22 2.9 21.1 2 20 2ZM6 9C5.45 9 5 8.55 5 8C5 7.45 5.45 7 6 7C6.55 7 7 7.45 7 8C7 8.55 6.55 9 6 9ZM11 9C10.45 9 10 8.55 10 8C10 7.45 10.45 7 11 7C11.55 7 12 7.45 12 8C12 8.55 11.55 9 11 9ZM16 9C15.45 9 15 8.55 15 8C15 7.45 15.45 7 16 7C16.55 7 17 7.45 17 8C17 8.55 16.55 9 16 9Z"/>
<text x="50%" y="85%" fill="white" font-size="7px" font-family="Arial" text-anchor="middle">AI Chat</text>
</svg>
</div>
</div>
</div>
<!-- Calculator Popup -->
<div class="popup" id="calculator-popup">
<div class="popup-content">
<span class="close-btn">×</span>
<div class="calculator">
<div class="display">
<div id="history"></div>
<input type="text" id="current" readonly>
</div>
<div class="buttons">
<button class="operator" data-value="C">C</button>
<button id="backspace" data-value="backspace"><i class="fas fa-backspace"></i></button>
<button data-value="00">00</button>
<button class="operator" data-value="/">/</button>
<button data-value="1">1</button>
<button data-value="2">2</button>
<button data-value="3">3</button>
<button class="operator" data-value="*">*</button>
<button data-value="4">4</button>
<button data-value="5">5</button>
<button data-value="6">6</button>
<button class="operator" data-value="-">-</button>
<button data-value="7">7</button>
<button data-value="8">8</button>
<button data-value="9">9</button>
<button class="operator" data-value="+">+</button>
<button data-value="0">0</button>
<button data-value=".">.</button>
<button id="equals" data-value="=">=</button>
</div>
</div>
</div>
</div>
<!-- Notes Popup -->
<div class="popup" id="notes-popup">
<div class="popup-content">
<span class="close-btn">×</span>
<h2>Notes</h2>
<div class="content-editable" contenteditable="true"></div>
</div>
</div>
<!-- Shopping Cart Popup -->
<div class="popup" id="cart-popup">
<div class="popup-content">
<span class="close-btn">×</span>
<h2>What you get?</h2>
<div class="popup-body">
<ul>
<li><i class="fas fa-check-circle"></i>Active 15,000+ vendors list for Technical recruiters for all C2C roles</li>
<li><i class="fas fa-check-circle"></i>Brand new 200+ Prime Vendor's Name and company name List to work on C2C & W2 roles for BDE</li>
<li><i class="fas fa-long-arrow-alt-right"></i>Receive access within 20-30 minutes after payment</li>
</ul>
<center>
<b>Before Doing Payment read our </b>
<a class="terms-link" href="#" onclick="openModal()">
Terms & Conditions <i class="fas fa-check-circle"></i>
</a>
<div id="paymentForm">
<form id="rzpForm"></form>
</div>
</center>
</div>
</div>
</div>
<style>
.notiff{
padding:2px;
margin:3px;
color:red;
}
#emailContainer .notiff {
display: none;
}
#emailContainer:hover .notiff {
display: block;
}
</style>
<!-- Other Popups -->
<div class="popup" id="email-popup">
<div class="popup-content">
<span class="close-btn">×</span>
<h2>Want Email?</h2>
<div class="popup-body">
<div class="card">
<div class="card-body">
<div id="emailContainer">
<b>Please send your email to me to receive daily requirements!</b>
<strong class="notiff">Only for Benchsales Recruiters**</strong>
<br>
<form id="emailForm">
<div class="form-group">
<input type="email" class="form-control" id="email" name="email" placeholder="Type Email If you are BenchSales" required>
</div>
<button type="submit" class="btn btn-primary">Send Email <i class="fa-solid fa-envelope"></i></button>
</form>
</div>
</div>
</div>
<script>
const form = document.getElementById('emailForm');
form.addEventListener('submit', async (e) => {
e.preventDefault();
const formData = new FormData(form);
const url = 'https://script.google.com/macros/s/AKfycbzd19Lr4aju-TLwqwLiCel6o0aLpUnOsbm2CqQTktBtavYktq6lF0l27iD7Hnqd912JOw/exec'; // Updated URL with CORS Anywhere
try {
const response = await fetch(url, {
method: 'POST',
body: formData
});
if (response.ok) {
alert('Email submitted successfully!');
form.reset();
} else {
console.error('Server Error:', response.statusText);
alert('Failed to submit email.');
}
} catch (error) {
console.error('Client Error:', error);
alert('An error occurred while submitting the form.');
}
});
</script>
</div>
</div>
</div>
<div class="popup" id="services-popup">
<div class="popup-content">
<span class="close-btn">×</span>
<h2>AI Chat Assistant</h2>
<div class="popup-body">
<!-- Chat Box -->
<div class="AIChatBox" id="AIChatBox">
<!-- Chat messages will appear here -->
</div>
<!-- Input Container -->
<div class="AIInputContainer">
<input type="text" id="AIUserInput" class="AIInput" placeholder="Type your question here..." disabled>
<button id="AISendButton" class="AISendButton" disabled>
<i class="fas fa-paper-plane"></i>
</button>
</div>
<!-- Loading Icon -->
<div id="AILoading" class="AILoading" style="display: none;">
<i class="fas fa-spinner fa-spin"></i>
</div>
</div>
</div>
</div>
<script>
// Enable input and button initially
document.getElementById('AIUserInput').disabled = false;
document.getElementById('AISendButton').disabled = false;
// Add event listeners
document.getElementById('AISendButton').addEventListener('click', sendMessage);
document.getElementById('AIUserInput').addEventListener('keypress', function (e) {
if (e.key === 'Enter') {
sendMessage();
}
});
// Function to parse rich text and convert it to HTML
function parseRichText(response) {
// Replace **bold** with <strong>bold</strong>
response = response.replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>');
// Replace *italic* with <em>italic</em>
response = response.replace(/\*(.*?)\*/g, '<em>$1</em>');
// Replace _underline_ with <u>underline</u>
response = response.replace(/_(.*?)_/g, '<u>$1</u>');
// Replace bullet points with <ul> and <li>
response = response.replace(/(\n\s*-\s+.*)+/g, (match) => {
const items = match.split('\n').filter(line => line.trim() !== '');
const listItems = items.map(item => `<li>${item.replace('- ', '').trim()}</li>`).join('');
return `<ul>${listItems}</ul>`;
});
// Replace numbered lists with <ol> and <li>
response = response.replace(/(\n\s*\d+\.\s+.*)+/g, (match) => {
const items = match.split('\n').filter(line => line.trim() !== '');
const listItems = items.map(item => `<li>${item.replace(/^\d+\.\s*/, '').trim()}</li>`).join('');
return `<ol>${listItems}</ol>`;
});
// Replace paragraphs with <p>
response = response.replace(/(\n\n)/g, '</p><p>');
response = `<p>${response}</p>`;
// Replace titles with <h3>
response = response.replace(/(\n#\s+.*)/g, (match) => {
return `<h3>${match.replace('#', '').trim()}</h3>`;
});
// Check if the message contains a table
if (response.includes('|')) {
const tableRegex = /(\|.*\|(\n\|.*\|)+)/g; // Match the entire table block
const tableMatches = response.match(tableRegex);
if (tableMatches) {
// Process only the first occurrence of the table
const tableBlock = tableMatches[0];
const rows = tableBlock.split('\n').filter(row => row.trim() !== '');
const tableHTML = `<table class="table table-bordered table-striped">${rows
.map((row) => {
const cells = row.split('|').filter((cell) => cell.trim() !== '');
return `<tr>${cells.map((cell) => `<td>${cell.trim()}</td>`).join('')}</tr>`;
})
.join('')}</table>`;
// Replace the entire table block with the generated HTML
response = response.replace(tableRegex, tableHTML);
}
}
return response;
}
// Function to send a message
function sendMessage() {
const userInput = document.getElementById('AIUserInput');
const chatBox = document.getElementById('AIChatBox');
const sendButton = document.getElementById('AISendButton');
const loadingIcon = document.getElementById('AILoading');
if (userInput.value.trim() === '') return;
// Disable input and button
userInput.disabled = true;
sendButton.disabled = true;
// Show loading icon
loadingIcon.style.display = 'block';
// Display user's message
const userMessage = document.createElement('div');
userMessage.classList.add('AIMessage', 'AIUserMessage');
userMessage.textContent = userInput.value;
chatBox.appendChild(userMessage);
// Clear input
const question = userInput.value;
userInput.value = '';
// Scroll to bottom
chatBox.scrollTop = chatBox.scrollHeight;
// Send question to Gemini AI
fetchGeminiResponse(question)
.then(response => {
// Parse rich text and convert to HTML
const formattedResponse = parseRichText(response);
// Display AI's response
const botMessage = document.createElement('div');
botMessage.classList.add('AIMessage', 'AIBotMessage');
botMessage.innerHTML = formattedResponse;
// Add copy icon
const copyIcon = document.createElement('i');
copyIcon.className = 'fas fa-copy AICopyIcon';
copyIcon.onclick = () => {
// Copy the entire bot message to clipboard
const range = document.createRange();
range.selectNodeContents(botMessage);