Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View fernastereo's full-sized avatar
💭
Coding

Fernando E. Cueto fernastereo

💭
Coding
View GitHub Profile
//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++;
}
}
@fernastereo
fernastereo / app.js
Created February 1, 2020 16:52
Responsive Nav Bar
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