summaryrefslogtreecommitdiff
path: root/themes/new_theme/static
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-06-05 16:57:53 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-06-05 16:57:53 +0200
commit983b64ca51f5e769f790a5ebc55e3808157b8d94 (patch)
tree4fb52d8e2f449e44a51ed0549cec9debbcd3d157 /themes/new_theme/static
parentff7e6bde0be9ac60e694097ce3598f9b552c4807 (diff)
downloadwww-andreasbaumann-cc-983b64ca51f5e769f790a5ebc55e3808157b8d94.tar.gz
www-andreasbaumann-cc-983b64ca51f5e769f790a5ebc55e3808157b8d94.tar.bz2
updated to newest theme supporting newer hugo versions
Diffstat (limited to 'themes/new_theme/static')
-rw-r--r--themes/new_theme/static/apple-touch-icon.pngbin0 -> 111 bytes
-rw-r--r--themes/new_theme/static/favicon.icobin0 -> 1350 bytes
-rw-r--r--themes/new_theme/static/img/avatar.pngbin0 -> 1139 bytes
-rw-r--r--themes/new_theme/static/img/placeholder.pngbin0 -> 4711 bytes
-rw-r--r--themes/new_theme/static/js/menu.js25
5 files changed, 25 insertions, 0 deletions
diff --git a/themes/new_theme/static/apple-touch-icon.png b/themes/new_theme/static/apple-touch-icon.png
new file mode 100644
index 0000000..441def4
--- /dev/null
+++ b/themes/new_theme/static/apple-touch-icon.png
Binary files differ
diff --git a/themes/new_theme/static/favicon.ico b/themes/new_theme/static/favicon.ico
new file mode 100644
index 0000000..b7a49cc
--- /dev/null
+++ b/themes/new_theme/static/favicon.ico
Binary files differ
diff --git a/themes/new_theme/static/img/avatar.png b/themes/new_theme/static/img/avatar.png
new file mode 100644
index 0000000..8afac66
--- /dev/null
+++ b/themes/new_theme/static/img/avatar.png
Binary files differ
diff --git a/themes/new_theme/static/img/placeholder.png b/themes/new_theme/static/img/placeholder.png
new file mode 100644
index 0000000..a3d8535
--- /dev/null
+++ b/themes/new_theme/static/img/placeholder.png
Binary files differ
diff --git a/themes/new_theme/static/js/menu.js b/themes/new_theme/static/js/menu.js
new file mode 100644
index 0000000..16f1d37
--- /dev/null
+++ b/themes/new_theme/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));