Mudanças entre as edições de "Widget:Teste"

De Wiki Gla
Ir para navegação Ir para pesquisar
Linha 1: Linha 1:
{| width=100% style="border-spacing:8px; font-family: Verdana, Arial, Helvetica, sans-serif;"
<style>
| style="width:40%; border-bottom:1px dashed #AAAAAA;" |
.skillbox-video {
<div style="display:inline-flex; align-items:center; gap:6px;">
  aspect-ratio: 16 / 9;
[[Arquivo:Gold_medal.gif|32px|link=]]
}
<span style="font-weight:bold;">Grand Line Adventures</span>
</style>
</div>
 
<div style="margin-top:2px;">
<script>
[[Download]] · [[Suporte]] · [[Doações]] · [[Benefícios VIP]] · [[Revendedores Oficiais]] · [[Criadores de Conteúdo]]
document.addEventListener("DOMContentLoaded", function () {
</div>
  const tabs = document.querySelectorAll('.skillbox-tab');
| style="width:40%; border-bottom:1px dashed #AAAAAA;" |
  const panels = document.querySelectorAll('.skillbox-panel');
<div style="display:inline-flex; align-items:center; gap:6px;">
 
[[Arquivo:Gold_medal.gif|32px|link=]]
  tabs.forEach((tab, index) => {
<span style="font-weight:bold;">Informações Gerais</span>
    tab.addEventListener('click', () => {
</div>
      tabs.forEach(t => t.classList.remove('active'));
<div style="margin-top:2px;">
      panels.forEach(p => p.classList.remove('active'));
[[Baús de Personagens]] · [[Tier e Estrelas]] · [[Perfil e Ranking]] · [[Experiência]] · [[Login Diário]] · [[Loja de Gemas]] · [[Skins]]
 
</div>
      tab.classList.add('active');
|-
      panels[index].classList.add('active');
| style="width:40%; border-bottom:1px dashed #AAAAAA;" |
 
<div style="display:inline-flex; align-items:center; gap:6px;">
      const video = panels[index].querySelector('video');
[[Arquivo:Gold_medal.gif|32px|link=]]
      if (video) {
<span style="font-weight:bold;">Sistemas</span>
        panels.forEach((p, i) => {
</div>
          const v = p.querySelector('video');
<div style="margin-top:2px;">
          if (v) v.pause();
[[Sistema de Indicação]] · [[Melhoria de Equipamentos]] · [[Black Market]] · [[Den-Den TV]] · [[Navegação]] · [[PvP]]
        });
</div>
        video.load();
| style="width:40%; border-bottom:1px dashed #AAAAAA;" |
        video.play();
<div style="display:inline-flex; align-items:center; gap:6px;">
      }
[[Arquivo:Gold_medal.gif|32px|link=]]
    });
<span style="font-weight:bold;">Configurações e Segurança</span>
  });
</div>
});
<div style="margin-top:2px;">
</script>
[[Configuração de Atalhos]] · [[Autorização de Máquina]] · [[Problemas de Conexão]] · [[Quick Cast]]
</div>
|-
| style="width:40%;" |
<div style="display:inline-flex; align-items:center; gap:6px;">
[[Arquivo:Gold_medal.gif|32px|link=]]
<span style="font-weight:bold;">Eventos Globais</span>
</div>
<div style="margin-top:2px;">
[[Foxy Quiz]] · [[Foxy Race]] · [[Deathmatch]] · [[Foxy Memory]] · [[Foxy Count]]
</div>
| style="width:40%;" |
<div style="display:inline-flex; align-items:center; gap:6px;">
[[Arquivo:Gold_medal.gif|32px|link=]]
<span style="font-weight:bold;">Eventos Temporários</span>
</div>
<div style="margin-top:2px;">
[[3D2Y]] · [[Summer]] · [[Halloween]] · [[Easter]] · [[Germa 66]] · [[Freedom]] · [[Fist of Love]]
</div>
|}

Edição das 02h08min de 23 de maio de 2025

<style> .skillbox-video {

 aspect-ratio: 16 / 9;

} </style>

<script> document.addEventListener("DOMContentLoaded", function () {

 const tabs = document.querySelectorAll('.skillbox-tab');
 const panels = document.querySelectorAll('.skillbox-panel');
 tabs.forEach((tab, index) => {
   tab.addEventListener('click', () => {
     tabs.forEach(t => t.classList.remove('active'));
     panels.forEach(p => p.classList.remove('active'));
     tab.classList.add('active');
     panels[index].classList.add('active');
     const video = panels[index].querySelector('video');
     if (video) {
       panels.forEach((p, i) => {
         const v = p.querySelector('video');
         if (v) v.pause();
       });
       video.load();
       video.play();
     }
   });
 });

}); </script>