theme dependences
This commit is contained in:
30
resources/themes/custom/js/main.js
Normal file
30
resources/themes/custom/js/main.js
Normal file
@ -0,0 +1,30 @@
|
||||
(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;")
|
||||
}
|
Reference in New Issue
Block a user