From: Bastien Wirtz Date: Wed, 18 Mar 2020 05:17:07 +0000 (-0700) Subject: Merge pull request #27 from traeblain/feature-burger X-Git-Tag: v1.0~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=2cf93f388130134d8ff9cf1af7535e21cafc207f;hp=-c;p=github%2Fbastienwirtz%2Fhomer.git Merge pull request #27 from traeblain/feature-burger Added Hamburger Menu for small screens per Bulma spec. --- 2cf93f388130134d8ff9cf1af7535e21cafc207f diff --combined app.js index 21bdbb9,a296069..6c83074 --- a/app.js +++ b/app.js @@@ -5,7 -5,8 +5,8 @@@ const app = new Vue( offline: false, filter: '', vlayout: true, - isDark: null + isDark: null, + showMenu: false }, created: async function () { let that = this; @@@ -20,7 -21,6 +21,7 @@@ this.checkOffline(); try { this.config = await this.getConfig(); + document.title = this.config.title + ' | Homer'; } catch (error) { this.offline = true; } @@@ -81,6 -81,9 +82,9 @@@ this.vlayout = !this.vlayout; localStorage.vlayout = this.vlayout; }, + toggleMenu: function() { + this.showMenu = !this.showMenu; + } } });