Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
spbRusty authored Aug 26, 2024
1 parent 667b938 commit 6dae6d8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function determineWinner(playerChoice, computerChoice) {

function updateScoreboard() {
const scoreboard = document.getElementById('result-message');
scoreboard.innerHTML = `Счёт3:<br>Вы - ${playerScore}, Компьютер - ${computerScore}<br>Раунд ${roundsPlayed + 1}`;
scoreboard.innerHTML = `Счёт4:<br>Вы - ${playerScore}, Компьютер - ${computerScore}<br>Раунд ${roundsPlayed + 1}`;
}

function checkGameWinner() {
Expand Down Expand Up @@ -103,14 +103,9 @@ function resetGame() {
startNextRound();
}

window.Telegram.WebApp.ready();

function callDonat() {
if (window.Telegram && window.Telegram.WebApp) {
window.Telegram.WebApp.sendData('/pay');
} else {
console.error('Telegram Web App API не доступен');
}
Telegram.WebApp.sendData('/pay');
window.Telegram.WebApp.sendData('/pay');
}


Expand Down

0 comments on commit 6dae6d8

Please sign in to comment.