]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Merge pull request #27 from traeblain/feature-burger
authorBastien Wirtz <bastien.wirtz@gmail.com>
Wed, 18 Mar 2020 05:17:07 +0000 (22:17 -0700)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2020 05:17:07 +0000 (22:17 -0700)
Added Hamburger Menu for small screens per Bulma spec.

1  2 
app.js

diff --combined app.js
index 21bdbb995f47392582a9849f83d55c51cffbaa30,a2960690a88072846cde77e93179307251c5f0ee..6c8307436749b5a33e039aafefc5aaed994b6805
--- 1/app.js
--- 2/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;
+         }
      }
  });