Calculator Tools Calculator Tools
Create

Jogo Educativo de Alfabetização

Oct 30, 2023

About this app

Um jogo divertido e colorido para ajudar as pessoas a aprender o alfabeto.

Jogo Educativo de Alfabetização Próxima letra 🚀

Related apps

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>Jogo Educativo de Alfabetização</title>
<meta name="description" content="Um jogo divertido e colorido para ajudar as pessoas a aprender o alfabeto.">
<meta name="keywords" content="jogo, educativo, alfabetização, aprender, alfabeto">

<link href="https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">

<script type="text/javascript">
try {
let alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('');
let currentLetterIndex = 0;

function nextLetter() {
if (currentLetterIndex < alphabet.length) {
document.getElementById('letter').innerText = alphabet[currentLetterIndex];
currentLetterIndex++;
} else {
alert("Parabéns! Você completou o alfabeto!");
currentLetterIndex = 0;
document.getElementById('letter').innerText = alphabet[currentLetterIndex];
}
}

document.addEventListener("DOMContentLoaded", function() {
document.getElementById('next-button').addEventListener('click', nextLetter);
nextLetter();
});

} catch (error) {
throw error;
}
</script>

<style>
body {
background: linear-gradient(to right, #fbc2eb, #a6c1ee);
font-family: 'Indie Flower', cursive;
}

#main-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
color: #fff;
}

#letter {
font-size: 120px;
margin-bottom: 50px;
}

.btn {
font-size: 30px;
background-color: #ff7e5f;
border: none;
border-radius: 15px;
padding: 20px;
color: #fff;
cursor: pointer;
font-family: 'Pacifico', cursive;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<div id="letter"></div>
<button id="next-button" class="btn">Próxima letra 🚀</button>
</div>
</body>
</html>