Update pages.html
Browse files- pages.html +1 -5
pages.html
CHANGED
@@ -571,9 +571,8 @@ editor.Components.addType('video-player-settings', {
|
|
571 |
content: '<div id="video-player-settings"></div>',
|
572 |
// Скрипт для обработки блока (если нужно)
|
573 |
script: function(props) {
|
574 |
-
window.vid_list =
|
575 |
console.log('Video player settings initialized with vid_list:', vid_list);
|
576 |
-
|
577 |
// Подключение указанного скрипта
|
578 |
const loadScript = (src, callback) => {
|
579 |
const script = document.createElement('script');
|
@@ -581,7 +580,6 @@ editor.Components.addType('video-player-settings', {
|
|
581 |
script.onload = callback;
|
582 |
document.body.appendChild(script);
|
583 |
};
|
584 |
-
|
585 |
loadScript('https://huggingface.co/spaces/DMTuit/psy_vk/resolve/main/js/playerjs.js', () => {
|
586 |
console.log('PlayerJS script loaded!');
|
587 |
});
|
@@ -602,7 +600,6 @@ editor.Components.addType('video-player-settings', {
|
|
602 |
}
|
603 |
}
|
604 |
});
|
605 |
-
|
606 |
// Создаем блок для компонента настроек видеоплеера
|
607 |
editor.Blocks.add('video-player-settings-block', {
|
608 |
label: 'Video Player Settings',
|
@@ -620,7 +617,6 @@ editor.Blocks.add('video-player-settings-block', {
|
|
620 |
|
621 |
|
622 |
|
623 |
-
|
624 |
|
625 |
|
626 |
|
|
|
571 |
content: '<div id="video-player-settings"></div>',
|
572 |
// Скрипт для обработки блока (если нужно)
|
573 |
script: function(props) {
|
574 |
+
window.vid_list = props.vid_list;
|
575 |
console.log('Video player settings initialized with vid_list:', vid_list);
|
|
|
576 |
// Подключение указанного скрипта
|
577 |
const loadScript = (src, callback) => {
|
578 |
const script = document.createElement('script');
|
|
|
580 |
script.onload = callback;
|
581 |
document.body.appendChild(script);
|
582 |
};
|
|
|
583 |
loadScript('https://huggingface.co/spaces/DMTuit/psy_vk/resolve/main/js/playerjs.js', () => {
|
584 |
console.log('PlayerJS script loaded!');
|
585 |
});
|
|
|
600 |
}
|
601 |
}
|
602 |
});
|
|
|
603 |
// Создаем блок для компонента настроек видеоплеера
|
604 |
editor.Blocks.add('video-player-settings-block', {
|
605 |
label: 'Video Player Settings',
|
|
|
617 |
|
618 |
|
619 |
|
|
|
620 |
|
621 |
|
622 |
|