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-16 17:54:33 +03:00
|
|
|
// $(".closeAlertBtn").click(function () {
|
|
|
|
// console.log($(this).parentNode)
|
|
|
|
// $(this).parentElement.alert("close");
|
|
|
|
// });
|
2024-10-11 17:02:35 +03:00
|
|
|
|
2024-09-03 16:29:44 +03:00
|
|
|
})(jQuery);
|
2024-10-16 17:54:33 +03:00
|
|
|
|
|
|
|
window.addEventListener("load", function () {
|
|
|
|
let closeBtn = document.querySelectorAll(".closeAlertBtn");
|
|
|
|
closeBtn.forEach((item) => {
|
|
|
|
item.addEventListener("click", closeAlert);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
function closeAlert() {
|
|
|
|
this.parentNode.setAttribute("style", "display: none;")
|
|
|
|
}
|