This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/assets/js/app.js

26 lines
351 B
JavaScript

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
}
}
})