Widget:Test4: mudanças entre as edições

Ir para navegação Ir para pesquisar
sem sumário de edição
Sem resumo de edição
Sem resumo de edição
Linha 174: Linha 174:
     <label><b>Mostrar Hunts Neutras:</b></label>
     <label><b>Mostrar Hunts Neutras:</b></label>
     <div class="toggle-button" id="toggleNeutro">
     <div class="toggle-button" id="toggleNeutro">
         <img src="https://wiki.pokexgames.com/images/0/08/NeutralICON_Desativado.png" alt="Desativado" id="toggleNeutroIcon">
         <img src="https://wiki.pokexgames.com/images/0/08/NeutralICON_Desativado.png" alt="Desativado" id="toggleNeutroIcon">  
        <span id="toggleNeutroText">Desativado</span>
     </div>
     </div>
</div>
</div>
Linha 260: Linha 259:
             const imageContainer = document.getElementById("imageContainer");
             const imageContainer = document.getElementById("imageContainer");
             const toggleNeutro = document.getElementById("toggleNeutro");
             const toggleNeutro = document.getElementById("toggleNeutro");
             const toggleNeutroIcon = document.getElementById("toggleNeutroIcon");
             const toggleNeutroIcon = document.getElementById("toggleNeutroIcon");  
            const toggleNeutroText = document.getElementById("toggleNeutroText");
             const searchInput = document.getElementById("search");
             const searchInput = document.getElementById("search");
             const switchClans = document.getElementById("switchClans");
             const switchClans = document.getElementById("switchClans");
Linha 323: Linha 321:


     // Altera o texto e a imagem com base no estado
     // Altera o texto e a imagem com base no estado
     if (showNeutro) {
     if (showNeutro) {  
        toggleNeutroText.textContent = "Ativado";
         toggleNeutroIcon.src = neutroIconAtivado; // Imagem para estado "Ativado"
         toggleNeutroIcon.src = neutroIconAtivado; // Imagem para estado "Ativado"
     } else {
     } else {  
        toggleNeutroText.textContent = "Desativado";
         toggleNeutroIcon.src = neutroIconDesativado; // Imagem para estado "Desativado"
         toggleNeutroIcon.src = neutroIconDesativado; // Imagem para estado "Desativado"
     }
     }
7 752

edições

Menu de navegação