-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1647 lines (1470 loc) · 78.4 KB
/
index.html
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 data-theme="classic" lang="en">
<head>
<link rel="shortcut icon" href="favicon.png" />
<!-- Required meta tags -->
<meta charset="utf-8">
<title>EzGitDoc</title>
<meta name="description" content="EzGitDoc is an open source tool that improves documentation experience(especially on GitHub). It allows to create custom scheme without touching markdown and modify data as desired on EzGitDoc or later(within generated code) replacing basic values. UI is minimalistic so you don't need to waste time to learn it. Write less click more, give your hands break. Check it out.">
<meta name="author" content="Pawel Idzikowski, trolit">
<meta name="keywords" content="Git documentation, README, EzGitDoc, template, doc generator, codegen, doc maker, GitHub, EzGitDoc, gitdoc, md code generator, JavaScript, HTML, CSS, editor, online editor, ezdoc, readme-generator">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/styles.css">
<!-- Font Awesome Animation -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome-animation/0.2.1/font-awesome-animation.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<!-- Themes-->
<link rel="stylesheet/less" type="text/css" href="less/theme-classic.less">
<link rel="stylesheet/less" type="text/css" href="less/theme-light-doc.less">
<link rel="stylesheet/less" type="text/css" href="less/theme-calm.less">
<link rel="stylesheet/less" type="text/css" href="less/theme-dark-doc.less">
<link rel="stylesheet/less" type="text/css" href="less/theme-raw-dark.less">
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Sen&display=swap" rel="stylesheet">
<!-- Bootstrap core CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom Scrollbar CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.css" rel="stylesheet">
<!-- Bootstrap colorpicker -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-colorpicker/3.2.0/css/bootstrap-colorpicker.min.css" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.13.0/css/mdb.min.css" rel="stylesheet">
<title>ezGitDoc</title>
</head>
<body>
<!--
********************************************
Preloader
********************************************
-->
<div class="se-pre-con" style="width: 100%; font-family: 'Josefin Sans';">
<div class="logo-preloader-body" style="margin: 5% auto 0 auto;">
<i class="fab fa-earlybirds fa-10x" style="color: #55606E;"></i>
<p style="font-size: 40px; color: #55606E; margin: 0; padding: 37px 0 10px 0; line-height: 0;">EzGitDoc</p>
</div>
<img style="display: block; margin: 4% auto 0 auto; width: 100px" src="images/loader.svg"/>
<br/>
<br/>
<p class="text-center faa-horizontal animated " style="font-size: 20px; color: white;">Loading</p>
</div>
<!--
********************************************
Sidebar
********************************************
-->
<div class="page-wrapper chiller-theme toggled">
<a id="show-sidebar" class="btn btn-sm btn-dark" style="z-index: 500;">
<i class="fas fa-bars fa-2x text-center" style="margin-top: 30%;"></i>
</a>
<nav id="sidebar" class="sidebar-wrapper">
<div class="sidebar-content">
<a href="https://github.com/trolit/EzGitDoc" target="_blank"><span class="iconify github-icon faa-tada animated-hover" data-icon="codicon:github" data-inline="false"></span></a>
<a data-toggle="modal" data-target="#themesModal"><span class="iconify theme-icon faa-tada animated-hover" data-icon="line-md:paint-drop-half-twotone" data-inline="false" data-inline="false"></span></a>
<div class="text-center">
<span id="themeBadge" class="badge badge-light">classic</span>
<span class="badge badge-light">1.7.6</span>
</div>
<div class="sidebar-header" style="margin-left: 2%;">
<div class="logo-body" style="font-family: 'Josefin Sans'; ">
<i class="fab fa-earlybirds fa-5x faa-tada animated-hover logo-icon"></i>
<p class="logo-title">EzGitDoc</p>
</div>
</div>
<div class="text-center">
<button id="resetButton" type="button" class="btn btn-sm btn-danger" data-toggle="modal" data-target="#resetConfirmationModal" disabled>Reset</button>
<a href="https://os-expected.github.io/EzGitDoc-documentation/" class="btn btn-sm btn-purple" target="_blank">Docs</a>
</div>
<!-- sidebar-header -->
<div class="sidebar-menu">
<ul>
<li class="header-menu">
<span>Elements</span>
</li>
<li data-toggle="modal" data-target="#codeModal">
<a>
<i class="fas fa-code"></i>
<span>Code</span>
<span class="badge badge-pill badge-light hintKey">Alt + Q</span>
</a>
</li>
<li data-toggle="modal" data-target="#headerModal">
<a>
<i class="fas fa-heading"></i>
<span>Header</span>
<span class="badge badge-pill badge-light hintKey">Alt + W</span>
</a>
</li>
<li data-toggle="modal" data-target="#imageModal">
<a>
<i class="far fa-image"></i>
<span>Image</span>
<span class="badge badge-pill badge-light hintKey">Alt + E</span>
</a>
</li>
<li data-toggle="modal" data-target="#linkModal">
<a>
<i class="fas fa-link"></i>
<span>Link</span>
<span class="badge badge-pill badge-light hintKey">Alt + R</span>
</a>
</li>
<li data-toggle="modal" data-target="#listModal">
<a>
<i class="fas fa-bars"></i>
<span>List</span>
<span class="badge badge-pill badge-light hintKey">Alt + A</span>
</a>
</li>
<li data-toggle="modal" data-target="#arrayModal">
<a>
<i class="fas fa-table"></i>
<span>Table</span>
<span class="badge badge-pill badge-light hintKey">Alt + S</span>
</a>
</li>
<li data-toggle="modal" data-target="#textModal">
<a>
<i class="far fa-sticky-note"></i>
<span>Text</span>
<span class="badge badge-pill badge-light hintKey">Alt + D</span>
</a>
</li>
<li data-toggle="modal" data-target="#badgeModal">
<a>
<i class="fas fa-tag"></i>
<span>Badge</span>
<span class="badge badge-pill badge-light hintKey">Alt + F</span>
</a>
</li>
<li data-toggle="modal" data-target="#detailsModal">
<a>
<i class="fas fa-expand-arrows-alt"></i>
<span>Details</span>
<span class="badge badge-pill badge-light hintKey">Alt + Z</span>
</a>
</li>
<li class="header-menu">
<span>Extra</span>
</li>
<li data-toggle="modal" data-target="#quickBuilderModal">
<a>
<i class="fas fa-terminal"></i>
<span>Quickbuilder<small>(v1.0)</small></span>
<!-- <span class="badge-sonar"></span> -->
</a>
</li>
<li style="margin-top: 25px; float: right;">
</li>
</ul>
</div>
<!-- sidebar-menu -->
</div>
<!-- sidebar-content -->
<div class="sidebar-footer" style="color: #818896;">
<a id="close-sidebar" data-tooltip="tooltip" data-placement="top" title="Full page preview">
<i class="far fa-eye"></i>
</a>
<a href="#top" data-tooltip="tooltip" data-placement="top" title="Scroll to the top">
<i class="fas fa-angle-double-up"></i>
</a>
<a href="#bottom" data-tooltip="tooltip" data-placement="top" title="Scroll to the bottom">
<i class="fas fa-angle-double-down"></i>
<!-- <span class="badge badge-pill badge-success notification">7</span> -->
</a>
<a data-toggle="modal" data-tooltip="tooltip" data-placement="top" title="References" data-target="#referencesModal" onclick="generateReferences()">
<i class="fas fa-exchange-alt"></i>
</a>
<a data-toggle="modal" data-tooltip="tooltip" data-placement="top" title="Additional settings" data-target="#settingsModal">
<i class="fas fa-cog"></i>
</a>
</div>
</nav>
<!-- sidebar-wrapper -->
<main class="page-content">
<div class="container-fluid">
<div>
<div id="top"></div>
<!-- Working space Area -->
<div id="workingSpace" style="margin: 3% 15% 4% 15%; padding: 0.5% 0;border: 3px solid white;">
<div id="startNote" class="row" style="color: white; font-size: 25px; margin: 20% auto 20% auto; text-align: center;font-family: Calibri, Arial;">
<div class="col-5 faa-parent animated-hover">
<i class="fas fa-angle-double-left fa-4x faa-horizontal"></i><br/><br/>
<span class="badge badge-light badge-extra-styling">Create element</span>
</div>
<div class="col-2" style="font-size: 135%;">
<br/>
<br/>
<span class="badge badge-light badge-extra-styling">OR</span>
</div>
<div class="col-5 faa-parent animated-hover">
<i class="fas fa-cogs fa-4x faa-vertical "></i><br/><br/>
<span class="badge badge-light badge-extra-styling">Review documentation</span>
</div>
</div>
</div>
<div id="bottom"></div>
</div>
<!-- Code Generation Button -->
<div class="row">
<div class="col-12">
<button type="button" id="codeGenButton" class="btn btn-elegant btn-lg" style="visibility: hidden; padding-top: 20px; font-size: 12px;" onclick="generateCode()"><i class="fas fa-lg fa-dragon"></i> <br/> Generate Code</button>
</div>
</div>
<!-- Footer -->
<footer class="page-footer font-small stylish-color pt-4">
<div class="container-fluid text-center text-md-left">
<div class="row">
<div class="col-md-4 mb-md-0 mb-3">
<h5 class="text-uppercase font-weight-bold"><i class="fas fa-code"></i> Definition</h5>
<p class="text-justify">In short, it's quick and easy tool, allowing to setup and generate interesting templates of *.md files that are mostly used for repositories documentation. One of it's crucial advantages is that it focuses more on clicking than writing. Plan your doc, fill in data and get code!</p>
</div>
<hr class="clearfix w-100 d-md-none pb-3">
<div class="col-md-4 mt-md-0 mt-3">
<h5 class="text-uppercase font-weight-bold"><i class="fab fa-buffer"></i> Get Started</h5>
<p class="text-justify">If you are not familiar with EzGitDoc, you can start by simply trying each element that can be created or take a look at <i class="fas fa-angle-double-right"></i> <a href="https://os-expected.github.io/EzGitDoc-documentation/docs/quick-start" target="_blank"><span class="badge badge-light">Quick Start</span></a> for very fast briefing, and optionally, visit also <a href="https://os-expected.github.io/EzGitDoc-documentation/docs/examples" target="_blank"><span class="badge badge-light">Examples</span></a> section for short capabilities demonstration.</p>
</div>
<hr class="clearfix w-100 d-md-none pb-3">
<div class="col-md-4 mb-md-0 mb-3">
<h5 class="text-uppercase font-weight-bold"><i class="fas fa-desktop"></i> Contribution & Contact</h5>
<p class="text-justify">Want to take part in making EzGitDoc more powerful and advanced for the community? Feel free to contact via <a href="#" class="badge badge-light footer-badge" data-toggle="modal" data-target="#contactModal">this form <i class="fas fa-comment-alt"></i></a> or Discord. List of options that you can work on can be found <a href="https://os-expected.github.io/EzGitDoc-documentation/dev/contribution" target="_blank"><span class="badge badge-light">here</span></a>. You are welcome!
</p>
</div>
</div>
</div>
</footer>
<!-- Footer -->
</div>
</main>
<!-- page-content -->
</div>
<!--
********************************************
BS Toast
********************************************
-->
<div aria-live="polite" aria-atomic="true">
<div id="myToast" data-autohide="false" class="toast" style="z-index: 10000; position: fixed; top: 0; left: 0;">
<div class="toast-header">
<i class="fab fa-earlybirds fa-2x"></i>
<strong class="mr-auto"> EzGitDoc </strong>
<small id="toastTime"></small>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" onclick="resetLastInterval()" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div id="toastBody" class="toast-body">
Did you miss to fill in header text?
</div>
</div>
</div>
<!--
********************************************
MODALS
********************************************
-->
<!-- Themes Modal -->
<div class="modal fade" id="themesModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-sm modal-notify modal-success" role="document">
<!--Content-->
<div class="modal-content text-center">
<!--Header-->
<div class="modal-header d-flex justify-content-center">
<p class="heading">Themes</p>
</div>
<!--Body-->
<div class="modal-body">
<div class="row justify-content-center">
<div class="theme-box theme-classic" onclick="setTheme('classic')" data-tooltip="tooltip" data-placement="top" title="Classic"></div>
<div class="theme-box theme-light-doc" onclick="setTheme('light-doc')" data-tooltip="tooltip" data-placement="top" title="Light Doc"></div>
<div class="theme-box theme-calm" onclick="setTheme('calm')" data-tooltip="tooltip" data-placement="top" title="Calm"></div>
<div class="theme-box theme-dark-doc" onclick="setTheme('dark-doc')" data-tooltip="tooltip" data-placement="top" title="Dark Doc"></div>
<div class="theme-box theme-raw-dark" onclick="setTheme('raw-dark')" data-tooltip="tooltip" data-placement="top" title="Raw Dark"></div>
</div>
</div>
</div>
<!--/.Content-->
</div>
</div>
<!-- References Modal -->
<div class="modal fade" id="referencesModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-notify" role="document">
<!--Content-->
<div class="modal-content modal-custom-content references-modal-styles">
<!--Header-->
<div class="modal-header references-header">
<p class="heading lead">References</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true" class="white-text">×</span>
</button>
</div>
<!--Body-->
<div class="modal-body text-white">
<div class="text-center">
<i class="fab fa-buromobelexperte fa-4x mb-3 animated rotateIn"></i>
<div id="referencesModalContent">
</div>
<small class="hide" id="referencesModalPinTip" style="font-size: 60%;">Use pin icon to quickly change element's position</small>
</div>
</div>
</div>
<!--/.Content-->
</div>
</div>
<!-- Settings Modal -->
<div class="modal fade right" id="settingsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true" data-backdrop="true">
<div class="modal-dialog modal-full-height modal-right modal-notify modal-primary" role="document">
<!--Content-->
<div class="modal-content modal-custom-content">
<!--Header-->
<div class="modal-header modal-custom-header settings-header">
<p class="heading">Settings
</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true" class="white-text">×</span>
</button>
</div>
<!--Body-->
<div class="modal-body">
<div class="row">
<div class="col-12">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="autoMod_switch" onclick="updateSetting('autoModals')">
<label class="custom-control-label" for="autoMod_switch" style="width: 100%;">Automated modals: <span id="autoMod_switch_label" class="badge badge-pill badge-success" style="float: right;">enabled</span></label>
<small class="form-text text-muted">Decide whether modals should be closed automatically on successful object render(enabled) or not(disabled).</small>
</div>
<br/>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="autoDisappear_switch" onclick="updateSetting('autoDisappear')">
<label class="custom-control-label" for="autoDisappear_switch" style="width: 100%;">Autohide notifications: <span id="autoDisappear_switch_label" class="badge badge-pill badge-danger" style="float: right;">disabled</span></label>
<small class="form-text text-muted">If enabled, error messages will be shown for limited time of 7 seconds. When disabled, notifications need to be closed manually.</small>
</div>
<br/>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="hintKeys_switch" onclick="updateSetting('hintKeys')">
<label class="custom-control-label" for="hintKeys_switch" style="width: 100%;">Hint keys: <span id="hintKeys_switch_label" class="badge badge-pill badge-danger" style="float: right;">disabled</span></label>
<small class="form-text text-muted">Enable this option to see shortkeys hints for each element from the sidebar elements section.</small>
</div>
<br/>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="nonSpacedElements_switch" onclick="updateSetting('nonSpacedElements')">
<label class="custom-control-label" for="nonSpacedElements_switch" style="width: 100%;">Nonspaced elements: <span id="nonSpacedElements_switch_label" class="badge badge-pill badge-danger" style="float: right;">disabled</span></label>
<small class="form-text text-muted">Enable this setting to remove spaces between elements in EzGitDoc. Disable it to retrieve bottom margins back.</small>
</div>
<br/>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="deleteConfirmation_switch" onclick="updateSetting('deleteConfirmation')">
<label class="custom-control-label" for="deleteConfirmation_switch" style="width: 100%;">Delete confirmation: <span id="deleteConfirmation_switch_label" class="badge badge-pill badge-danger" style="float: right;">disabled</span></label>
<small class="form-text text-muted">Enable this option to require confirmation before deleting single element in EzGitDoc. If disabled, single elements are deleted without confirmation.</small>
</div>
<br/>
<div class="btn-toolbar mb-4" role="toolbar" aria-label="Toolbar with button groups">
<div>
<small>EzGitDoc Single Element Font Size </small> <br/>
<small id="activeFontSizeIndicator">Active: 60%</small>
</div>
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn blue lighten-2" onclick="setSingleElementFontSize('60')">60%</button>
<button type="button" class="btn light-blue lighten-2" onclick="setSingleElementFontSize('80')">80%</button>
<button type="button" class="btn cyan lighten-2" onclick="setSingleElementFontSize('100')">100%</button>
</div>
</div>
</div>
</div>
</div>
<!--Footer-->
<div class="modal-footer flex-center">
<a type="button" class="btn btn-mdb-color" data-dismiss="modal">Close</a>
</div>
</div>
<!--/.Content-->
</div>
</div>
<!-- Are you sure Modal [Remove all elements] -->
<div class="modal fade" id="resetConfirmationModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-sm modal-notify modal-danger" role="document">
<!--Content-->
<div class="modal-content text-center">
<!--Header-->
<div class="modal-header d-flex justify-content-center">
<p class="heading">Are you sure?</p>
</div>
<!--Body-->
<div class="modal-body">
<i class="fas fa-times fa-4x animated rotateIn"></i>
</div>
<!--Footer-->
<div class="modal-footer flex-center">
<a onclick="removeAllElements()" data-dismiss="modal" class="btn btn-outline-danger">Yes</a>
<a type="button" class="btn btn-danger waves-effect" data-dismiss="modal">No</a>
</div>
</div>
<!--/.Content-->
</div>
</div>
<!-- Are you sure Modal [Remove single] -->
<div class="modal fade" id="removeElementConfirmationModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-sm modal-notify modal-danger" role="document">
<!--Content-->
<div class="modal-content text-center">
<!--Header-->
<div class="modal-header d-flex justify-content-center">
<p class="heading">Are you sure?</p>
</div>
<!--Body-->
<div class="modal-body">
<i class="fas fa-times fa-4x animated rotateIn"></i>
</div>
<!--Footer-->
<div class="modal-footer flex-center">
<a id="singleRemoveAnchor" data-dismiss="modal" class="btn btn-outline-danger">Yes</a>
<a type="button" class="btn btn-danger waves-effect" data-dismiss="modal">No</a>
</div>
</div>
<!--/.Content-->
</div>
</div>
<!-- Change Element Position Modal -->
<div class="modal fade" id="changeElementPositionModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-sm modal-notify modal-primary" role="document">
<!--Content-->
<div class="modal-content text-center">
<!--Header-->
<div class="modal-header d-flex justify-content-center modal-custom-header">
<p class="heading"><span class="iconify fa-2x" data-icon="vaadin:absolute-position" data-inline="false"></span></p>
</div>
<!--Body-->
<div class="modal-body modal-custom-content">
<small id="changeElementPositionModalText">Set new position for element [1, 26]</small>
<input class="form-control" id="changeElementPositionModalInput" value="1" maxlength="5" autocomplete="off">
</div>
<!--Footer-->
<div class="modal-footer flex-center">
<a class="btn btn-elegant" onclick="placeElementInTheNewPosition()">Set</a>
</div>
</div>
<!--/.Content-->
</div>
</div>
<!-- Code Modal -->
<div class="modal fade right" id="codeModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-full-height modal-right" role="document">
<div class="modal-content modal-custom-content">
<div class="modal-header modal-custom-header">
<p class="heading lead m-0">Code
</p>
<button type="button" class="close modal-close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="codeLanguage">Language <small class="optional-text">(optional)</small></label>
<input class="form-control" id="codeLanguage" placeholder="e.g. javascript" maxlength="15" autocomplete="off">
</div>
<div class="container">
<div class="form-group">
<label for="codeArea">Code <small class="text-muted">(required)</small></label>
<textarea class="form-control dark-textarea" rows="7" id="codeArea" autocomplete="off"></textarea>
</div>
</div>
</form>
</div>
<div class="modal-footer justify-content-center">
<div class="row">
<div class="col text-left ml-1 mr-1 mt-2">
Did you know?
<hr class="m-0"/>
<ul class="list-unstyled mt-3">
<li><small class="form-text text-muted"><i class="fas fa-highlighter"></i> Use <kbd style="background-color: grey; padding: 6px;">TAB</kbd> key to make indentation in Code.</small> </li>
<li><small class="form-text text-muted"><i class="fas fa-highlighter"></i> Textareas in EzGitDoc are resizable.</small></li>
<li><small class="form-text text-muted"><i class="fas fa-highlighter"></i> GitHub supported languages can be found <a href="https://github.com/github/linguist/blob/master/lib/linguist/languages.yml" target="_blank">here</a>.</small></li>
</ul>
</div>
</div>
<div class="col text-left ml-0">
<button onclick="createCode()" type="button" class="btn btn-elegant">Create</button>
</div>
<div class="col text-right mr-0">
<button type="button" class="btn btn-unique" onclick="clearModal('#codeModal')">Reset</button>
</div>
</div>
</div>
</div>
</div>
<!-- Code Update Modal -->
<div class="modal fade right" id="codeUpdateModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-side modal-top-right" role="document">
<div class="modal-content modal-custom-content">
<div class="modal-header modal-custom-header">
<p class="heading lead m-0">Code Update
</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="codeLanguage_update">Language</label>
<input class="form-control" id="codeLanguage_update" placeholder="e.g. javascript" maxlength="15" autocomplete="off">
</div>
<div class="container">
<div class="form-group">
<label for="codeArea_update">Code</label>
<textarea class="form-control" rows="5" id="codeArea_update" autocomplete="off"></textarea>
</div>
</div>
</form>
</div>
<div class="modal-footer justify-content-center">
<button onclick="updateCode()" type="button" class="btn btn-mdb-color">Update</button>
</div>
</div>
</div>
</div>
<!-- Header Modal -->
<div class="modal fade right" id="headerModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-full-height modal-right" role="document">
<div class="modal-content modal-custom-content">
<div class="modal-header modal-custom-header">
<p class="heading lead m-0">Header
</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="headerName">Text <small class="text-muted">(required)</small></label>
<input class="form-control" id="headerName" placeholder="Text" autocomplete="off">
</div>
<ul class="list-group" style="cursor: pointer;" onselectstart="return false" ondragstart="return false">
<label>Style <small class="optional-text">(optional, default = h2)</small></label>
<li class="list-group-item" value="5" onclick="setElementAsActive(this)"><div class="row"><div class="col">h1</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_1.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item" value="6" onclick="setElementAsActive(this)"><div class="row"><div class="col">h2</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_2.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item" value="7" onclick="setElementAsActive(this)"><div class="row"><div class="col">h3</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_3.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item" value="8" onclick="setElementAsActive(this)"><div class="row"><div class="col">h4</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_4.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item" value="9" onclick="setElementAsActive(this)"><div class="row"><div class="col">h5</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_5.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item" value="10" onclick="setElementAsActive(this)"><div class="row"><div class="col">h6</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_6.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
</ul>
</form>
</div>
<div class="modal-footer">
<div class="col text-left ml-0">
<button onclick="createHeader()" type="button" class="btn btn-elegant">Create</button>
</div>
<div class="col text-right mr-0">
<button type="button" class="btn btn-unique" onclick="clearModal('#headerModal')">Reset</button>
</div>
</div>
</div>
</div>
</div>
<!-- Header Update Modal -->
<div class="modal fade right" id="headerUpdateModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-side modal-top-right" role="document">
<div class="modal-content modal-custom-content">
<div class="modal-header modal-custom-header">
<p class="heading lead m-0">Header Update
</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="headerName_update">Text</label>
<input class="form-control" id="headerName_update" placeholder="Text" autocomplete="off">
</div>
<ul class="list-group" style="cursor: pointer;" onselectstart="return false" ondragstart="return false">
<label>Style</label>
<li class="list-group-item headerStyle_update" value="10" onclick="setElementAsActive(this)"><div class="row"><div class="col">h1</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_1.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item headerStyle_update" value="11" onclick="setElementAsActive(this)"><div class="row"><div class="col">h2</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_2.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item headerStyle_update" value="12" onclick="setElementAsActive(this)"><div class="row"><div class="col">h3</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_3.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item headerStyle_update" value="13" onclick="setElementAsActive(this)"><div class="row"><div class="col">h4</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_4.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item headerStyle_update" value="14" onclick="setElementAsActive(this)"><div class="row"><div class="col">h5</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_5.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item headerStyle_update" value="15" onclick="setElementAsActive(this)"><div class="row"><div class="col">h6</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/header_6.png" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
</ul>
</form>
</div>
<div class="modal-footer justify-content-center">
<button onclick="updateHeader()" type="button" class="btn btn-mdb-color">Update</button>
</div>
</div>
</div>
</div>
<!-- Image Modal -->
<div class="modal fade right" id="imageModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-full-height modal-right" role="document">
<div class="modal-content modal-custom-content">
<div class="modal-header modal-custom-header">
<p class="heading lead m-0">Image
</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="altImageText">Alternate text <small class="text-muted">(required)</small></label>
<input class="form-control" id="altImageText" placeholder="Image shows.." autocomplete="off">
</div>
<div class="form-group">
<label for="imageURL">URL <small class="text-muted">(required)</small></label>
<input class="form-control" id="imageURL" value="blank" autocomplete="off">
<small class="form-text text-muted">If you don't have URL yet, leave blank.</small>
</div>
<div class="form-group">
<label class="my-1 mr-2" for="imagePositionList">Alignment <small class="optional-text">(optional, default = center)</small></label>
<select class="custom-select my-1 mr-sm-2" id="imagePositionList" autocomplete="off">
<option value="0" selected>Choose...</option>
<option value="1">Left aligned</option>
<option value="2">Center aligned</option>
<option value="3">Right aligned</option>
</select>
</div>
<div class="container">
<div class="form-group" id="scalingOptions">
<div class="row justify-content-md-center">
<div class="col-md-12 text-center">
<label class="my-1 mr-2">Size</label>
</div>
<div class="col-md-6">
<label class="text-center col-md-12" for="xAxisProperty">X axis (width)</label>
<input class="form-control col-md-auto text-center" id="xAxisProperty" placeholder="0" autocomplete="off">
</div>
<div class="col-md-6">
<label class="text-center col-md-12" for="yAxisProperty">Y axis (height)</label>
<input class="form-control col-md-auto text-center" id="yAxisProperty" placeholder="0" autocomplete="off">
</div>
</div>
</div>
</div>
</form>
<div class="row">
<div class="col text-left">
<ul class="list-unstyled ml-3">
<li><small class="form-text text-muted"><i class="fas fa-highlighter"></i> At least one axis needs to be set.<br/>(it's value must be higher than 0)</small></li>
</ul>
</div>
</div>
</div>
<div class="modal-footer">
<div class="col text-left ml-0">
<button onclick="createImage()" type="button" class="btn btn-elegant">Create</button>
</div>
<div class="col text-right mr-0">
<button type="button" class="btn btn-unique" onclick="clearModal('#imageModal')">Reset</button>
</div>
</div>
</div>
</div>
</div>
<!-- Image Update Modal -->
<div class="modal fade right" id="imageUpdateModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-side modal-top-right" role="document">
<div class="modal-content modal-custom-content">
<div class="modal-header modal-custom-header">
<p class="heading lead m-0">Image Update
</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="altImageText_update">Alternate text</label>
<input class="form-control" id="altImageText_update" placeholder="Image shows.." autocomplete="off">
</div>
<div class="form-group">
<label for="imageURL_update">URL</label>
<input class="form-control" id="imageURL_update" value="blank" autocomplete="off">
</div>
<div class="form-group">
<label class="my-1 mr-2" for="imagePositionList_update">Alignment</label>
<select class="custom-select my-1 mr-sm-2" id="imagePositionList_update" autocomplete="off">
<option value="0" selected>Choose...</option>
<option value="1">Left aligned</option>
<option value="2">Center aligned</option>
<option value="3">Right aligned</option>
</select>
</div>
<div class="container">
<div class="form-group" id="scalingOptions">
<div class="row justify-content-md-center">
<div class="col-md-12 text-center">
<label class="my-1 mr-2">Size</label>
</div>
<div class="col-md-6">
<label class="text-center col-md-12" for="xAxisProperty_update">X axis (width)</label>
<input class="form-control col-md-auto text-center" id="xAxisProperty_update" placeholder="0" autocomplete="off">
</div>
<div class="col-md-6">
<label class="text-center col-md-12" for="yAxisProperty_update">Y axis (height)</label>
<input class="form-control col-md-auto text-center" id="yAxisProperty_update" placeholder="0" autocomplete="off">
</div>
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer justify-content-center">
<button onclick="updateImage()" type="button" class="btn btn-mdb-color">Update</button>
</div>
</div>
</div>
</div>
<!-- Link Modal -->
<div class="modal fade right" id="linkModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-full-height modal-right" role="document">
<div class="modal-content modal-custom-content">
<div class="modal-header modal-custom-header">
<p class="heading lead m-0">Link
</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="hrefName">Text <small class="text-muted">(required)</small></label>
<input class="form-control" id="hrefName" placeholder="Text" autocomplete="off">
</div>
<div class="form-group">
<label for="hrefAddress">Href <small class="text-muted">(required)</small></label>
<input class="form-control" id="hrefAddress" placeholder="e.g. https://mylink.com" autocomplete="off">
</div>
</form>
</div>
<div class="modal-footer">
<div class="row">
<div class="col text-left ml-2 mr-2 mt-2">
Did you know?
<hr class="m-0"/>
<ul class="list-unstyled mt-3">
<li><small class="form-text text-muted"><i class="fas fa-highlighter"></i> If you want to create more than one link, you can use link list or linked kbd table. You can also make link in text element using anchor tag(a).</small> </li>
</ul>
</div>
</div>
<div class="col text-left ml-0">
<button onclick="createLink()" type="button" class="btn btn-elegant">Create</button>
</div>
<div class="col text-right mr-0">
<button type="button" class="btn btn-unique" onclick="clearModal('#linkModal')">Reset</button>
</div>
</div>
</div>
</div>
</div>
<!-- Link Update Modal -->
<div class="modal fade right" id="linkUpdateModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-side modal-top-right" role="document">
<div class="modal-content modal-custom-content">
<div class="modal-header modal-custom-header">
<p class="heading lead m-0">Link Update
</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="hrefName_update">Text</label>
<input class="form-control" id="hrefName_update" placeholder="Text" autocomplete="off">
</div>
<div class="form-group">
<label for="hrefAddress_update">Href</label>
<input class="form-control" id="hrefAddress_update" placeholder="e.g. https://mylink.com" autocomplete="off">
</div>
</form>
</div>
<div class="modal-footer justify-content-center">
<button onclick="updateLink()" type="button" class="btn btn-mdb-color">Update</button>
</div>
</div>
</div>
</div>
<!-- List Modal -->
<div class="modal fade right" id="listModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-full-height modal-right" role="document">
<div class="modal-content modal-custom-content">
<div class="modal-header modal-custom-header">
<p class="heading lead m-0">List
</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="listSize">Size <small class="text-muted">(required)</small></label>
<input class="form-control" id="listSize" placeholder="0" autocomplete="off">
</div>
<div class="form-group">
<ul class="list-group" style="cursor: pointer;" onselectstart="return false" ondragstart="return false">
<label>Type <small class="text-muted">(required)</small></label>
<li class="list-group-item" value="0" onclick="setElementAsActive(this, 'toggle_list_iconField')"><div class="row"><div class="col">iconic</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/list_iconic.PNG" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item" value="1" onclick="setElementAsActive(this)"><div class="row"><div class="col">normal</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/list_normal.PNG" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
<li class="list-group-item" value="2" onclick="setElementAsActive(this)"><div class="row"><div class="col">link</div> <div class="col text-right"><span class="badge badge-light" data-toggle="popover-hover" data-img="images/hover/list_link.PNG" style="vertical-align: top;"><i class="fas fa-search text-right"></i></span></div></div></li>
</ul>
<small class="form-text text-muted text-center">Hover over magnifier icon to see the example.</small>
<small class="form-text text-muted text-center">Click on the desired type to confirm choice.</small>
</div>
<div id="iconDiv" class="form-group">
<label for="iconName">Got icon? Type name here</label>
<input class="form-control" id="iconName" placeholder="e.g. smiley" autocomplete="off">
<small class="form-text text-muted text-left">For the list of icons supported by GitHub, refer <a href="https://gist.github.com/rxaviers/7360908" target="_blank">here</a>.</small>
</div>
</form>
</div>
<div class="modal-footer justify-content-center">
<div class="row">
<div class="col text-left ml-2 mr-2 mt-2">
Did you know?
<hr class="m-0"/>
<ul class="list-unstyled mt-3">
<li><small class="form-text text-muted"><i class="fas fa-highlighter"></i> If you won't specify icon for iconic list, EzGitDoc will put unique Id that can be easily changed later.</small> </li>
<li><small class="form-text text-muted"><i class="fas fa-highlighter"></i> You can extend lists and text tables during update process.</small> </li>
</ul>
</div>
</div>
<div class="col text-left ml-0">
<button onclick="createList()" type="button" class="btn btn-elegant">Create</button>
</div>
<div class="col text-right mr-0">
<button type="button" class="btn btn-unique" onclick="clearModal('#listModal')">Reset</button>
</div>
</div>
</div>
</div>
</div>
<!-- List Update Modal -->
<div class="modal fade" id="listUpdateModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content modal-custom-content">
<div class="modal-header modal-custom-header">
<p class="heading lead m-0">List Update
</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="list_update_dynamic_fields">Data</label>
<div id="list_update_dynamic_fields">
</div>
</div>
</form>
<div class="text-center">
<button type="button" class="btn btn-default btn-sm btn-brown" onclick='insertNewListElement()'>New item</button>
</div>
</div>
<div class="modal-footer justify-content-center">
<button onclick="updateList()" type="button" class="btn btn-mdb-color">Update</button>
</div>
</div>
</div>
</div>
<!-- Table Modal -->
<div class="modal fade right" id="arrayModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">