feat(cheat-ux) : toggle state
This commit is contained in:
parent
8efa8c25ea
commit
921ad80b1f
1 changed files with 15 additions and 3 deletions
|
@ -48,14 +48,22 @@
|
||||||
alert("Vous devez entrer l'identifiant de celui que vous souhaitez tuer !")
|
alert("Vous devez entrer l'identifiant de celui que vous souhaitez tuer !")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function toggleDot(id) {
|
||||||
|
const dot = document.getElementById('dot-' + id);
|
||||||
|
if (dot.style.display === 'none') {
|
||||||
|
dot.style.display = 'inline'; // ou 'block' si vous préférez
|
||||||
|
} else {
|
||||||
|
dot.style.display = 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<input type="number" id="id" class="button thirty" placeholder="id"><a onclick="kill_someone()" class="button fifty red" width="50%">KILL</a>
|
<input type="number" id="id" class="button thirty" placeholder="id"><a onclick="kill_someone()" class="button fifty red" width="50%">KILL</a>
|
||||||
<a onclick="window.parent.Lester(4,null)" class="button red" width="50%">KILL EVERYONE</a>
|
<a onclick="window.parent.Lester(4,null)" class="button red" width="50%">KILL EVERYONE</a>
|
||||||
<a onclick="window.parent.Lester(5,null)" class="button blue" width="50%">COLLISIONS</a>
|
<a onclick="window.parent.Lester(5,null)" class="button blue" width="50%">COLLISIONS</a>
|
||||||
<a onclick="window.parent.Lester(2,null)" class="button yellow">FULL LIFE</a>
|
<a onclick="window.parent.Lester(2,null)" class="button yellow">FULL LIFE</a>
|
||||||
<a onclick="window.parent.Lester(6,null)" class="button yellow">GOD MOD</a>
|
<a onclick="window.parent.Lester(6,null); toggleDot(6)" class="button yellow">GOD MOD <span class="dot" id="dot-6">●</span></a>
|
||||||
<a onclick="window.parent.Lester(7,null)" class="button yellow">AK-47</a>
|
<a onclick="window.parent.Lester(7,null); toggleDot(7)" class="button yellow">AK-47 <span class="dot" id="dot-7">●</span></a>
|
||||||
<a onclick="window.parent.Lester(8,null)" class="button yellow">TP sur clique gauche</a>
|
<a onclick="window.parent.Lester(8,null); toggleDot(8)" class="button yellow">TP sur clique gauche <span class="dot" id="dot-8">●</span></a>
|
||||||
<a onclick="window.parent.Lester(1,[363,282,5])" class="button green">SAFE ZONE</a>
|
<a onclick="window.parent.Lester(1,[363,282,5])" class="button green">SAFE ZONE</a>
|
||||||
<a onclick="window.parent.Lester(1,[200,100,0])" class="button green">MAP 0</a>
|
<a onclick="window.parent.Lester(1,[200,100,0])" class="button green">MAP 0</a>
|
||||||
<a onclick="window.parent.Lester(1,[516,789,1])" class="button green">MAP 1</a>
|
<a onclick="window.parent.Lester(1,[516,789,1])" class="button green">MAP 1</a>
|
||||||
|
@ -70,4 +78,8 @@
|
||||||
<a onclick="window.parent.Lester(1,[58,269,10])" class="button green">MAP 10</a>
|
<a onclick="window.parent.Lester(1,[58,269,10])" class="button green">MAP 10</a>
|
||||||
<a onclick="window.parent.Lester(1,[276,860,11])" class="button green">MAP 11</a>
|
<a onclick="window.parent.Lester(1,[276,860,11])" class="button green">MAP 11</a>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
toggleDot(6); toggleDot(7); toggleDot(8); // par défaut eteindre les pastilles
|
||||||
|
</script>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue