This repository has been archived by the owner on Dec 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
1444 lines (1259 loc) · 65.7 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 lang="en">
<head>
<meta charset="utf-8">
<title>MD Builder</title>
<link rel="stylesheet" href="./dist/css/grapes.min.css">
<script src="./dist/grapes.min.js"></script>
<link rel="stylesheet" href="./dist/css/styleeditor.css">
<script src="./dist/basic.js"></script>
<script src="./dist/jquery-3.3.1.min.js"></script>
<script src="./dist/md.js"></script>
<link rel="stylesheet" href="./dist/css/bootstrap-material-design.min.css">
<script src="./dist/beautify-html.js"></script>
<script src=https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/ace.js></script>
<link rel="stylesheet" href="./dist/snackbar.css">
<script defer src="./dist/snack.js"></script>
<script src="./dist/grapesjs-blocks-bootstrap4.min.js"></script>
<script src="./dist/grapesjs-html-block.js"></script>
</head>
<style>
html,
body {
height: 100%;
margin: 0;
padding: 0;
margin: 0;
overflow-x: hidden;
overflow-y: hidden;
}
::-webkit-scrollbar {
width: 0px;
background: transparent;
}
.gjs-row {
display: flex;
justify-content: flex-start;
align-items: stretch;
flex-wrap: nowrap;
padding: 10px;
}
.gjs-column {
min-height: 75px;
flex-grow: 1;
flex-basis: 100%;
}
#open {
display: none;
}
select option {
color: white !important;
}
.flowz-callToAction-style-2 {
background: url(dist/img/c1.png) no-repeat;
background-size: 100% 100%
}
.custom-icon {
padding: 5px !important;
width: 150px !important;
}
#editor {
height: auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0
}
.long {
height: 450px;
}
.bgb{
background-color: #03a9f4!important;
}
</style>
<body>
<script src="./dist/jquery-3.2.1.slim.min.js"></script>
<script src="./dist/popper.js"></script>
<script src="./dist/bootstrap-material-design.js"></script>
<script>
$(document).ready(function () {
$('body').bootstrapMaterialDesign();
});
</script>
<script>
const electronTitlebarWindows = require('electron-titlebar-windows');
const remote = require('electron').remote;
let titlebar = new electronTitlebarWindows({
darkMode: true,
color: 'rgb(243, 243, 243)',
backgroundColor: 'rgb(0, 160, 255)',
draggable: true,
fullscreen: true
});
titlebar.appendTo();
titlebar.on('close', () => {
console.info('close');
remote.getCurrentWindow().close();
});
titlebar.on('fullscreen', () => {
console.info('fullscreen');
remote.getCurrentWindow().setFullScreen(true);
});
titlebar.on('minimize', () => {
console.info('minimize');
remote.getCurrentWindow().minimize();
});
titlebar.on('maximize', () => {
console.info('maximize');
remote.getCurrentWindow().setFullScreen(false);
remote.getCurrentWindow().maximize();
});
</script>
<header style="overflow-y: hidden;" class="mdl-layout__header mdl-layout--fixed-header">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">MD Builder</span>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation mdl-layout--large-screen-only">
<input type="file" id="open">
<label for="open" class="mdl-button mdl-js-button mdl-button--icon" for="fixed-header-drawer-exp" data-upgraded=",MaterialButton">
<i type="file" class="material-icons">folder_open</i>
</label>
<label id="save" class="mdl-button mdl-js-button mdl-button--icon" for="fixed-header-drawer-exp" data-upgraded=",MaterialButton">
<i class="material-icons">save</i>
</label>
<div class="mdl-tooltip" for="save">
Export/Save Project
</div>
<label id="code" class="mdl-button mdl-js-button mdl-button--icon" for="fixed-header-drawer-exp" data-upgraded=",MaterialButton">
<i class="material-icons" data-toggle="modal" data-target="#exampleModal">code</i>
</label>
<div class="mdl-tooltip" for="code">
Edit Code
</div>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body long">
<div id=editor></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-info" id="savecd">Save changes</button>
</div>
</div>
</div>
</div>
<label id="about" class="mdl-button mdl-js-button mdl-button--icon" for="fixed-header-drawer-exp" data-upgraded="MaterialButton">
<i class="material-icons" data-toggle="modal" data-target="#em">info</i>
</label>
<div class="mdl-tooltip" for="about">
About
</div>
<!-- Modal -->
<div class="modal fade" id="em" tabindex="-1" role="dialog" aria-labelledby="eml" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content bgb">
<div class="modal-body long">
<style>
* { box-sizing: border-box; } body {margin: 0;}.gjs-dashed .container, .gjs-dashed .container-fluid, .gjs-dashed .row, .gjs-dashed .col, .gjs-dashed [class^="col-"]{min-height:1.5rem !important;}.gjs-dashed .w-100{background-color:rgba(0, 0, 0, 0.1);min-height:0.25rem !important;}.gjs-dashed img{min-width:25px;min-height:25px;background-color:rgba(0, 0, 0, 0.5);}.gjs-dashed .btn-group, .gjs-dashed .btn-toolbar{padding-right:1.5rem !important;min-height:1.5rem !important;}.gjs-dashed .card, .gjs-dashed .card-group, .gjs-dashed .card-deck, .gjs-dashed .card-columns{min-height:1.5rem !important;}.gjs-dashed .collapse{display:block !important;min-height:1.5rem !important;}.gjs-dashed .dropdown{display:block !important;min-height:1.5rem !important;}.gjs-dashed .dropdown-menu{min-height:1.5rem !important;display:block !important;}#i4ll4{text-align:center;color:#ffffff;}.jumbotron{text-align:center;}#ikxik{padding:10px 0 0 0;color:#ffffff;margin:-12px 0 0 0;}#i04fg{padding:14px 0 0 0;margin:0 0 0 0;text-align:center;}.badge.gjs-comp-selected.badge-info{color:#ffffff;}#iwmyl{padding:10px 0 0 0;color:#ffffff;margin:-12px 0 0 0;}#ir5nb{color:#ffffff;}#i5z5ri{color:#ffffff;top:-10px;margin:-13px 0 14px 0;}#ifj6tg{color:#ffffff;top:-10px;margin:-13px 0 14px 0;}#i47e5i{color:#ffffff;top:-10px;margin:-13px 0 14px 0;}#i3nb0h{color:#ffffff;top:-10px;margin:-13px 0 14px 0;}#iabjfq{color:#ffffff;top:-10px;margin:-13px 0 14px 0;}#i8ecrq{color:#ffffff;top:-10px;margin:-13px 0 14px 0;}#i85tn1{color:#ffffff;top:-10px;margin:-13px 0 14px 0;}#iojf89{color:#ffffff;top:-10px;margin:-13px 0 14px 0;}#i04qdm{color:#ffffff;top:-10px;margin:-13px 0 14px 0;}
</style>
<div class="jumbotron bg-info" id="ihud">
<h1 id="i4ll4">MD Builder</h1>
<div id="ikxik"> Elvin Chu </div>
<div id="i04fg"><span data-highlightable="1" id="iju36" class="badge gjs-comp-selected badge-pill badge-warning">Version 1.0.0</span></div>
<hr class="my-4" />
<p class="lead"></p>
<p id="ir5nb">Built With GrapesJS</p>
<p id="i5z5ri">Electron JS</p>
<p id="i04qdm">Ace Code Editor </p>
<p id="iojf89">Material Design Lite </p>
<p id="ifj6tg"> Bootstrap Material Design</p>
<p id="i85tn1">GrapesJS Bootstrap v4 Blocks Plugin </p>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" style="color:#fff;"data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</header>
<div id="gjs"></div>
<script type="text/javascript">
const juice = require('juice');
var editor = grapesjs.init({
fromElement: true,
allowScripts: true,
avoidInlineStyle: true,
height: '97%',
storageManager: {
autoload: 0,
},
assetManager: {
upload: 0,
uploadText: 'Not Available',
},
container: '#gjs',
plugins: ['gjs-blocks-basic','grapesjs-blocks-bootstrap4','html-block'],
pluginsOpts: {
'gjs-blocks-basic': {
blocks: ['column1', 'column2', 'column3', 'column3-7', 'image', 'video', 'map'],
},
'grapesjs-blocks-bootstrap4': {
blocks: {},
blockCategories: {},
labels: {},
gridDevices:false,
gridDevicesPanel: false
}
},
canvas: {
styles: [
'dist/css/material.min.css',
'dist/css/bootstrap-material-design.min.css',
'https://fonts.googleapis.com/icon?family=Material+Icons',
'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons'
],
scripts: [
'dist/jquery-3.2.1.slim.min.js',
'dist/popper.js',
'dist/bootstrap-material-design.js'
],
},
});
function returncode(){
const tmpl = editor.getHtml() + `<style>${editor.getCss()}</style>`;
console.log(juice(tmpl));
}
//add lib
function addLib() {
/*
editor.addComponents('<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">');
editor.addComponents('<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">');
editor.addComponents('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons">');
editor.addComponents('<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap-material-design.min.css" integrity="sha384-wXznGJNEXNG1NFsbm0ugrLFMQPWswR3lds2VeinahP8N0zJw9VWSopbjv2x7WCvX" crossorigin="anonymous">');
editor.addComponents('<script src="https://unpkg.com/[email protected]/dist/umd/popper.js" integrity="sha384-fA23ZRQ3G/J53mElWqVJEGJzU0sTs+SvzG8fXVWP+kJQ1lwFAOkcUOysnlKJC33U" crossorigin="anonymous">\<\/script>');
editor.addComponents('<script src="https://unpkg.com/[email protected]/dist/js/bootstrap-material-design.js" integrity="sha384-CauSuKpEqAFajSpkdjv3z9t8E7RlpJ1UP0lKM/+NdtSarroVKu069AlsRPKkFBz9" crossorigin="anonymous">\<\/script>');
editor.addComponents("<script>$(document).ready(function() { $('body').bootstrapMaterialDesign(); });\<\/script>");*/
}
addLib();
/**************ADD TYPE**************************/
/****************END ADD TYPE****************/
/*********************************START ADD BLOCK********************************/
const blockManager = editor.BlockManager;
//tools block
//layout block
blockManager.add('navv', {
category: 'MD Layouts',
label: `
<svg class="gjs-block-svg" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path class="gjs-block-svg-path" d="M22,9 C22,8.4 21.5,8 20.75,8 L3.25,8 C2.5,8 2,8.4 2,9 L2,15 C2,15.6 2.5,16 3.25,16 L20.75,16 C21.5,16 22,15.6 22,15 L22,9 Z M21,15 L3,15 L3,9 L21,9 L21,15 Z" fill-rule="nonzero"></path>
<rect class="gjs-block-svg-path" x="15" y="10" width="5" height="1"></rect>
<rect class="gjs-block-svg-path" x="15" y="13" width="5" height="1"></rect>
<rect class="gjs-block-svg-path" x="15" y="11.5" width="5" height="1"></rect>
</svg>
<div class="gjs-block-label">Header With Items</div>`,
content: `<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>`,
});
blockManager.add('hhlink', {
category: 'MD Layouts',
label: 'Header Link',
content: ` <a class="nav-link" href="#">Link</a>`,
attributes: {
class: 'fa fa-link'
}
});
blockManager.add('navvv', {
category: 'MD Layouts',
label: `
<svg class="gjs-block-svg" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path class="gjs-block-svg-path" d="M22,9 C22,8.4 21.5,8 20.75,8 L3.25,8 C2.5,8 2,8.4 2,9 L2,15 C2,15.6 2.5,16 3.25,16 L20.75,16 C21.5,16 22,15.6 22,15 L22,9 Z M21,15 L3,15 L3,9 L21,9 L21,15 Z" fill-rule="nonzero"></path>
<rect class="gjs-block-svg-path" x="15" y="10" width="5" height="1"></rect>
<rect class="gjs-block-svg-path" x="15" y="13" width="5" height="1"></rect>
<rect class="gjs-block-svg-path" x="15" y="11.5" width="5" height="1"></rect>
</svg>
<div class="gjs-block-label">Header With Logo</div>`,
content: `<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="./icon.png" width="30" height="30" class="d-inline-block align-top" alt="">
Bootstrap
</a>
</nav>`,
});
blockManager.add('nav', {
category: 'MD Layouts',
label: `
<svg class="gjs-block-svg" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path class="gjs-block-svg-path" d="M22,9 C22,8.4 21.5,8 20.75,8 L3.25,8 C2.5,8 2,8.4 2,9 L2,15 C2,15.6 2.5,16 3.25,16 L20.75,16 C21.5,16 22,15.6 22,15 L22,9 Z M21,15 L3,15 L3,9 L21,9 L21,15 Z" fill-rule="nonzero"></path>
<rect class="gjs-block-svg-path" x="15" y="10" width="5" height="1"></rect>
<rect class="gjs-block-svg-path" x="15" y="13" width="5" height="1"></rect>
<rect class="gjs-block-svg-path" x="15" y="11.5" width="5" height="1"></rect>
</svg>
<div class="gjs-block-label">MDL Header</div>`,
content: '<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header"><header class="mdl-layout__header"> <div class="mdl-layout__header-row"> <!-- Title --> <span class="mdl-layout-title">Title</span> <div class="mdl-layout-spacer"></div> <!-- Navigation. We hide it in small screens. --> <nav class="mdl-navigation mdl-layout--large-screen-only"> <a class="mdl-navigation__link" href="">Link</a> <a class="mdl-navigation__link" href="">Link</a> <a class="mdl-navigation__link" href="">Link</a> <a class="mdl-navigation__link" href="">Link</a> </nav> </div> </header> <div class="mdl-layout__drawer"> <span class="mdl-layout-title">Title</span> <nav class="mdl-navigation"> <a class="mdl-navigation__link" href="">Link</a> <a class="mdl-navigation__link" href="">Link</a> <a class="mdl-navigation__link" href="">Link</a> <a class="mdl-navigation__link" href="">Link</a> </nav> </div>',
});
blockManager.add('hlink', {
category: 'MD Layouts',
label: 'MDL Header Link',
content: '<a class="mdl-navigation__link">Link</a> ',
attributes: {
class: 'fa fa-link'
}
});
blockManager.add('footer', {
category: 'MD Layouts',
label: `
<svg class="gjs-block-svg" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path class="gjs-block-svg-path" d="M22,9 C22,8.4 21.5,8 20.75,8 L3.25,8 C2.5,8 2,8.4 2,9 L2,15 C2,15.6 2.5,16 3.25,16 L20.75,16 C21.5,16 22,15.6 22,15 L22,9 Z M21,15 L3,15 L3,9 L21,9 L21,15 Z" fill-rule="nonzero"></path>
<rect class="gjs-block-svg-path" x="15" y="10" width="5" height="1"></rect>
<rect class="gjs-block-svg-path" x="15" y="13" width="5" height="1"></rect>
<rect class="gjs-block-svg-path" x="15" y="11.5" width="5" height="1"></rect>
</svg>
<div class="gjs-block-label">Footer</div>`,
content: '<footer class="demo-footer mdl-mini-footer"> <div class="mdl-mini-footer--left-section"> <ul class="mdl-mini-footer--link-list"> <li><a>Link</a></li> <li><a>Link</a></li> <li><a>Link</a></li> </ul> </div> </footer>',
});
blockManager.add('flink', {
category: 'MD Layouts',
label: 'Footer Link',
content: '<li><a>Link</a></li>',
attributes: {
class: 'fa fa-link'
}
});
blockManager.add('pagenav', {
category: 'MD Layouts',
label: 'Page Navigation',
content: `<nav aria-label="Page navigation example">
<ul class="pagination justify-content-center">
<li class="page-item disabled">
<a class="page-link" href="#" tabindex="-1">Previous</a>
</li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">
<a class="page-link" href="#">Next</a>
</li>
</ul>
</nav>`,
attributes: {
class: 'fa fa-list-ol'
}
});
blockManager.add('pagenavv', {
category: 'MD Layouts',
label: 'Page Navigation Link',
content: `
<li class="page-item"><a class="page-link" href="#">Link</a></li>`,
attributes: {
class: 'fa fa-link'
}
});
//MD Componets
blockManager.add('rbtn', {
category: 'MD Components',
label: 'Raised Button',
content: '<button type="button" data-type="Raised Button" class="btn btn-raised btn-primary">Button</button>',
attributes: {
class: 'gjs-fonts gjs-f-button'
}
});
blockManager.add('fbtn', {
category: 'MD Components',
type: 'Flat Button',
label: 'Flat Button',
content: '<button data-type="Flat Button" type="button" class="btn btn-primary">Button</button>',
attributes: {
class: 'gjs-fonts gjs-f-button'
}
});
blockManager.add('fab', {
category: 'MD Components',
label: 'Floating Action Button',
content: '<button type="button" data-type="FAB Button" class="btn btn-primary bmd-btn-fab"> <i class="material-icons">grade</i></button>',
attributes: {
class: 'fa fa-circle'
}
});
blockManager.add('icon', {
category: 'MD Components',
label: 'Icon',
content: '<i class="material-icons">grade</i>',
attributes: {
class: 'fa fa-star'
}
});
blockManager.add('Breadcrumb', {
category: 'MD Components',
label: 'Breadcrumb',
content: `
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a>Home</a></li>
<li class="breadcrumb-item"><a>Library</a></li>
<li class="breadcrumb-item active" aria-current="page">Data</li>
</ol>
</nav>`,
attributes: {
class: 'fa fa-folder'
}
});
blockManager.add('Breadcrumbi', {
category: 'MD Components',
label: 'Breadcrumb Item',
content: `
<li class="breadcrumb-item"><a>Link</a></li>
`,
attributes: {
class: 'fa fa-link'
}
});
blockManager.add('jumbotron', {
category: 'MD Components',
label: 'Jumbotron',
content: `
<div class="jumbotron">
<h1 class="display-4">Hello, world!</h1>
<p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
<hr class="my-4">
<p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
<p class="lead">
<a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>
</p>
</div>
`,
attributes: {
class: 'fa fa-align-center'
}
});
blockManager.add('feaa', {
category: 'MD Components',
label: 'Featured',
content: `
<div class="card">
<h5 class="card-header">Featured</h5>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
`,
attributes: {
class: 'fa fa-align-center'
}
});
blockManager.add('fea', {
category: 'MD Components',
label: 'Featured Pro',
content: `
<div class="card text-center">
<div class="card-header">
Featured
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
<div class="card-footer text-muted">
2 days ago
</div>
</div>
`,
attributes: {
class: 'fa fa-align-center'
}
});
blockManager.add('badgee', {
category: 'MD Components',
label: 'Badge',
content: `
<span class="badge badge-primary">Badge</span>
`,
attributes: {
class: 'fa fa-minus'
}
});
blockManager.add('listtt', {
category: 'MD Components',
label: 'List',
content: `
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
`,
attributes: {
class: 'fa fa-list'
}
});
blockManager.add('listt', {
category: 'MD Components',
label: 'Content List',
content: `
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start active">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small>3 days ago</small>
</div>
<p class="mb-1">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small>Donec id elit non mi porta.</small>
</a>
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small class="text-muted">3 days ago</small>
</div>
<p class="mb-1">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small class="text-muted">Donec id elit non mi porta.</small>
</a>
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small class="text-muted">3 days ago</small>
</div>
<p class="mb-1">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small class="text-muted">Donec id elit non mi porta.</small>
</a>
</div>
`,
attributes: {
class: 'fa fa-list'
}
});
//MD cards
blockManager.add('cardd', {
category: 'MD Card',
label: 'Image Button Card',
content: `
<div class="card" >
<img class="card-img-top" src="https://i.imgur.com/tStFlXw.png" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>`,
attributes: {
class: 'fa fa-credit-card'
}
});
blockManager.add('carddd', {
category: 'MD Card',
label: 'Title Link Text Card',
content: `
<div class="card">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
</div>
</div>`,
attributes: {
class: 'fa fa-credit-card'
}
});
blockManager.add('cardddd', {
category: 'MD Card',
label: 'Image Card',
content: `
<div class="card">
<img class="card-img-top" src="https://i.imgur.com/tStFlXw.png" alt="Card image cap">
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>`,
attributes: {
class: 'fa fa-credit-card'
}
});
blockManager.add('carddddd', {
category: 'MD Card',
label: 'Style Card',
content: `
<div class="card text-white bg-primary mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Primary card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-white bg-secondary mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Secondary card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-white bg-success mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Success card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-white bg-danger mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Danger card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-white bg-warning mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Warning card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-white bg-info mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Info card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card bg-light mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Light card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-white bg-dark mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Dark card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>`,
attributes: {
class: 'fa fa-credit-card'
}
});
blockManager.add('carddddd', {
category: 'MD Card',
label: 'Header Card',
content: `
<div class="card border-primary mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body text-primary">
<h5 class="card-title">Primary card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>`,
attributes: {
class: 'fa fa-credit-card'
}
});
//temp blocks
blockManager.add('temp1', {
category: 'MD Template',
label: 'Article',
content: '<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css"/><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="A front-end template that helps you build fast, modern mobile web apps."/><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"/><title>Material Design Lite</title><meta name="mobile-web-app-capable" content="yes"/><link rel="icon" sizes="192x192" href="images/android-desktop.png"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-status-bar-style" content="black"/><meta name="apple-mobile-web-app-title" content="Material Design Lite"/><link rel="apple-touch-icon-precomposed" href="images/ios-desktop.png"/><meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png"/><meta name="msapplication-TileColor" content="#3372DF"/><link rel="shortcut icon" href="images/favicon.png"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en"/><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/><link rel="stylesheet" href="$$hosted_libs_prefix$$/$$version$$/material.teal-red.min.css"/><link rel="stylesheet" href="styles.css"/><style> * { box-sizing: border-box;}body { margin: 0;}.mdl-layout__header-row{ background-color:#3f51b5;}.material-icons{ color:#efefef;}.mdl-layout-title{ color:#ffffff;}.demo-container.mdl-grid{ color:#424242;}</style><div class="demo-layout mdl-layout mdl-layout--fixed-header mdl-js-layout mdl-color--grey-100"> <header class="demo-header mdl-layout__header mdl-layout__header--scroll mdl-color--grey-100 mdl-color-text--grey-800"> <div class="mdl-layout__header-row"> <span class="mdl-layout-title">Material Design Lite</span> <div class="mdl-layout-spacer"> </div> <div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable"> <label for="search" class="mdl-button mdl-js-button mdl-button--icon"><i class="material-icons">search </i></label> <div class="mdl-textfield__expandable-holder"> <input type="text" id="search" class="mdl-textfield__input"/> <label for="search" class="mdl-textfield__label">Enter your query...</label> </div> </div> </div> </header> <div class="demo-ribbon"> </div> <main class="demo-main mdl-layout__content"> <div class="demo-container mdl-grid"> <div class="mdl-cell mdl-cell--2-col mdl-cell--hide-tablet mdl-cell--hide-phone"> </div> <div class="demo-content mdl-color--white mdl-shadow--4dp content mdl-color-text--grey-800 mdl-cell mdl-cell--8-col"> <div class="demo-crumbs mdl-color-text--grey-500"> Google > Material Design Lite > How to install MDL </div> <h3>How to install MDL </h3> <p> Cillum dolor esse sit incididunt velit eiusmod magna ad nostrud officia aute dolor dolor. Magna esse ullamco pariatur adipisicing consectetur eu commodo officia. Ex cillum consequat mollit minim elit est deserunt occaecat nisi amet. Quis aliqua nostrud Lorem occaecat sunt. Eiusmod quis amet ullamco aliquip dolore ut incididunt duis adipisicing. Elit consequat nisi eiusmod aute ipsum sunt veniam do est. Occaecat mollit aliquip ut proident consectetur amet ex dolore consectetur aliqua elit. </p> <p> Commodo nisi non consectetur voluptate incididunt mollit duis dolore amet amet tempor exercitation. Qui amet aute ea aute id ad aliquip proident. Irure duis qui labore deserunt enim in quis nisi sint consequat aliqua. Ex proident labore et laborum tempor fugiat sint magna veniam minim. Nulla dolor labore adipisicing in enim mollit laboris fugiat eu. Aliquip minim cillum ullamco voluptate non dolore non ex duis fugiat duis ad. Deserunt cillum ad et nisi amet non voluptate culpa qui do. Labore ullamco et minim proident est laborum mollit ad labore deserunt ut irure dolore. Reprehenderit ad ad irure ut irure qui est eu velit eu excepteur adipisicing culpa. Laborum cupidatat ullamco eu duis anim reprehenderit proident aute ad consectetur eiusmod. </p> <p> Tempor tempor aliqua in commodo cillum Lorem magna dolore proident Lorem. Esse ad consequat est excepteur irure eu irure quis aliqua qui. Do mollit esse veniam excepteur ut veniam anim minim dolore sit commodo consequat duis commodo. Sunt dolor reprehenderit ipsum minim eiusmod eu consectetur anim excepteur eiusmod. Duis excepteur anim dolor sit enim veniam deserunt anim adipisicing Lorem elit. Cillum sunt do consequat elit laboris nisi consectetur. </p> <h3>Basic MDL Usage </h3> <p> Cillum dolor esse sit incididunt velit eiusmod magna ad nostrud officia aute dolor dolor. Magna esse ullamco pariatur adipisicing consectetur eu commodo officia. Ex cillum consequat mollit minim elit est deserunt occaecat nisi amet. Quis aliqua nostrud Lorem occaecat sunt. Eiusmod quis amet ullamco aliquip dolore ut incididunt duis adipisicing. Elit consequat nisi eiusmod aute ipsum sunt veniam do est. Occaecat mollit aliquip ut proident consectetur amet ex dolore consectetur aliqua elit. </p> <p> Commodo nisi non consectetur voluptate incididunt mollit duis dolore amet amet tempor exercitation. Qui amet aute ea aute id ad aliquip proident. Irure duis qui labore deserunt enim in quis nisi sint consequat aliqua. Ex proident labore et laborum tempor fugiat sint magna veniam minim. Nulla dolor labore adipisicing in enim mollit laboris fugiat eu. Aliquip minim cillum ullamco voluptate non dolore non ex duis fugiat duis ad. Deserunt cillum ad et nisi amet non voluptate culpa qui do. Labore ullamco et minim proident est laborum mollit ad labore deserunt ut irure dolore. Reprehenderit ad ad irure ut irure qui est eu velit eu excepteur adipisicing culpa. Laborum cupidatat ullamco eu duis anim reprehenderit proident aute ad consectetur eiusmod. </p> <p> Cillum dolor esse sit incididunt velit eiusmod magna ad nostrud officia aute dolor dolor. Magna esse ullamco pariatur adipisicing consectetur eu commodo officia. Ex cillum consequat mollit minim elit est deserunt occaecat nisi amet. Quis aliqua nostrud Lorem occaecat sunt. Eiusmod quis amet ullamco aliquip dolore ut incididunt duis adipisicing. Elit consequat nisi eiusmod aute ipsum sunt veniam do est. Occaecat mollit aliquip ut proident consectetur amet ex dolore consectetur aliqua elit. </p> <p> Commodo nisi non consectetur voluptate incididunt mollit duis dolore amet amet tempor exercitation. Qui amet aute ea aute id ad aliquip proident. Irure duis qui labore deserunt enim in quis nisi sint consequat aliqua. Ex proident labore et laborum tempor fugiat sint magna veniam minim. Nulla dolor labore adipisicing in enim mollit laboris fugiat eu. Aliquip minim cillum ullamco voluptate non dolore non ex duis fugiat duis ad. Deserunt cillum ad et nisi amet non voluptate culpa qui do. Labore ullamco et minim proident est laborum mollit ad labore deserunt ut irure dolore. Reprehenderit ad ad irure ut irure qui est eu velit eu excepteur adipisicing culpa. Laborum cupidatat ullamco eu duis anim reprehenderit proident aute ad consectetur eiusmod. </p> <p> Cillum dolor esse sit incididunt velit eiusmod magna ad nostrud officia aute dolor dolor. Magna esse ullamco pariatur adipisicing consectetur eu commodo officia. Ex cillum consequat mollit minim elit est deserunt occaecat nisi amet. Quis aliqua nostrud Lorem occaecat sunt. Eiusmod quis amet ullamco aliquip dolore ut incididunt duis adipisicing. Elit consequat nisi eiusmod aute ipsum sunt veniam do est. Occaecat mollit aliquip ut proident consectetur amet ex dolore consectetur aliqua elit. </p> <p> Commodo nisi non consectetur voluptate incididunt mollit duis dolore amet amet tempor exercitation. Qui amet aute ea aute id ad aliquip proident. Irure duis qui labore deserunt enim in quis nisi sint consequat aliqua. Ex proident labore et laborum tempor fugiat sint magna veniam minim. Nulla dolor labore adipisicing in enim mollit laboris fugiat eu. Aliquip minim cillum ullamco voluptate non dolore non ex duis fugiat duis ad. Deserunt cillum ad et nisi amet non voluptate culpa qui do. Labore ullamco et minim proident est laborum mollit ad labore deserunt ut irure dolore. Reprehenderit ad ad irure ut irure qui est eu velit eu excepteur adipisicing culpa. Laborum cupidatat ullamco eu duis anim reprehenderit proident aute ad consectetur eiusmod. </p> <p> Cillum dolor esse sit incididunt velit eiusmod magna ad nostrud officia aute dolor dolor. Magna esse ullamco pariatur adipisicing consectetur eu commodo officia. Ex cillum consequat mollit minim elit est deserunt occaecat nisi amet. Quis aliqua nostrud Lorem occaecat sunt. Eiusmod quis amet ullamco aliquip dolore ut incididunt duis adipisicing. Elit consequat nisi eiusmod aute ipsum sunt veniam do est. Occaecat mollit aliquip ut proident consectetur amet ex dolore consectetur aliqua elit. </p> <p> Commodo nisi non consectetur voluptate incididunt mollit duis dolore amet amet tempor exercitation. Qui amet aute ea aute id ad aliquip proident. Irure duis qui labore deserunt enim in quis nisi sint consequat aliqua. Ex proident labore et laborum tempor fugiat sint magna veniam minim. Nulla dolor labore adipisicing in enim mollit laboris fugiat eu. Aliquip minim cillum ullamco voluptate non dolore non ex duis fugiat duis ad. Deserunt cillum ad et nisi amet non voluptate culpa qui do. Labore ullamco et minim proident est laborum mollit ad labore deserunt ut irure dolore. Reprehenderit ad ad irure ut irure qui est eu velit eu excepteur adipisicing culpa. Laborum cupidatat ullamco eu duis anim reprehenderit proident aute ad consectetur eiusmod. </p> </div> </div> <footer class="demo-footer mdl-mini-footer"> <div class="mdl-mini-footer--left-section"> <ul class="mdl-mini-footer--link-list"> <li> <a href="#">Help</a> </li> <li> <a href="#">Privacy and Terms</a> </li> <li> <a href="#">User Agreement</a> </li> </ul> </div> </footer> </main></div>',
attributes: {
class: 'fa fa-pencil'
}
});
blockManager.add('temp2', {
category: 'MD Template',
label: 'Pricing',
content:`<style>html {
font-size: 14px;
}
@media (min-width: 768px) {
html {
font-size: 16px;
}
}
.container {
max-width: 960px;
}
.pricing-header {
max-width: 700px;
}
.card-deck .card {
min-width: 220px;
}
.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }
.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }
</style>
<div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom box-shadow">
<h5 class="my-0 mr-md-auto font-weight-normal">Company name</h5>
<nav class="my-2 my-md-0 mr-md-3"><a href="#" class="p-2 text-dark">Features</a><a href="#" class="p-2 text-dark">Enterprise</a><a href="#" class="p-2 text-dark">Support</a><a href="#" class="p-2 text-dark">Pricing</a></nav><a href="#" class="btn btn-outline-primary">Sign up</a></div>
<div
class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h1 class="display-4">Pricing</h1>
<p class="lead">Quickly build an effective pricing table for your potential customers with this Bootstrap example. It's built with default Bootstrap components and utilities with little customization.</p>
</div>
<div class="container">
<div class="card-deck mb-3 text-center">
<div class="card mb-4 box-shadow">
<div class="card-header">
<h4 class="my-0 font-weight-normal">Free</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">$0 <small class="text-muted">/ mo</small></h1>
<ul class="list-unstyled mt-3 mb-4">
<li>10 users included</li>
<li>2 GB of storage</li>
<li>Email support</li>
<li>Help center access</li>
</ul><button type="button" class="btn btn-lg btn-block btn-outline-primary">Sign up for free</button></div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-header">
<h4 class="my-0 font-weight-normal">Pro</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">$15 <small class="text-muted">/ mo</small></h1>
<ul class="list-unstyled mt-3 mb-4">
<li>20 users included</li>
<li>10 GB of storage</li>
<li>Priority email support</li>
<li>Help center access</li>
</ul><button type="button" class="btn btn-lg btn-block btn-primary">Get started</button></div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-header">
<h4 class="my-0 font-weight-normal">Enterprise</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">$29 <small class="text-muted">/ mo</small></h1>
<ul class="list-unstyled mt-3 mb-4">
<li>30 users included</li>
<li>15 GB of storage</li>
<li>Phone and email support</li>
<li>Help center access</li>
</ul><button type="button" class="btn btn-lg btn-block btn-primary">Contact us</button></div>
</div>
</div>
<footer class="pt-4 my-md-5 pt-md-5 border-top">
<div class="row">
<div class="col-12 col-md" id="iq3c8"><small class="d-block mb-3 text-muted">© 2017-2018</small></div>
<div class="col-6 col-md">
<h5>Features</h5>
<ul class="list-unstyled text-small">
<li><a href="#" class="text-muted">Cool stuff</a></li>
<li><a href="#" class="text-muted">Random feature</a></li>
<li><a href="#" class="text-muted">Team feature</a></li>
<li><a href="#" class="text-muted">Stuff for developers</a></li>
<li><a href="#" class="text-muted">Another one</a></li>
<li><a href="#" class="text-muted">Last time</a></li>
</ul>
</div>
<div class="col-6 col-md">
<h5>Resources</h5>
<ul class="list-unstyled text-small">
<li><a href="#" class="text-muted">Resource</a></li>
<li><a href="#" class="text-muted">Resource name</a></li>
<li><a href="#" class="text-muted">Another resource</a></li>
<li><a href="#" class="text-muted">Final resource</a></li>
</ul>
</div>
<div class="col-6 col-md">
<h5>About</h5>
<ul class="list-unstyled text-small">
<li><a href="#" class="text-muted">Team</a></li>
<li><a href="#" class="text-muted">Locations</a></li>
<li><a href="#" class="text-muted">Privacy</a></li>
<li><a href="#" class="text-muted">Terms</a></li>
</ul>
</div>
</div>
</footer>
</div>
`,
attributes: {
class: 'fa fa-pencil'
}
});
blockManager.add('temp3', {
category: 'MD Template',
label: 'Jumbotron ',
content:`
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<main role="main">
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1 class="display-3">Hello, world!</h1>
<p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more »</a></p>
</div>
</div>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
</div>
<div class="col-md-4">
<h2>Heading</h2>
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
</div>
</div>
<hr>
</div> <!-- /container -->
</main>
<footer class="container">
<p>© Company 2017-2018</p>
</footer>
`,
attributes: {
class: 'fa fa-pencil'
}
});
/*
blockManager.add('temp4', {