(() => {
function initPauseButton() {
const pauseButton = document.getElementById('pauseCarouselButton');
if (!pauseButton || pauseButton.dataset.pauseReady === 'true') {
return;
}
pauseButton.dataset.pauseReady = 'true';
let isPaused = false;
let carouselSwiper = null;
let player = null;
let attempts = 0;
function findElements() {
const swiperElement = document.querySelector(
'.elementor-slides-wrapper.elementor-main-swiper'
);
if (swiperElement && swiperElement.swiper) {
carouselSwiper = swiperElement.swiper;
}
const iframe = document.querySelector(
'.elementor-background-video-container iframe[src*="vimeo"]'
);
if (!player && iframe && window.Vimeo?.Player) {
try {
player = new window.Vimeo.Player(iframe);
} catch (error) {
console.warn('Vimeo-Player konnte nicht initialisiert werden.', error);
}
}
}
findElements();
const checkElements = setInterval(() => {
findElements();
attempts += 1;
if ((carouselSwiper && player) || attempts >= 50) {
clearInterval(checkElements);
}
}, 200);
pauseButton.addEventListener('click', () => {
findElements();
if (!carouselSwiper && !player) {
return;
}
const icon = pauseButton.querySelector('.svg-icon');
if (isPaused) {
carouselSwiper?.autoplay?.start?.();
if (player) {
player.play().catch(() => {});
}
if (icon) {
icon.innerHTML =
'';
}
pauseButton.setAttribute(
'aria-label',
'Karussell und Video pausieren'
);
pauseButton.setAttribute('aria-pressed', 'false');
isPaused = false;
} else {
carouselSwiper?.autoplay?.stop?.();
if (player) {
player.pause().catch(() => {});
}
if (icon) {
icon.innerHTML =
'';
}
pauseButton.setAttribute(
'aria-label',
'Karussell und Video fortsetzen'
);
pauseButton.setAttribute('aria-pressed', 'true');
isPaused = true;
}
});
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', initPauseButton);
} else {
initPauseButton();
}
})();
Unsere KINOKONI Standorte in Basel, Olten und Zürich
Jeder KINOKONI Standort ist eigenständig – und doch Teil derselben Idee. In Zürich, Basel und Olten bieten wir modernes Kino mit Komfort, Qualität und persönlichem Service.
KINOKONI Basel
Boutique-Kino im Herzen der Stadt – komfortabel, stilvoll und mit Service am Platz.
KINOKONI Olten
Persönliches Boutique-Kino im Stadtzentrum – hochwertig, nahbar und unkompliziert.
KINOKONI Zürich
Modernes Kino an der Europaallee – zentral, vielfältig und urban.
CAPITOL Olten by KINOKONI
Erlebe echtes Kinopalast-Feeling im Capitol Olten.
Das Capitol Olten by KINOKONI ist zurück und zeigt wieder Filme.