static/js/Main.js
/**
     * Move carousel to next image.
     *
     * If this image is not yet loaded or failed to load it will try to move ahead to the following image.
     *
     */
Move carousel to next image.
If this image is not yet loaded or failed to load it will try to move ahead to the following image.
Move carousel to next image . If this image is not yet loaded or failed to load it will try to move ahead to the following image .
refreshImage(){
        this.currentIndex = (this.currentIndex + 1) % (this.channels.length);
        console.log("Switching to image " + this.currentIndex);
        let currentView = this.channels[this.currentIndex];
        this.setState(
            Object.assign({}, this.state, {"current" :  currentView})
        );
        this.spinner.reset(this.currentIndex, this.channels.length);
        setTimeout(this.refreshImage.bind(this), DEFAULT_INTERVAL);
    }
refreshImage ( ) { this . currentIndex = ( this . currentIndex + 1 ) % ( this . channels . length ) ; console . log ( "Switching to image " + this . currentIndex ) ; let currentView = this . channels [ this . currentIndex ] ; this . setState ( Object . assign ( { } , this . state , { "current" : currentView } ) ) ; this . spinner . reset ( this . currentIndex , this . channels . length ) ; setTimeout ( this . refreshImage . bind ( this ) , DEFAULT_INTERVAL ) ; }
Move carousel to next image.
Move carousel to next image .