diff options
author | Trae <trae@traeblain.com> | 2020-03-13 21:09:20 -0500 |
---|---|---|
committer | Trae <trae@traeblain.com> | 2020-03-13 21:09:20 -0500 |
commit | 7cc525b2a65ce07a340562864682e663ab46bb84 (patch) | |
tree | 29d965bad36a245a40417e60755c1c8853b30e39 /app.js | |
parent | 46fd4f4da18ed505264181cfa8f6a776abef9e2f (diff) | |
download | homer-7cc525b2a65ce07a340562864682e663ab46bb84.tar.gz homer-7cc525b2a65ce07a340562864682e663ab46bb84.tar.zst homer-7cc525b2a65ce07a340562864682e663ab46bb84.zip |
Added Hamburger Menu for small screens per Bulma spec.
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -5,7 +5,8 @@ const app = new Vue({ | |||
5 | offline: false, | 5 | offline: false, |
6 | filter: '', | 6 | filter: '', |
7 | vlayout: true, | 7 | vlayout: true, |
8 | isDark: null | 8 | isDark: null, |
9 | showMenu: false | ||
9 | }, | 10 | }, |
10 | created: async function () { | 11 | created: async function () { |
11 | let that = this; | 12 | let that = this; |
@@ -80,6 +81,9 @@ const app = new Vue({ | |||
80 | this.vlayout = !this.vlayout; | 81 | this.vlayout = !this.vlayout; |
81 | localStorage.vlayout = this.vlayout; | 82 | localStorage.vlayout = this.vlayout; |
82 | }, | 83 | }, |
84 | toggleMenu: function() { | ||
85 | this.showMenu = !this.showMenu; | ||
86 | } | ||
83 | } | 87 | } |
84 | }); | 88 | }); |
85 | 89 | ||