MediaWiki:Common.js: различия между версиями

Нет описания правки
Метка: отменено
реанимация вк
Метка: отменено
Строка 96: Строка 96:
                 iframe.allowFullscreen = true;  
                 iframe.allowFullscreen = true;  
                  
                  
                 iframe.sandbox = 'allow-scripts allow-presentation allow-fullscreen';
                 iframe.sandbox = 'allow-scripts allow-same-origin allow-presentation allow-fullscreen';
                 iframe.allow = 'fullscreen';  
                 iframe.allow = 'fullscreen';  
               
                 iframe.referrerPolicy = 'no-referrer';
                 iframe.referrerPolicy = 'no-referrer';
                 iframe.loading = 'lazy';
                 iframe.loading = 'lazy';
               
                 iframe.style.border = 'none';  
                 iframe.style.border = 'none';  
                iframe.style.pointerEvents = 'auto';
 
               
                 while (container.firstChild) {  
                 while (container.firstChild) {  
                     container.removeChild(container.firstChild);  
                     container.removeChild(container.firstChild);  
                 }  
                 }  
                 container.appendChild(iframe);  
                 container.appendChild(iframe);  
             } else {
             } else {  
                 var errorDiv = document.createElement('div');  
                 var errorDiv = document.createElement('div');  
                 errorDiv.style.cssText = 'color: red; padding: 10px; text-align: center; border: 1px solid red;';  
                 errorDiv.style.cssText = 'color: red; padding: 10px; text-align: center; border: 1px solid red;';  
Строка 126: Строка 125:
     }  
     }  
})();
})();


/* Вставка Rutube-видео на страницу для шаблона {{Rutube}} */
/* Вставка Rutube-видео на страницу для шаблона {{Rutube}} */