Compare commits
4 Commits
aebd696259
...
v1
Author | SHA1 | Date | |
---|---|---|---|
b7a9b4ada9 | |||
0fa61a28d9 | |||
e31ee45261 | |||
2b8c8799ad |
10
index.html
10
index.html
@@ -2,9 +2,19 @@
|
||||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name='author' content='Fernando Méndez' />
|
||||
<meta name='description' content='Página web de juegos online de Fernando Méndez.'>
|
||||
<title>FerMdez - Games</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:700,400&display=swap" rel="stylesheet">
|
||||
<link rel='icon' href='./media/favicon.ico' sizes='192x192' />
|
||||
<meta name='keywords' content='fermdez, juegos, games, mini-juegos, fermdez juegos, fermdez games'/>
|
||||
<meta property='og:type' content='website' />
|
||||
<meta property='og:site_name' content='FerMdez' />
|
||||
<meta property='og:title' content='Fernando Méndez' />
|
||||
<meta property='og:description' content='Página web de juegos online de Fernando Méndez.' />
|
||||
<meta property='og:image' content='https://games.fermdez.net/media/favicon.ico' />
|
||||
<meta property='og:url' content='https://games.fermdez.net/' />
|
||||
<style>
|
||||
body {
|
||||
background: linear-gradient(120deg, #9cebfc 0%, #e9defa 100%);
|
||||
|
BIN
media/favicon.ico
Normal file
BIN
media/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 360 KiB |
@@ -18,7 +18,7 @@ function playRound(userChoice) {
|
||||
const computerChoice = computerPlay();
|
||||
|
||||
let resultMsg = `Tu elección: ${emoji(userChoice)} ${capitalize(userChoice)}<br>
|
||||
Computadora: ${emoji(computerChoice)} ${capitalize(computerChoice)}<br>`;
|
||||
Máquina: ${emoji(computerChoice)} ${capitalize(computerChoice)}<br>`;
|
||||
|
||||
if (userChoice === computerChoice) {
|
||||
resultMsg += "<strong>¡Empate!</strong>";
|
||||
@@ -33,7 +33,7 @@ function playRound(userChoice) {
|
||||
} else {
|
||||
computerScore++;
|
||||
computerScoreSpan.textContent = computerScore;
|
||||
resultMsg += "<strong>La computadora gana esta ronda.</strong>";
|
||||
resultMsg += "<strong>La máquina gana esta ronda.</strong>";
|
||||
}
|
||||
|
||||
resultDiv.innerHTML = resultMsg;
|
||||
|
@@ -8,7 +8,7 @@
|
||||
<body>
|
||||
<h1>Atrapa el Topo</h1>
|
||||
<p>Haz clic en el topo cuando aparezca. ¡Consigue la mejor puntuación en 30 segundos!</p>
|
||||
<div id="score">Puntaje: <span id="score-value">0</span></div>
|
||||
<div id="score">Puntuación: <span id="score-value">0</span></div>
|
||||
<div id="timer">Tiempo: <span id="timer-value">30</span>s</div>
|
||||
<div id="grid"></div>
|
||||
<button id="start-btn">¡Empezar!</button>
|
||||
|
Reference in New Issue
Block a user