This file contains hidden or 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
| version: '3' | |
| services: | |
| #nginx | |
| ventanilla-unica-api: | |
| image: nginx:latest | |
| container_name: api | |
| ports: | |
| - "5000:80" | |
| volumes: |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Burger Menu and Sticky Footer</title> | |
| <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet"> | |
| <style> | |
| *{ | |
| padding: 0; |
This file contains hidden or 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
| //Ejercicio 1 | |
| const count = (str, char) => { | |
| console.log(`Recibidos ${str} y ${char}`); | |
| let result = 0; | |
| for (let index = 0; index < str.length; index++) { | |
| if (char == str[index]) { | |
| result++; | |
| } | |
| } |
This file contains hidden or 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
| const navSlide = () => { | |
| const burguer = document.querySelector('.burguer'); | |
| const nav = document.querySelector('.nav-links'); | |
| const navLinks = document.querySelectorAll('.nav-links li'); | |
| //Toggle Nav | |
| burguer.addEventListener('click', () => { | |
| nav.classList.toggle('nav-active'); | |
| //Animate Links |