1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

new chat window, bugfixes, component update

This commit is contained in:
Marek Farkaš
2025-04-22 21:23:11 +02:00
parent 79e4205612
commit 008441f93a
19 changed files with 286 additions and 150 deletions

View File

@@ -2,7 +2,6 @@ $(document).ready(function() {
// Cache jQuery objects for reuse
var modal = $("#myModal");
var modalPanel = $(".modal-panel");
var chatPanel = $(".modal-panel-chat");
var openBtn = $("#settings");
var closeBtn = $(".closeModal, .closeModalButton");
@@ -20,7 +19,6 @@ $(document).ready(function() {
modal.css("opacity", 0);
setTimeout(function() {
modal.css("display", "none");
modalPanel.add(chatPanel).css("display", "none");
$("body").removeClass("modal-open"); // Enable body scrolling
}, 300);
}
@@ -30,10 +28,6 @@ $(document).ready(function() {
openModal(modalPanel);
});
$(".chatbutton").on("click", function() {
openModal(chatPanel);
});
closeBtn.on("click", closeModal);
// Close the modal when clicking outside of it