diff --git a/web/_js/main.js b/web/_js/main.js index 14d5474d..2ae769e1 100644 --- a/web/_js/main.js +++ b/web/_js/main.js @@ -195,7 +195,7 @@ async function init() { document.getElementById("loading").classList.add("d-none") - document.getElementById("zoomInButton").addEventListener("click", function (e) { + document.getElementById("zoomInButton").addEventListener("click", function () { /*if(zoomAnimationFrame){ window.cancelAnimationFrame(zoomAnimationFrame) @@ -219,7 +219,7 @@ async function init() { }) - document.getElementById("zoomOutButton").addEventListener("click", function (e) { + document.getElementById("zoomOutButton").addEventListener("click", function () { /*if(zoomAnimationFrame){ window.cancelAnimationFrame(zoomAnimationFrame) @@ -242,7 +242,7 @@ async function init() { applyZoom(x, y, zoom) }) - document.getElementById("zoomResetButton").addEventListener("click", function (e) { + document.getElementById("zoomResetButton").addEventListener("click", function () { zoom = 1 zoomOrigin = [0, 0] scaleZoomOrigin = [0, 0] diff --git a/web/_js/view.js b/web/_js/view.js index 9f64cc00..2e88e54c 100644 --- a/web/_js/view.js +++ b/web/_js/view.js @@ -114,13 +114,13 @@ offcanvasDraw.addEventListener('hidden.bs.offcanvas', function () { applyView() }) -offcanvasList.addEventListener('show.bs.offcanvas', function (e) { +offcanvasList.addEventListener('show.bs.offcanvas', function () { wrapper.classList.remove('listHidden') wrapper.classList.add('listTransitioning') applyView() }) -offcanvasList.addEventListener('shown.bs.offcanvas', function (e) { +offcanvasList.addEventListener('shown.bs.offcanvas', function () { entriesListShown = true wrapper.classList.remove('listTransitioning') updateHovering(e) @@ -458,7 +458,7 @@ function buildObjectsList(filter = null, sort = null) { element.entry = sortedAtlas[i] - element.addEventListener("mouseenter", function (e) { + element.addEventListener("mouseenter", function () { if (!fixed && !dragging) { objectsContainer.replaceChildren() @@ -840,7 +840,7 @@ function initView() { renderBackground(atlas) render() - document.addEventListener('timeupdate', (event) => { + document.addEventListener('timeupdate', () => { sortedAtlas = atlas.concat() resetEntriesList(null, null) })