Replace vuejs with alpinejs

This commit is contained in:
Oliver Davies 2020-01-16 08:32:14 +00:00
parent 083637b89f
commit 778111e806
8 changed files with 21 additions and 153 deletions

View file

@ -1,25 +1,8 @@
import 'alpinejs'
import '../css/tailwind.css'
import Vue from 'vue';
window.hljs = require('highlightjs')
new Vue({
el: '#app',
data () {
return {
isOpen: false
}
},
mounted: function () {
this.$el.classList.remove('no-js')
this.$el.classList.add('js')
},
methods: {
toggle () {
this.isOpen = !this.isOpen
}
}
})
let html = document.documentElement
html.classList.remove('no-js')
html.classList.add('js')