Genmking

New Member
May 27, 2024
1
0
30
sometime when doing some action mine character health return to 0 how to fix that i stucked
 
Last edited:

francsco854

New Member
Apr 28, 2020
7
1
62
I wanted to know if there is a way to integrate this code into the game and make it work:
HTML:
<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Histórico do Jogo</title>

<style>

#ui-bar-history {

display: flex;

gap: 10px;

}

button:disabled {

opacity: 0.5;

}

</style>

</head>

<body>

<div id="ui-bar-history">

<button id="history-backward" tabindex="0" title="Voltar no histórico do jogo" aria-label="Voltar no histórico do jogo" disabled="" aria-disabled="true" type="button">⬅</button>

<button id="history-forward" tabindex="0" title="Avançar no histórico do jogo" aria-label="Avançar no histórico do jogo" disabled="" aria-disabled="true" type="button">➡</button>

</div>



<script>

// Funções para ativar e desativar botões

function enableButton(buttonId) {

const button = document.getElementById(buttonId);

button.removeAttribute('disabled');

button.removeAttribute('aria-disabled');

}



function disableButton(buttonId) {

const button = document.getElementById(buttonId);

button.setAttribute('disabled', '');

button.setAttribute('aria-disabled', 'true');

}



// Exemplo de como usar as funções

setTimeout(() => {

enableButton('history-backward');

enableButton('history-forward');

}, 2000); // Ativa os botões após 2 segundos

</script>

</body>

</html>
I sent it again with the code tag to make it easier to read and correct the community
tooldev
 

francsco854

New Member
Apr 28, 2020
7
1
62
I wanted to know if there is a way to integrate this code into the game and make it work:
HTML:
<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Histórico do Jogo</title>

<style>

#ui-bar-history {

display: flex;

gap: 10px;

}

button:disabled {

opacity: 0.5;

}

</style>

</head>

<body>

<div id="ui-bar-history">

<button id="history-backward" tabindex="0" title="Voltar no histórico do jogo" aria-label="Voltar no histórico do jogo" disabled="" aria-disabled="true" type="button">⬅</button>

<button id="history-forward" tabindex="0" title="Avançar no histórico do jogo" aria-label="Avançar no histórico do jogo" disabled="" aria-disabled="true" type="button">➡</button>

</div>



<script>

// Funções para ativar e desativar botões

function enableButton(buttonId) {

const button = document.getElementById(buttonId);

button.removeAttribute('disabled');

button.removeAttribute('aria-disabled');

}



function disableButton(buttonId) {

const button = document.getElementById(buttonId);

button.setAttribute('disabled', '');

button.setAttribute('aria-disabled', 'true');

}



// Exemplo de como usar as funções

setTimeout(() => {

enableButton('history-backward');

enableButton('history-forward');

}, 2000); // Ativa os botões após 2 segundos

</script>

</body>

</html>
I sent it again with the code tag to make it easier to read and correct the community
tooldev
it seems that the game itself blocks it, how to make it work
 
3.50 star(s) 30 Votes