Add basic scaffolding for site.
This commit is contained in:
BIN
themes/mainroad/static/apple-touch-icon.png
Normal file
BIN
themes/mainroad/static/apple-touch-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 111 B |
BIN
themes/mainroad/static/favicon.ico
Normal file
BIN
themes/mainroad/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
themes/mainroad/static/img/avatar.png
Normal file
BIN
themes/mainroad/static/img/avatar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
themes/mainroad/static/img/placeholder.png
Normal file
BIN
themes/mainroad/static/img/placeholder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
25
themes/mainroad/static/js/menu.js
Normal file
25
themes/mainroad/static/js/menu.js
Normal file
@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
|
||||
(function iifeMenu(document, window, undefined) {
|
||||
var menuBtn = document.querySelector('.menu__btn');
|
||||
var menu = document.querySelector('.menu__list');
|
||||
|
||||
function toggleMenu() {
|
||||
menu.classList.toggle('menu__list--active');
|
||||
menu.classList.toggle('menu__list--transition');
|
||||
this.classList.toggle('menu__btn--active');
|
||||
this.setAttribute(
|
||||
'aria-expanded',
|
||||
this.getAttribute('aria-expanded') === 'true' ? 'false' : 'true'
|
||||
);
|
||||
}
|
||||
|
||||
function removeMenuTransition() {
|
||||
this.classList.remove('menu__list--transition');
|
||||
}
|
||||
|
||||
if (menuBtn && menu) {
|
||||
menuBtn.addEventListener('click', toggleMenu, false);
|
||||
menu.addEventListener('transitionend', removeMenuTransition, false);
|
||||
}
|
||||
}(document, window));
|
Reference in New Issue
Block a user