Loading...
Skip navigation
Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.

JavaScript Lightbox modifications

Open Lightbox content with another Lightbox library

In order to open the door content in another Lightbox, just override the displayContent JavaScript method:

adventskalender.displayContent = function (content) {
    jQuery.fancybox.open(content, {
        animationEffect: "zoom-in-out",
        clickSlide: false,
        clickOutside: false,
        helpers : {
            overlay : {
                closeClick: false
            }
        },
        touch: false
    });
    adventskalender.bindSubmitEvents();
    return this;
};

Perform an action after Lightbox closing

Um nach dem schließen der Lightbox eine Aktion durchzuführen, könnten Sie die Initialisierung der Lightbox wie folgt anpassen: In order to perform an action after the Lightbox is closed, you can adjust the initialization of the Lightbox like:

adventskalender.displayContent = function (content) {
    jQuery.fancybox.open(content, {
        animationEffect: "zoom-in-out",
        clickSlide: false,
        clickOutside: false,
        helpers : {
            overlay : {
                closeClick: false
            }
        },
        touch: false,
        onClosed: function() {
            alert('onClosed');
        },
        afterClose: function() {
            alert('afterClose');
        }
    });
    adventskalender.bindSubmitEvents();
    return this;
};

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
7F7_________IF6______
P______7____E_Q___EW8
241___JUF___H1I______
__H____5____8_4___PJT
I2W_________A1X______