MediaWiki:Common.js: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Sem resumo de edição |
Sem resumo de edição |
||
| (5 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
| Linha 10: | Linha 10: | ||
let lucideIconsTimer; | let lucideIconsTimer; | ||
lucideIconsTimer = setInterval(() => { | lucideIconsTimer = setInterval(() => { | ||
if (!"lucide" in window) return; | if (!("lucide" in window)) return; | ||
lucide.createIcons(); | lucide.createIcons(); | ||
clearInterval(lucideIconsTimer); | clearInterval(lucideIconsTimer); | ||
}, | }, 0); | ||
/* | |||
* Tailwind 4 | |||
*/ | |||
/*const tailwindScript = document.createElement("script"); | |||
tailwindScript.setAttribute("src", "https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"); | |||
document.head.appendChild(tailwindScript);*/ | |||
/* | |||
* home highlight video | |||
*/ | |||
const highlightCard = document.getElementById("card-home-highlight"); | |||
if (highlightCard) { | |||
highlightCard.innerHTML = `<iframe style="width:100%;height:100%" src="https://www.youtube-nocookie.com/embed/J2rSkIkfn2Y?si=Bnokwz16uxery1fW" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>`; | |||
} | |||
})(); | })(); | ||
Edição atual tal como às 01h39min de 6 de janeiro de 2026
(() => {
/*
* init LucideIcons
*/
const lucideIconsScript = document.createElement("script");
lucideIconsScript.setAttribute("src", "https://unpkg.com/lucide@latest/dist/umd/lucide.js");
document.head.appendChild(lucideIconsScript);
let lucideIconsTimer;
lucideIconsTimer = setInterval(() => {
if (!("lucide" in window)) return;
lucide.createIcons();
clearInterval(lucideIconsTimer);
}, 0);
/*
* Tailwind 4
*/
/*const tailwindScript = document.createElement("script");
tailwindScript.setAttribute("src", "https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4");
document.head.appendChild(tailwindScript);*/
/*
* home highlight video
*/
const highlightCard = document.getElementById("card-home-highlight");
if (highlightCard) {
highlightCard.innerHTML = `<iframe style="width:100%;height:100%" src="https://www.youtube-nocookie.com/embed/J2rSkIkfn2Y?si=Bnokwz16uxery1fW" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>`;
}
})();