Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data: () => ({
- menubar: null,
- burger: null
- }),
- methods: {
- // eslint-disable-next-line
- csjOpenMenuBar () {
- this.menubar = document.getElementById('csj-menubar-container')
- this.burger = document.getElementById('csj-burgerhidden')
- if (!menubar.classList.contains('csj-opened')) {
- this.menubar.classList.add('csj-opened')
- this.burger.style.visibility = 'hidden'
- }
- }
- },
Add Comment
Please, Sign In to add comment