18 lines
516 B
JavaScript
18 lines
516 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 () {
|
|
let toggleIcon = $('#toggleIcon')
|
|
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')
|
|
})
|
|
})
|