modif des notes
This commit is contained in:
@@ -45,6 +45,8 @@ if (debug) console.log('start pagesToDisplay');
|
||||
uiContent.append(pagesToDisplayContainer);
|
||||
|
||||
function displayPagesRange(start, end) {
|
||||
start = parseInt(start);
|
||||
end = parseInt(end);
|
||||
let pages = document.querySelectorAll('.pagedjs_page');
|
||||
|
||||
if (/^\d+$/.test(start) && /^\d+$/.test(end) && start <= pages.length && end <= pages.length && start < end) {
|
||||
|
||||
@@ -8,9 +8,9 @@ if (debug) console.log('start toggleUiWhenPrinting');
|
||||
uiContainer.style.display = "none";
|
||||
});
|
||||
|
||||
window.addEventListener("afterprint", (event) => {
|
||||
uiContainer.style.display = "block";
|
||||
});
|
||||
window.addEventListener("afterprint", (event) => {
|
||||
uiContainer.style.display = "block";
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user