Update js/rus/rus.js
Browse files- js/rus/rus.js +12 -50
js/rus/rus.js
CHANGED
@@ -428,7 +428,7 @@ editor.Components.addType('video-player-settings', {
|
|
428 |
model: {
|
429 |
defaults: {
|
430 |
// HTML-код блока настроек видеоплеера
|
431 |
-
content: '<div
|
432 |
// Скрипт для обработки блока (если нужно)
|
433 |
script: function(props) {
|
434 |
window.vid_list = props.vid_list;
|
@@ -538,55 +538,6 @@ editor.Blocks.add('video-player-settings-block', {
|
|
538 |
content: { type: 'video-player-settings' },
|
539 |
});
|
540 |
|
541 |
-
// Создаем блок стилей плеера
|
542 |
-
editor.CssComposer.addRules(`
|
543 |
-
.ramka-7 {
|
544 |
-
width: 480px;
|
545 |
-
height: 270px;
|
546 |
-
background-color: #FFF;
|
547 |
-
position: relative;
|
548 |
-
margin: 60px auto;
|
549 |
-
display: flex;
|
550 |
-
align-items: center;
|
551 |
-
justify-content: center;
|
552 |
-
font-size: 24px;
|
553 |
-
font-family: 'Roboto', sans-serif;
|
554 |
-
box-shadow: inset 6px 6px 8px 0 rgba(0,0,0,0.4);
|
555 |
-
}
|
556 |
-
.ramka-7:after,
|
557 |
-
.ramka-7:before {
|
558 |
-
mix-blend-mode:multiply;
|
559 |
-
filter:none;
|
560 |
-
z-index: -1;
|
561 |
-
content:'';
|
562 |
-
width: calc(100% + 90px);
|
563 |
-
height: calc(100% + 90px);
|
564 |
-
position: absolute;
|
565 |
-
animation: anim-ramka-7 8s ease-in-out infinite;
|
566 |
-
}
|
567 |
-
@keyframes anim-ramka-7 {
|
568 |
-
0%, 100% {
|
569 |
-
clip-path: polygon(0 0, calc(100% - (33px)) calc(0% + (33px)), 100% 100%, calc(0% + (33px)) calc(100% - (33px)));
|
570 |
-
}
|
571 |
-
50% {
|
572 |
-
clip-path: polygon(calc(0% + (33px)) calc(0% + (33px)), 100% 0, calc(100% - (33px)) calc(100% - (33px)), 0 100%);
|
573 |
-
}
|
574 |
-
}
|
575 |
-
.ramka-7:after{
|
576 |
-
animation-delay: -5s;
|
577 |
-
background-color: #BFE2FF;
|
578 |
-
clip-path: polygon(0 0, calc(100% - (33px)) calc(0% + (33px)), 100% 100%, calc(0% + (33px)) calc(100% - (33px)));
|
579 |
-
}
|
580 |
-
.ramka-7:before {
|
581 |
-
background-color: #337AB7;
|
582 |
-
clip-path: polygon(calc(0% + (33px)) calc(0% + (33px)), 100% 0, calc(100% - (33px)) calc(100% - (33px)), 0 100%);
|
583 |
-
}
|
584 |
-
.ramka-7:hover:before,
|
585 |
-
.ramka-7:hover:after {
|
586 |
-
animation-play-state: paused;
|
587 |
-
}
|
588 |
-
`);
|
589 |
-
|
590 |
|
591 |
|
592 |
|
@@ -624,4 +575,15 @@ editor.CssComposer.addRules(`
|
|
624 |
top: 0;
|
625 |
display: block;
|
626 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
627 |
`);
|
|
|
428 |
model: {
|
429 |
defaults: {
|
430 |
// HTML-код блока настроек видеоплеера
|
431 |
+
content: '<div id="player"></div>',
|
432 |
// Скрипт для обработки блока (если нужно)
|
433 |
script: function(props) {
|
434 |
window.vid_list = props.vid_list;
|
|
|
538 |
content: { type: 'video-player-settings' },
|
539 |
});
|
540 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
541 |
|
542 |
|
543 |
|
|
|
575 |
top: 0;
|
576 |
display: block;
|
577 |
}
|
578 |
+
|
579 |
+
#player {
|
580 |
+
width: 720px;
|
581 |
+
height: 480px;
|
582 |
+
border: 3px solid black;
|
583 |
+
margin: 0 auto;
|
584 |
+
position: relative;
|
585 |
+
top: 0;
|
586 |
+
display: block;
|
587 |
+
}
|
588 |
+
|
589 |
`);
|