commit message
This commit is contained in:
3222
dist/js/jquery-3.5.1.min.js
vendored
Normal file
3222
dist/js/jquery-3.5.1.min.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
22
dist/js/scripts.js
vendored
Normal file
22
dist/js/scripts.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/*!
|
||||
* Start Bootstrap - SB Admin v6.0.2 (https://startbootstrap.com/template/sb-admin)
|
||||
* Copyright 2013-2020 Start Bootstrap
|
||||
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-sb-admin/blob/master/LICENSE)
|
||||
*/
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
// Add active state to sidbar nav links
|
||||
var path = window.location.href; // because the 'href' property of the DOM element is the absolute path
|
||||
$("#layoutSidenav_nav .sb-sidenav a.nav-link").each(function() {
|
||||
if (this.href === path) {
|
||||
$(this).addClass("active");
|
||||
}
|
||||
});
|
||||
|
||||
// Toggle the side navigation
|
||||
$("#sidebarToggle").on("click", function(e) {
|
||||
e.preventDefault();
|
||||
$("body").toggleClass("sb-sidenav-toggled");
|
||||
});
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user