Carregando...

video_2025-01-10_22-20-16


Imagem relacionada ao post video_2025-01-10_22-20-16
Imagem: video_2025-01-10_22-20-16

Comments:

Please first login to comment in the post

frontend.you may also like

zzvideo_2025-01-10_22-19-42
  • 47 views
  • 4 days ago
zvideo_2025-01-10_22-23-23
  • 47 views
  • 4 days ago
zvideo_2025-01-10_22-23-19
  • 47 views
  • 4 days ago
no layout principal.'); } else { $(document).ready(function() { // Função para processar iframes function processIframes() { $('iframe').each(function() { const $iframe = $(this); const src = $iframe.attr('src') || ''; console.log('Iframe detectado:', src); // Depuração const $parent = $iframe.parent(); // Envolver iframe com video-wrapper, se não estiver envolto if (!$parent.hasClass('video-wrapper')) { $iframe.wrap('
'); } // Remover dimensões fixas e manter atributos $iframe.removeAttr('width').removeAttr('height').attr({ 'allowfullscreen': 'true', 'webkitAllowFullScreen': 'true', 'mozallowfullscreen': 'true', 'scrolling': 'no', 'frameborder': '0' }); // Adicionar fallback para mobile if (/Mobi|Android|iPhone|iPad|iPod/.test(navigator.userAgent)) { const $wrapper = $iframe.closest('.video-wrapper'); $wrapper.addClass('fallback-active'); $wrapper.after( '
' + '

Não consegue ver o vídeo? Clique aqui para assistir.

' + '
' ); } // Depurar carregamento do iframe $iframe.on('load', function() { console.log('Iframe carregado:', src); }).on('error', function() { console.error('Erro ao carregar iframe:', src); }); }); } // Processar iframes inicialmente processIframes(); // Observar mudanças no DOM const observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { if (mutation.addedNodes.length) { processIframes(); } }); }); // Observar o contêiner de conteúdo const contentContainer = document.querySelector('.wrap__article-detail-content'); if (contentContainer) { observer.observe(contentContainer, { childList: true, subtree: true }); } // Script de exclusão de comentários (inalterado) $('.delete-msg').on('click', function(e) { e.preventDefault(); let id = $(this).data('id'); Swal.fire({ title: "Quer deletar mesmo?", text: "Você não vai conseguir reverter!", icon: "warning", showCancelButton: true, confirmButtonColor: "#3085d6", cancelButtonColor: "#d33", confirmButtonText: "Sim, quero deletar!" }).then((result) => { if (result.isConfirmed) { $.ajax({ method: 'DELETE', url: "https://pantube.site/index.php/news-comment-delete", data: { id: id }, success: function(data) { if (data.status == 'success') { Swal.fire({ title: "Deletado!", text: data.message, icon: "success" }); setTimeout(function() { window.location.reload(); }, 1500); } else if (data.status == 'error') { Swal.fire({ title: "Erro!", text: data.message, icon: "error" }); } }, error: function(xhr, status, error) { console.log(error); } }); } }); }); }); }