feature+ui(circles): issue #91 CSS - Right menu of circles + issue #92 CSS - circle-create + issue #93 HTML-CSS - circle-profile
Add styles to the right menu and fix bug on toggle Add styles to the form Add styles and HTML to circle-profile Add styles to sib-form-multiple-dropdown Clean up content.scss and circle-profile
This commit is contained in:
@ -2,12 +2,7 @@ document.addEventListener('DOMContentLoaded', function (event) {
|
||||
const navBar = document.querySelector('#navbar');
|
||||
const btnToggle = document.querySelector('#button-toggle');
|
||||
const menuWrappers = Array.from(document.querySelectorAll('.menu-wrapper'));
|
||||
const btnRightMenu = document.querySelector('#jsOffsiteToggle');
|
||||
const rightMenu = document.querySelector('#jsRightMenu');
|
||||
|
||||
const display = document.querySelector('sib-display#profiles-list');
|
||||
const nav = display.querySelector("nav");
|
||||
console.log(nav);
|
||||
const rightMenus = Array.from(document.querySelectorAll('nav.jsRightMenu'));
|
||||
|
||||
if (!navBar || !btnToggle) return;
|
||||
|
||||
@ -43,7 +38,12 @@ document.addEventListener('DOMContentLoaded', function (event) {
|
||||
});
|
||||
|
||||
// Open/close menu on the right
|
||||
btnRightMenu.addEventListener('click', e => {
|
||||
rightMenu.classList.toggle('offsite-is-closed');
|
||||
});
|
||||
rightMenus.forEach(rightMenu => {
|
||||
const btnRightMenu = rightMenu.querySelector("li.jsOffsiteToggle");
|
||||
|
||||
btnRightMenu.addEventListener('click', e => {
|
||||
rightMenu.classList.toggle('offsite-is-closed');
|
||||
})
|
||||
})
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user