BootstrapAdmin/Bootstrap.Client/wwwroot/js/common-scripts.js

26 lines
706 B
JavaScript
Raw Normal View History

$(function () {
var $sideMenu = $(".sidebar");
$sideMenu.dcAccordion({
autoExpand: true,
saveState: false
});
var $breadNav = $('#breadNav');
var arch = $sideMenu.find('a.active').last();
$breadNav.removeClass('d-none').text(arch.text() || $('title').text());
$('.sidebar-toggle-box').on('click', function (e) {
if ($(window).width() >= 768) {
e.preventDefault();
return false;
}
$('body').toggleClass('sidebar-open');
});
2019-07-19 18:10:58 +08:00
$('.cloud, .bird').css({
"transition": "all linear 3s"
});
$('.cloud').on('mouseenter mouseleave', function () {
$(this).toggleClass('move');
});
});