Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The menu doesn't expand I don't know if it's my code. Could you look and give me a hint? #14

Open
CleberAfr opened this issue Nov 16, 2021 · 4 comments

Comments

@CleberAfr
Copy link

const navMenu = document.getElementById('nav-menu'),
navToggle = document.getElementById('nav-toggle'),
navClose = document.getElementById('nav-close'),

/===== MENU SHOW =====/
/* Validate if constant exists */
if (navToggle){
navToggle.addEventListener('click', () =>{
navMenu.classList.add('show-menu')
})
}

@jaiswalprabhakar
Copy link

/==================== MENU SHOW Y HIDDEN ====================/
const navMenu = document.getElementById('nav-menu'),
navToggle =document.getElementById('nav-toggle'),
navClose = document.getElementById('nav-close')

/===== MENU SHOW =====/
/* Validate if constant exists */
if(navToggle){
navToggle.addEventListener('click', () =>{
navMenu.classList.add('show-menu')
})
}
if(navClose){
navClose.addEventListener('click', ()=>{
navMenu.classList.remove('show-menu')
})
}

@bgunjan
Copy link

bgunjan commented Jan 11, 2022

do you have the full code with you ?? @jaiswalprabhakar

@Princedaps1
Copy link

/==================== ACCORDION SKILLS ====================/

const skillsContent = document.getElementsByClassName('skills__content'),
skillsHeader = document.querySelectorAll('skills__header');
function toggleSkills() {
let itemClass = this.parentNode.ClassName;
for(i = 0; i < skillsContent.length; i++) {
skillsContent[i].className = 'skills__content skills__close';
}
if(itemClass === 'skills__content skills__close') {
this.parentNode.className = 'skills__content skills_open';
}
}
skillsHeader.forEach((el) =>{
el.addEventListener('click', toggleSkills);
});

this code is not working... please can you help

@danarbastian7
Copy link

hi, i cant show in qualification tabs, can i have the full code ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants