7 752
edições
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"> | ||
</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 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) { | ||
toggleNeutroIcon.src = neutroIconAtivado; // Imagem para estado "Ativado" | toggleNeutroIcon.src = neutroIconAtivado; // Imagem para estado "Ativado" | ||
} else { | } else { | ||
toggleNeutroIcon.src = neutroIconDesativado; // Imagem para estado "Desativado" | toggleNeutroIcon.src = neutroIconDesativado; // Imagem para estado "Desativado" | ||
} | } |