mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
23 lines
537 B
JavaScript
23 lines
537 B
JavaScript
const anchorJS = require('anchor-js')
|
|
const Prism = require('./prism')
|
|
|
|
window.anchors = new anchorJS()
|
|
window.Vue = require('vue')
|
|
|
|
Vue.component('responsive-code-sample', require('./components/ResponsiveCodeSample.vue'))
|
|
|
|
const app = new Vue({
|
|
el: '#app'
|
|
})
|
|
|
|
Prism.highlightAll()
|
|
anchors.options = { placement: 'left', class: 'text-slate-light' }
|
|
anchors.add()
|
|
|
|
// Add shortcut to search input when pressing the "/" key
|
|
document.onkeyup = function (e) {
|
|
if (e.which == 191) {
|
|
document.getElementById('docsearch').focus()
|
|
}
|
|
}
|