simplify application and remove window references
Sonarqube Scanner / Build and analyze (push) Failing after 1m27s

This commit is contained in:
Florian Zumpe
2026-06-17 16:08:01 +02:00
parent 6a4d84ac6a
commit 32f161483d
20 changed files with 560 additions and 282 deletions
+2 -3
View File
@@ -9,7 +9,7 @@
$(document)
.on('pointerup', selector, function (event) {
const pointer = event.originalEvent;
if (pointer && pointer.isPrimary === false) return;
if (pointer?.isPrimary === false) return;
if (pointer?.pointerType === 'mouse' && pointer.button !== 0) return;
event.preventDefault();
handler.call(this, event);
@@ -29,7 +29,6 @@
function render() {
const hasImages = images.length > 0;
$('#slideshow').toggle(hasImages);
$('#slide-controls').attr('data-image-count', images.length);
if (!hasImages) return;
const image = images[index];
@@ -86,4 +85,4 @@
if (deltaX < 0) ns.Slideshow.next();
else ns.Slideshow.previous();
});
}(window.Wegwichtel, window.jQuery));
}(globalThis.Wegwichtel, globalThis.jQuery));