Skip to content

Commit

Permalink
mudei o texto dos alt das imagens e a versão
Browse files Browse the repository at this point in the history
  • Loading branch information
zolppy committed Jan 19, 2024
1 parent 9b942fc commit 32d04a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
8 changes: 4 additions & 4 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const activateSound = () => {
keyDownSound.muted = false;

soundIcon.src = soundOff;
soundIcon.alt = "imagem em preto e branco que representa som desativado";
soundIcon.alt = "ícone de cor azul que representa som desativado";
soundIcon.classList.replace("sound-on", "sound-off");

localStorage.setItem("sound-on", JSON.stringify(true));
Expand All @@ -59,7 +59,7 @@ const muteSound = () => {
keyDownSound.muted = true;

soundIcon.src = soundOn;
soundIcon.alt = "imagem em preto e branco que representa som ativado";
soundIcon.alt = "ícone de cor azul que representa som ativado";
soundIcon.classList.replace("sound-off", "sound-on");

localStorage.setItem("sound-on", JSON.stringify(false));
Expand Down Expand Up @@ -395,14 +395,14 @@ window.addEventListener("load", () => {
if (sound) {
activateSound();
soundIcon.src = soundOff;
soundIcon.alt = "imagem em preto e branco que representa som desativado";
soundIcon.alt = "ícone de cor azul que representa som desativado";
soundIcon.classList.replace("sound-on", "sound-off");
}

if (!sound) {
muteSound();
soundIcon.src = soundOn;
soundIcon.alt = "imagem em preto e branco que representa som ativado";
soundIcon.alt = "ícone de cor azul que representa som ativado";
soundIcon.classList.replace("sound-off", "sound-on");
}
}
Expand Down
13 changes: 5 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,19 @@
<title>Snake</title>
<link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="assets/css/styles.css" />
<!-- Bootstrap icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css" />
<script defer src="assets/js/script.js"></script>
</head>
<body>
<header>
<h1 id="title">SNAKE GAME v1.0.0</h1>
<h1 id="title">SNAKE GAME v1.2.0</h1>
</header>
<main>
<div id="container">
<div id="status-container">
<div id="score-container">
<!-- <i class="bi bi-apple"></i><span id="score">0</span> -->
<img
src="assets/img/icons/apple.svg"
alt="maça em preto e branco"
alt="ícone de maçã vermelha"
id="apple"
/>
<span id="score">0</span>
Expand All @@ -30,15 +27,15 @@ <h1 id="title">SNAKE GAME v1.0.0</h1>
<div id="first-place-container" class="high-score">
<img
src="assets/img/icons/first-place.svg"
alt="imagem de troféu dourado"
alt="ícone de troféu dourado"
class="trophy"
/>
<span id="first-place-score">0</span>
</div>
<div id="second-place-container" class="high-score">
<img
src="assets/img/icons/second-place.svg"
alt="imagem de troféu prateado"
alt="ícone de troféu prateado"
class="trophy"
/>
</i><span id="second-place-score">0</span>
Expand All @@ -55,7 +52,7 @@ <h1 id="title">SNAKE GAME v1.0.0</h1>
<button id="toggle-mute-sound" type="button">
<img
src="assets/img/icons/sound-off.svg"
alt="imagem em preto e branco que representa som desativado"
alt="ícone de cor azul que representa som desativado"
id="sound"
class="sound-off"
/>
Expand Down

0 comments on commit 32d04a5

Please sign in to comment.