Spookie/assets/js/index.js

18 lines
487 B
JavaScript

// assets/js/index.js
import '../styles/app.scss'
import 'fork-awesome/scss/fork-awesome.scss'
require('bootstrap')
import 'bootswatch/dist/slate/bootstrap.min.css'
$(document).ready(function () {
console.log('ready')
$('#toggleSidebar').on('click', function () {
$('#toggleIcon').toggleClass('fa fa-lg fa-fw fa-caret-square-o-left')
$('#toggleIcon').toggleClass('fa fa-lg fa-fw fa-caret-square-o-right')
$('#sidebar').toggleClass('active')
})
})