2019-03-26 15:57:08 +00:00
|
|
|
import Vue from 'vue'
|
2017-08-06 18:01:22 +00:00
|
|
|
|
2019-04-12 06:37:12 +00:00
|
|
|
window.hljs = require('highlightjs')
|
|
|
|
|
2019-03-26 15:57:08 +00:00
|
|
|
new Vue({
|
2019-09-03 23:35:53 +00:00
|
|
|
el: '#app',
|
2019-07-24 23:54:04 +00:00
|
|
|
|
2019-09-08 20:29:14 +00:00
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
isOpen: false
|
2019-07-24 23:54:04 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2019-09-03 23:35:53 +00:00
|
|
|
mounted: function () {
|
|
|
|
this.$el.classList.remove('no-js')
|
|
|
|
this.$el.classList.add('js')
|
|
|
|
},
|
|
|
|
|
2019-09-08 20:29:14 +00:00
|
|
|
methods: {
|
|
|
|
toggle () {
|
|
|
|
this.isOpen = !this.isOpen
|
2019-07-24 23:54:04 +00:00
|
|
|
}
|
|
|
|
}
|
2018-09-04 23:30:36 +00:00
|
|
|
})
|