MicroFrameWork/resources/default/js/main.js

24 lines
491 B
JavaScript
Raw Normal View History

2024-09-04 14:35:29 +03:00
(function ($) {
2024-09-03 16:29:44 +03:00
2024-09-04 14:35:29 +03:00
"use strict";
2024-09-03 16:29:44 +03:00
2024-09-04 14:35:29 +03:00
var fullHeight = function () {
2024-09-03 16:29:44 +03:00
2024-09-04 14:35:29 +03:00
$('.js-fullheight').css('height', $(window).height());
$(window).resize(function () {
$('.js-fullheight').css('height', $(window).height());
});
2024-09-03 16:29:44 +03:00
2024-09-04 14:35:29 +03:00
};
fullHeight();
2024-09-03 16:29:44 +03:00
2024-09-04 14:35:29 +03:00
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
});
2024-09-03 16:29:44 +03:00
2024-10-11 17:02:35 +03:00
$("#closeAlertBtn").click(function () {
$("#mainAlert").alert("close");
});
2024-09-03 16:29:44 +03:00
})(jQuery);