-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚑 Pasar a typescript y limpiar redundancias
- Loading branch information
Showing
10 changed files
with
236 additions
and
255 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const contenedorMensaje = document.getElementById('mensaje') as HTMLDivElement; | ||
|
||
export function imprimirMensaje(mensaje: string) { | ||
contenedorMensaje.innerText = mensaje; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const contenedor = document.getElementById('contenedor') as HTMLElement; | ||
const controles = document.getElementById('controles') as HTMLDivElement; | ||
const iconoFullScreen = document.getElementById('iconoFullScreen') as HTMLButtonElement; | ||
let pantallaCompleta = false; | ||
|
||
function cambiarModoPantalla() { | ||
if (!pantallaCompleta) { | ||
controles.classList.add('oculto'); | ||
contenedor.classList.add('pantallaCompleta'); | ||
iconoFullScreen.innerText = 'Exit full screen'; | ||
} else { | ||
controles.classList.remove('oculto'); | ||
contenedor.classList.remove('pantallaCompleta'); | ||
iconoFullScreen.innerText = 'Full screen'; | ||
} | ||
pantallaCompleta = !pantallaCompleta; | ||
} | ||
|
||
export function controlesPantallaCompleta() { | ||
iconoFullScreen.onclick = cambiarModoPantalla; | ||
} |
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.