-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.html
More file actions
5601 lines (5025 loc) · 335 KB
/
table.html
File metadata and controls
5601 lines (5025 loc) · 335 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>
<!-- saved from url=(0042)http://s01.massprospecting.com:3000/unibox -->
<html
class="js flexbox canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers no-applicationcache no-svg no-inlinesvg no-smil no-svgclippaths"
style=""
>
<!--<!
[endif]--><!-- Message and error alerts -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- NO GA CONFIGURED -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<title>MassProspecting - AI-Driven Multi-Channel Outreach System</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" href="./assets/images/favicon.png" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- TODO: setup this as an account property -->
<script async="" src="./assets/js/misc.js"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-XHCG5LE744");
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
src="./assets/js/adminflare-demo-init.min.js"
type="text/javascript"
></script>
<link href="./assets/css/misc.css" rel="stylesheet" type="text.css" />
<script type="text/javascript">
DEMO_CURRENT_THEME = "black-blue";
/*
// Include Bootstrap stylesheet
document.write(
'<link href="/core/css/' +
DEMO_ADMINFLARE_VERSION +
"/" +
DEMO_CURRENT_THEME +
'/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" id="bootstrap-css">'
);
// Include AdminFlare stylesheet
document.write(
'<link href="/core/css/' +
DEMO_ADMINFLARE_VERSION +
"/" +
DEMO_CURRENT_THEME +
'/adminflare.min.css" media="all" rel="stylesheet" type="text/css" id="adminflare-css">'
);
// Include AdminFlare page stylesheet
document.write(
'<link href="/core/css/' +
DEMO_ADMINFLARE_VERSION +
'/pages.css" media="all" rel="stylesheet" type="text/css">'
);
// Include Style to Draw Wizards
document.write(
'<link href="/core/css/wizard.css" media="all" rel="stylesheet" type="text/css">'
);
// Include Style to Draw Plan Tables
document.write(
'<link href="/core/css/plantable.css" media="all" rel="stylesheet" type="text/css">'
);
// Include Style to Draw Landing Pages
// document.write('<link href="/core/css/landing.css" media="all" rel="stylesheet" type="text/css">');
// Include Awesomplete stylesheet
document.write(
'<link href="/core/css/awesomplete.css" media="all" rel="stylesheet" type="text/css">'
);
// Include FilterJS stylesheet
document.write(
'<link href="/core/css/filters.css" media="all" rel="stylesheet" type="text/css">'
);
// Include NavBar
document.write(
'<link href="/core/css/navbar.css" media="all" rel="stylesheet" type="text/css" id="ajax-navbar-css">'
);
// Include Dialog
document.write(
'<link href="/core/css/dialog.css" media="all" rel="stylesheet" type="text/css" id="ajax-dialog-css">'
);
*/
</script>
<link
href="./assets/css/bootstrap.min.css"
media="all"
rel="stylesheet"
type="text/css"
id="bootstrap-css"
/>
<link
href="./assets/css/adminflare.min.css"
media="all"
rel="stylesheet"
type="text/css"
id="adminflare-css"
/>
<link
href="./assets/css/pages.css"
media="all"
rel="stylesheet"
type="text/css"
/>
<link
href="./assets/css/wizard.css"
media="all"
rel="stylesheet"
type="text/css"
/>
<link
href="./assets/css/plantable.css"
media="all"
rel="stylesheet"
type="text/css"
/>
<link
href="./assets/css/awesomplete.css"
media="all"
rel="stylesheet"
type="text/css"
/>
<link
href="./assets/css/filters.css"
media="all"
rel="stylesheet"
type="text/css"
/>
<link
href="./assets/css/navbar.css"
media="all"
rel="stylesheet"
type="text/css"
id="ajax-navbar-css"
/>
<link
href="./assets/css/dialog.css"
media="all"
rel="stylesheet"
type="text/css"
id="ajax-dialog-css"
/>
<link
href="./assets/css/filters(1).css"
media="all"
rel="stylesheet"
type="text/css"
/>
<script type="text/javascript">
// behaviour of pages when load
let hide_loading_message_after_page_load = true;
//
const reLinkedInGroup =
/^http(s)?:\/\/(www\.)?linkedin\.com\/groups\/(\d+)(\/(profile)?)?$/;
const reLinkedInGroupUrlCode = /(\d+)/;
function getLinkedInGroupUrlCode(url) {
if (!reLinkedInGroup.test(url)) {
return null;
}
return url.match(reLinkedInGroupUrlCode)[0];
}
// apply tooltips CSS to any element with a title attribue
function applyToolTips() {
$("[title]").tooltip({
placement: "bottom",
});
}
// enable select-all-text when focus on any input with class `select-all-on-focus`
function enableSelectAllTextOnFocus() {
$(".select-all-on-focus").focus(function () {
this.select();
});
}
// this function check/uncheck all the rows,
// then calls methods h['afterCallback'] in order.
function enableSelectRows(h) {
// update list of selected rows
function updateSelectedIDs() {
a = $(".selected-ids");
i = 0;
a.val("");
$(".select-row:checked").each(function (index) {
if (i > 0) {
a.val(a.val() + ",");
}
a.val(a.val() + $(this).data("id"));
i++;
});
}
// initialize selected rows, only if sessionPersistance is on.
if (h["sessionPersistance"] == true) {
$(".selected-ids")
.val()
.split(",")
.forEach(function (id) {
$('.select-row[data-id="' + id + '"]').prop("checked", true);
});
// callback function for after you select/unselect rows
h["afterCallback"]();
}
// select/unselect all rows.
$(".select-all-rows").click(function () {
b = $(this);
d = $(".select-row");
if (b.prop("checked")) {
d.prop("checked", true);
} else {
d.prop("checked", false);
}
// update list of selected rows
updateSelectedIDs();
// callback function for after you select/unselect rows
h["afterCallback"]();
});
// select/unselect one signle row
$(".select-row").click(function () {
// update list of selected rows
updateSelectedIDs();
// callback function for after you select/unselect rows
h["afterCallback"]();
});
}
//
function selectRow(id) {
$('.select-row[data-id="' + id + '"]').prop("checked", true);
}
//
function newHttpRequest() {
var xmlhttp;
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
return xmlhttp;
}
//
function newXmlParser(txt) {
if (window.DOMParser) {
parser = new DOMParser();
xmlDoc = parser.parseFromString(txt, "text/xml");
} // Internet Explorer
else {
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = false;
xmlDoc.loadXML(txt);
}
return xmlDoc;
}
//
function addEvent(element, eventName, fn) {
if (element.addEventListener)
element.addEventListener(eventName, fn, false);
else if (element.attachEvent) element.attachEvent("on" + eventName, fn);
}
function showWait(s) {
$("#wait").show();
$("#wait-caption").text(s);
}
function hideWait(s) {
$("#wait").hide();
}
function semiTransparentLinks() {
// make all the .semi-transparent-link semi-transparent
$(".semi-transparent-link").css("opacity", "0.5");
// a .semi-transparent-link link gets opaciity when the mouse pointer is over
$(".semi-transparent-link").hover(
function () {
$(this).css("opacity", "1");
},
function () {
$(this).css("opacity", "0.5");
}
);
}
function formatLinks() {
// remove text decoration from all links
$("a").css("text-decoration", "none");
// remove text decoration from all buttons with class .btn-link
$(".btn-link").css("text-decoration", "none");
}
</script>
<script
src="./assets/js/modernizr-jquery.min.js"
type="text/javascript"
></script>
<script
src="./assets/js/react-1.0.2.min.js"
type="text/javascript"
></script>
<script
src="./assets/js/contenteditable.js"
type="text/javascript"
></script>
<script
src="./assets/js/bootstrap.min.js"
type="text/javascript"
></script>
<script
src="./assets/js/tinymce.min.js"
referrerpolicy="origin"
></script>
<script
src="./assets/js/awesomplete.min.js"
type="text/javascript"
></script>
<script
src="./assets/js/adminflare.min.js"
type="text/javascript"
></script>
<!-- TODO: Getting javascript error when enable this line.
<script src="/landing/javascripts/ajax_status-1.0.1.min.js" type="text/javascript"></script>
-->
<!-- Include JS files of extensions -->
<script
src="./assets/js/selectrows.min.js"
type="text/javascript"
></script>
<script src="./assets/js/filters.min.js" type="text/javascript"></script>
<style>
// Modals to show pictures in carousel
img.screenshot {
margin-bottom: 10px;
border: 1px solid #ddd;
shadow: 0 1px 4px rgba(0, 0, 0, 0.067);
// link like mouse pointer
cursor: pointer;
}
div.screenshot-modal {
display: none;
position: fixed;
z-index: 100000000000;
//top: 50px;
//left: 50px;
//right: 50px;
//bottom: 50px;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
border: 5px solid #ddd;
//border-radius: 50px;
//width: 100%;
//height: 100%;
}
div.screenshot-modal img {
width: 100%;
height: 100%;
}
div.screenshot-modal button.close {
position: absolute;
top: 50px;
right: 50px;
//border-radius: 50px;
font-size: 50pt;
background-color: white;
z-index: 100000000001;
color: blue;
text-decoration: none;
}
div.screenshot-modal button.next {
position: absolute;
top: 50%;
right: 50px;
//border-radius: 50px;
font-size: 50pt;
background-color: white;
z-index: 100000000001;
color: blue;
text-decoration: none;
}
div.screenshot-modal button.prev {
position: absolute;
top: 50%;
left: 50px;
zz font-size: 50pt;
background-color: white;
z-index: 100000000001;
color: blue;
text-decoration: none;
}
// Tables with clickeable rows to show details in the right-side bar
table tbody tr.clickeable td {
cursor: pointer;
}
table tbody tr.clickeable td:last-child {
border-right: 5px dashed rgb(245,245,245);
}
table tbody tr.clickeable:hover td:last-child {
border-right: 5px dashed rgb(255,175,175);
}
table tbody tr.clickeable:hover td {
background-color: rgb(245,245,245);
}
table tbody tr.selected td:last-child {
border-right: 5px dashed red;
}
/* Dark Mode Bootstrap Add-on */
/* General Dark Mode Colors */
body.dark-mode {
/* Background Image */
//background: linear-gradient(90deg, rgba(44, 0, 62, 0.8), rgba(18, 1, 54, 0.8)), url('/core/images/blockquote-bg.png') no-repeat center center fixed;
background: url('/core/images/blockquote-bg.png') no-repeat center center fixed;
background-size: cover;
color: #f1f1f1;
/* Ensure the background covers the entire viewport */
min-height: 100vh;
/* Optional: Fallback background color in case the image doesn't load */
background-color: #120136;
}
.dark-mode .bg-dark {
background-color: #1c1c1c !important;
}
.dark-mode .text-light {
color: #e0e0e0 !important;
}
.dark-mode .text-muted {
color: #a0a0a0 !important;
}
/* Navbar */
.dark-mode .navbar {
background-color: rgba(31, 31, 31, 0.22); /* Semi-transparent */
border-bottom: 1px solid #333;
}
.dark-mode .navbar .nav-link {
color: #f1f1f1 !important;
}
.dark-mode .navbar .nav-link:hover {
color: #e6e6e6 !important;
}
/* Buttons */
.dark-mode .btn {
color: #fff;
background-color: #444;
border-color: #555;
}
.dark-mode .btn:hover {
background-color: #555;
border-color: #666;
}
/* Card Component */
.dark-mode .card {
background-color: rgba(28, 28, 28, 0.22); /* Semi-transparent */
border-color: #333;
}
.dark-mode .card-header {
background-color: rgba(42, 42, 42, 0.22); /* Semi-transparent */
border-bottom: 1px solid #444;
}
.dark-mode .card-body {
color: #e0e0e0;
}
/* Form Elements */
.dark-mode .form-control {
background-color: rgba(46, 46, 46, 0.22); /* Semi-transparent */
color: #e0e0e0;
border-color: #444;
}
.dark-mode .form-control::placeholder {
color: #a0a0a0;
}
.dark-mode .form-select {
background-color: rgba(46, 46, 46, 0.22); /* Semi-transparent */
color: #e0e0e0;
border-color: #444;
}
/* Table Component */
.dark-mode .table {
color: #e0e0e0;
background-color: rgba(31, 31, 31, 0.22); /* Semi-transparent */
}
.dark-mode .table thead {
background-color: rgba(42, 42, 42, 0.22); /* Semi-transparent */
}
.dark-mode .table tbody tr {
border-color: #444;
}
.dark-mode .table-striped tbody tr:nth-of-type(odd) {
background-color: rgba(44, 44, 44, 0.22); /* Semi-transparent */
}
/* Tooltip & Popover */
.dark-mode .tooltip {
background-color: #444;
color: #f1f1f1;
}
.dark-mode .popover {
background-color: rgba(42, 42, 42, 0.22); /* Semi-transparent */
color: #f1f1f1;
}
/* Modals */
.dark-mode .modal-content {
background-color: rgba(30, 30, 30, 0.22); /* Semi-transparent */
color: #e0e0e0;
}
.dark-mode .modal-header {
border-bottom: 1px solid #333;
}
.dark-mode .modal-footer {
border-top: 1px solid #333;
}
/* Alerts */
.dark-mode .alert {
background-color: rgba(42, 42, 42, 0.22); /* Semi-transparent */
color: #f1f1f1;
border-color: #444;
}
/* Utility Classes */
.bg-dark-mode {
background-color: #121212 !important;
}
.text-dark-mode {
color: #f1f1f1 !important;
}
/* Sections and Divs */
.dark-mode section.row-fluid {
background-color: rgba(17, 17, 17, 0.22); /* Semi-transparent */
color: #fff;
}
.dark-mode section.row-fluid div {
background-color: rgba(17, 17, 17, 0.22); /* Semi-transparent */
color: #fff;
}
.dark-mode section.div {
background-color: rgba(0, 0, 0, 0.22); /* Semi-transparent */
color: #fff;
}
.dark-mode table {
background-color: rgba(0, 0, 0, 0.22); /* Semi-transparent */
color: #fff;
}
.dark-mode th {
background-color: rgba(0, 0, 0, 0.22); /* Semi-transparent */
color: #fff;
}
.dark-mode tr {
background-color: rgba(0, 0, 0, 0.22); /* Semi-transparent */
color: #fff;
}
.dark-mode td {
background-color: rgba(0, 0, 0, 0.22); /* Semi-transparent */
color: #fff;
}
.dark-mode p {
color: #fff;
}
.dark-mode span {
color: #fff;
}
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4 {
color: #fff;
}
.dark-mode a {
color: #ddf;
}
.dark-mode a:hover {
color: #eeef;
}
// general styles
a {
text-decoration: none;
}
button.btn-link {
text-decoration:none;
}
img.avatar {
border-radius: 50%;
}
/*
* Dark mode
*
*/
/*
body {
background-color: black;
border-color: black transparent;
border: 1px solid black;
padding-top: 0px;
padding-left: 0px;
margin-top: 35px;
margin-left: 85px;
}
section {
background-color: black;
border-color: black transparent;
border: 1px solid black;
//padding: 0px;
//margin: 0px;
}
div {
background-color: black;
border-color: black transparent;
border: 1px solid black;
//padding: 0px;
//margin: 0px;
}
table {
background-color: black;
border-color: black transparent;
border: 1px solid black;
padding: 0px;
margin: 0px;
}
tbody {
background-color: black;
border-color: black transparent;
border: 1px solid black;
padding: 0px;
margin: 0px;
}
thead {
background-color: black;
border-color: black transparent;
border: 1px solid black;
padding: 0px;
margin: 0px;
}
*/
/*
* Dark mode
*
*/
section.dark {
background-color: black;
color: white;
}
section.dark input {
background-color: black;
color: white;
}
section.dark table tbody tr {
background-color: black;
border: 2px none black;
}
section.dark table tbody tr:hover {
background-color: rgb(30,30,30);
border: 2px solid yellow;
}
/*
* Style for fullscreen dashboard
*
*/
section.fullscreen {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index:999999999;
}
section.maximizable div.controls {
position:relative;
width: 100%;
}
section.maximizable div.controls button {
position:absolute;
top:-25px;
right:-25px;
}
/*
if the section is in fullscreen mode, then the header of the table will be sticky to the top even if the table is scrolled down.
reference: https://csslayout.io/sticky-table-headers/
*/
section.fullscreen table thead {
position: sticky;
top: 0;
z-index: 9999999;
opacity: 1.0;
background-color: black;
}
/*
* Style for scripts shown in both the responses and pipeline edition screen.
*
*/
pre {
mergin: 0px;
padding: 0px;
border:0px;
background-color: transparent;
font-size: 14px;
font-name: Arial;
color: rgb(64, 97, 140);
}
span.filesample {
font-size: 12px;
font-name: Arial;
color: rgb(64, 97, 140);
border: 1px rgb(175,175,175) solid;
border-radius: 5px;
background-color: rgb(235,235,235);
margin: 5px;
padding: 5px;
}
pre.filesample {
font-size: 12px;
font-name: Arial;
color: rgb(64, 97, 140);
border: 1px rgb(175,175,175) solid;
border-radius: 5px;
background-color: rgb(235,235,235);
margin: 5px;
padding: 5px;
}
/*
* Waiting GIF
*
*/
div.wait {
position: absolute;
z-index: 1000;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: rgba( 255, 255, 255, .8 );
}
/*
* Popups
*
*/
div.popup {
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
z-index:99999;
background-color:white;
opacity: 0.22;
overflow-y:scroll;
display:none;
}
div.popup div.top-right-buttons {
position:absolute;
top:17px;
right:17px;
}
div.popup div.area {
position:relative;
top:15%;
left:15%;
width:70%;
height:70%;
}
div.popup div.area h1 {
margin-bottom:34px;
}
/*
*
*/
span.yellow-backgrownd {
background-color: yellow;
color: black;
}
div.fixed-position {
position: fixed;
}
.same-line {
display: inline-block;
}
.loading-container {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: white;
opacity: 0.5;
text-align: center;
padding-top: 45vh;
display: none;
z-index: 9999;
}
#loader {
//border: 16px solid #f3f3f3;
//border-radius: 50%;
//border-top: 16px solid #3498db;
width: 120px;
height: 120px;
-webkit-animation: spin 2s linear infinite;
/* Safari */
animation: spin 2s linear infinite;
position: relative;
}
#loader img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
table.fix {
table-layout: fixed;
}
table.fix td.fix {
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
</style>
<script type="text/javascript">
// clickeable rows
function on_click_tr_clickeable(o) {
var id = $(o).data("id");
// if the row is not selected, then add the class selected
if ($(o).hasClass("selected") == false) {
$(o).addClass("selected");
}
// remove the class selected from all the other rows tr.clickeable.
$("tr.clickeable").each(function () {
if ($(this).data("id") != id) {
$(this).removeClass("selected");
}
});
}
// images carousel functions
function update_numbers() {
img = $("#screenshot_modal_img");
var number = parseInt($(img).attr("data-number"));
var total = $(".screenshot").length;
$("#number").html(number + 1);
$("#total").html(total);
}
function next_screenshot() {
img = $("#screenshot_modal_img");
var number = parseInt($(img).attr("data-number"));
var next_number = number + 1;
var total = $(".screenshot").length;
if (next_number >= total) {
next_number = 0;
}
// get the src of the next image
let q = "#screenshot-" + next_number.toString();
let src = $(q).attr("src");
$(img).attr("src", src);
$(img).attr("data-number", next_number);
// update the number
update_numbers();
}
function prev_screenshot() {
img = $("#screenshot_modal_img");
var number = parseInt($(img).attr("data-number"));
var prev_number = number - 1;
var total = $(".screenshot").length;
if (prev_number < 0) {
prev_number = total - 1;
}
// get the src of the next image
let q = "#screenshot-" + prev_number.toString();
let src = $(q).attr("src");
$(img).attr("src", src);
$(img).attr("data-number", prev_number);
// update the number
update_numbers();
}
// on click on .close, hide the screenshot modal
$("#screenshot_modal .close").click(function () {
$("#screenshot_modal").hide();
});
// on press escape, hide the screenshot modal
$(document).keyup(function (e) {
if (e.keyCode == 27) {
$("#screenshot_modal").hide();
}
});
// on click on the image, go to the next image
$("#screenshot_modal_img").click(function () {
next_screenshot();
});
// on click on the next button, go to the next image
$("#screenshot_modal .next").click(function () {
next_screenshot();
});
// on press the right arrow, go to the next image
$(document).keyup(function (e) {
if (e.keyCode == 39) {
next_screenshot();
}
});
// on click on the prev button, go to the prev image
$("#screenshot_modal .prev").click(function () {
prev_screenshot();
});
// on press the left arrow, go to the prev image
$(document).keyup(function (e) {
if (e.keyCode == 37) {
prev_screenshot();
}
});
// draw pagination function
//
function drawPagination(o, current_page, total_pages, page_size = 10) {
url = "?p="; // url to get the next page
o.html("");
u = $("<ul></ul>");
o.append(u);
if (current_page > 1) {
li = $(
'<li><a href="' +
url +
(current_page - 1).toString() +
'">Prev</a></li>'
);
} else {
li = $('<li class="disabled"><a href="#">Prev</a></li>');
}
u.append(li);
i = 1;
i_prev = 1;
while (i <= total_pages) {
if (i == current_page) {
sClassActive = "class='active'";
} else {
sClassActive = "";
}
if (
i == 1 ||
i == total_pages ||
(i >= current_page - 2 && i <= current_page + 2)
) {
if (i > i_prev + 1) {
li = $("<li><span>...</span></li>");
u.append(li);
}
li = $(
"<li " +
sClassActive +
'><a href="' +
url +
i.toString() +
'">' +
i.toString() +
"</a></li>"
);
u.append(li);
i_prev = i;
}
i = i + 1;
}
if (current_page < total_pages) {
i = $(
'<li><a href="./' +
url +
(current_page + 1).toString() +
'">Next</a></li>'
);
} else {
i = $('<li class="disabled"><a href="#">Next</a></li>');
}