Skip to content

Commit

Permalink
Variable not used
Browse files Browse the repository at this point in the history
  • Loading branch information
wincelau committed Oct 4, 2024
1 parent d23e0eb commit 7c62cd5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions public/js/organization.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
let windowWidth = window.innerWidth;
let menu = null;
let menuOffcanvas = null;

function responsiveDisplay() {
let menu = document.getElementById('sidebarTools');
let menuOffcanvas = new bootstrap.Offcanvas(menu);
if(is_mobile()) {
document.getElementById('page-organization').classList.remove('decalage-pdf-div');
menu.classList.remove('show');
Expand Down Expand Up @@ -738,16 +736,14 @@ async function pageUpload() {
document.getElementById('input_pdf_upload').focus();
document.getElementById('input_pdf_upload').addEventListener('change', async function(event) {
uploadAndLoadPDF(this);
pageOrganization(null);
pageOrganization();
});
}

async function pageOrganization() {
document.querySelector('body').classList.add('bg-light');
document.getElementById('page-upload').classList.add('d-none');
document.getElementById('page-organization').classList.remove('d-none');
menu = document.getElementById('sidebarTools');
menuOffcanvas = new bootstrap.Offcanvas(menu);
responsiveDisplay();
createEventsListener();
};
Expand Down

0 comments on commit 7c62cd5

Please sign in to comment.