Liebe Besucher:innen, die Website des Ideation & Prototyping Lab der Technologiestiftung wird nicht mehr aktualisiert, bleibt aber zu archivarischen Zwecken online. Unsere neueren Projekte findet ihr auf der Seite des CityLAB Berlin.

Zum CityLAB Berlin
Launch Project

Example HTML Project

in english

One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. “What’s happened to me?” he thought.

addEvents() {
        const { prevButton, nextButton } = this.slider.getInfo();
        prevButton.onclick = () => this.updateIndexCounter();
        nextButton.onclick = () => this.updateIndexCounter();
    }
    createIndexCounter() {
        const {
            controlsContainer,
            slideCount,
            displayIndex
        } = this.slider.getInfo();

        this.divCounter = document.createElement('div');
        this.divCounter.innerHTML = `${displayIndex}/${slideCount}`;
        this.divCounter.setAttribute('class', 'tns-controls-counter');

        controlsContainer.appendChild(this.divCounter);
    }