Initial commit - portfolio WordPress
This commit is contained in:
commit
7eead39412
24 files changed
+1581
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 639 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
@@ -0,0 +1,19 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
/* --- Menu mobile --------------------------------------- */
|
||||
const toggle = document.querySelector('.nav-toggle');
|
||||
const nav = document.querySelector('.main-nav');
|
||||
if (toggle && nav) {
|
||||
toggle.addEventListener('click', () => {
|
||||
const open = nav.classList.toggle('is-open');
|
||||
toggle.setAttribute('aria-expanded', open);
|
||||
});
|
||||
nav.querySelectorAll('a').forEach(a => {
|
||||
a.addEventListener('click', () => {
|
||||
nav.classList.remove('is-open');
|
||||
toggle.setAttribute('aria-expanded', false);
|
||||
});
|
||||
});
|
||||
}
|
||||
})();
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user