Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pfadfinder-konstanz/hugo-dpsg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorvimux <vimux@protonmail.com>2016-12-15 16:17:30 +0300
committerMax Mehl <mail@mehl.mx>2020-10-29 19:55:14 +0300
commita77e156dc776dcb68aed075af12f88a5d6c67585 (patch)
tree950079d48e888b586553196c723a4fb8315a367c /static
Vimux/Mainroad commit 8c2da72f92947e0bda55eacce1a70df8c3296ba5
Diffstat (limited to 'static')
-rw-r--r--static/apple-touch-icon.pngbin0 -> 111 bytes
-rw-r--r--static/favicon.icobin0 -> 1350 bytes
-rw-r--r--static/img/avatar.pngbin0 -> 1139 bytes
-rw-r--r--static/img/placeholder.pngbin0 -> 4711 bytes
-rw-r--r--static/js/menu.js25
5 files changed, 25 insertions, 0 deletions
diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png
new file mode 100644
index 0000000..441def4
--- /dev/null
+++ b/static/apple-touch-icon.png
Binary files differ
diff --git a/static/favicon.ico b/static/favicon.ico
new file mode 100644
index 0000000..b7a49cc
--- /dev/null
+++ b/static/favicon.ico
Binary files differ
diff --git a/static/img/avatar.png b/static/img/avatar.png
new file mode 100644
index 0000000..8afac66
--- /dev/null
+++ b/static/img/avatar.png
Binary files differ
diff --git a/static/img/placeholder.png b/static/img/placeholder.png
new file mode 100644
index 0000000..a3d8535
--- /dev/null
+++ b/static/img/placeholder.png
Binary files differ
diff --git a/static/js/menu.js b/static/js/menu.js
new file mode 100644
index 0000000..16f1d37
--- /dev/null
+++ b/static/js/menu.js
@@ -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));