diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-03-17 22:17:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 22:17:07 -0700 |
commit | 2cf93f388130134d8ff9cf1af7535e21cafc207f (patch) | |
tree | 1542cb9b40b0cae474528d3e4ef7cd2274c8a6e2 /app.js | |
parent | b4de52de8977f21fef7468c1a9c706b33c1b2dd5 (diff) | |
parent | 7cc525b2a65ce07a340562864682e663ab46bb84 (diff) | |
download | homer-2cf93f388130134d8ff9cf1af7535e21cafc207f.tar.gz homer-2cf93f388130134d8ff9cf1af7535e21cafc207f.tar.zst homer-2cf93f388130134d8ff9cf1af7535e21cafc207f.zip |
Merge pull request #27 from traeblain/feature-burger
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; |
@@ -81,6 +82,9 @@ const app = new Vue({ | |||
81 | this.vlayout = !this.vlayout; | 82 | this.vlayout = !this.vlayout; |
82 | localStorage.vlayout = this.vlayout; | 83 | localStorage.vlayout = this.vlayout; |
83 | }, | 84 | }, |
85 | toggleMenu: function() { | ||
86 | this.showMenu = !this.showMenu; | ||
87 | } | ||
84 | } | 88 | } |
85 | }); | 89 | }); |
86 | 90 | ||