DmitrMakeev commited on
Commit
5db79a6
·
verified ·
1 Parent(s): 1da96e8

Update pages.html

Browse files
Files changed (1) hide show
  1. pages.html +47 -28
pages.html CHANGED
@@ -842,33 +842,7 @@ editor.BlockManager.add('custom-countdown', {
842
  }
843
  });
844
 
845
- </script>
846
-
847
- <script>
848
-
849
-
850
-
851
- editor.BlockManager.add('custom-iframe', {
852
- label: 'Custom Iframe',
853
- content: `<iframe id="custom-iframe" frameborder="0" width="720" height="405" src="https://rutube.ru/play/embed/538dc9cc0b952dd52f47e28df7df5e81/" allow="clipboard-write; autoplay" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: relative; top: 0; margin: 0 auto; display: block;"></iframe>`,
854
- attributes: {
855
- class: 'fa fa-video-camera'
856
- }
857
- });
858
- editor.CssComposer.addRules(`
859
- #custom-iframe {
860
- width: 720px;
861
- height: 405px;
862
- border: none;
863
- margin: 0 auto;
864
- position: relative;
865
- top: 0;
866
- display: block;
867
- }
868
- `);
869
-
870
-
871
- editor.Components.addType('custom-countdown', {
872
  model: {
873
  defaults: {
874
  traits: [
@@ -912,7 +886,52 @@ editor.CssComposer.addRules(`
912
  }
913
  }
914
  }
915
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
916
 
917
  </script>
918
 
 
842
  }
843
  });
844
 
845
+ editor.Components.addType('custom-countdown', {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
846
  model: {
847
  defaults: {
848
  traits: [
 
886
  }
887
  }
888
  }
889
+ });
890
+
891
+
892
+ editor.BlockManager.add('custom-countdown', {
893
+ label: 'Custom Countdown',
894
+ content: {
895
+ type: 'custom-countdown',
896
+ startfrom: '',
897
+ blockId: ''
898
+ },
899
+ attributes: {
900
+ class: 'fa fa-clock-o'
901
+ }
902
+ });
903
+
904
+
905
+
906
+
907
+
908
+ </script>
909
+
910
+ <script>
911
+
912
+
913
+
914
+ editor.BlockManager.add('custom-iframe', {
915
+ label: 'Custom Iframe',
916
+ content: `<iframe id="custom-iframe" frameborder="0" width="720" height="405" src="https://rutube.ru/play/embed/538dc9cc0b952dd52f47e28df7df5e81/" allow="clipboard-write; autoplay" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: relative; top: 0; margin: 0 auto; display: block;"></iframe>`,
917
+ attributes: {
918
+ class: 'fa fa-video-camera'
919
+ }
920
+ });
921
+ editor.CssComposer.addRules(`
922
+ #custom-iframe {
923
+ width: 720px;
924
+ height: 405px;
925
+ border: none;
926
+ margin: 0 auto;
927
+ position: relative;
928
+ top: 0;
929
+ display: block;
930
+ }
931
+ `);
932
+
933
+
934
+
935
 
936
  </script>
937