30 lines
692 B
JavaScript
30 lines
692 B
JavaScript
(function ($) {
|
|
|
|
"use strict";
|
|
|
|
var fullHeight = function () {
|
|
|
|
$('.js-fullheight').css('height', $(window).height());
|
|
$(window).resize(function () {
|
|
$('.js-fullheight').css('height', $(window).height());
|
|
});
|
|
|
|
};
|
|
fullHeight();
|
|
|
|
$('#sidebarCollapse').on('click', function () {
|
|
$('#sidebar').toggleClass('active');
|
|
});
|
|
|
|
})(jQuery);
|
|
|
|
window.addEventListener("load", function () {
|
|
let closeBtn = document.querySelectorAll(".closeAlertBtn");
|
|
closeBtn.forEach((item) => {
|
|
item.addEventListener("click", closeAlert);
|
|
});
|
|
});
|
|
|
|
function closeAlert() {
|
|
this.parentNode.setAttribute("style", "display: none;")
|
|
} |