src/js/Hero.js
/**
     * Handles the 'ready' event
     */
Handles the 'ready' event
Handles the ' ready ' event
onReady() {
        this._element = document.querySelector(Selector.HERO)
        this._video = this._element.querySelector(Selector.VIDEO)
        this._videoPlayer = this._video.querySelector(Selector.VIDEO_PLAYER)
        this._videoHeadline = this._video.querySelector(Selector.VIDEO_HEADLINE)
        this._curtain = this._element.querySelector(Selector.CURTAIN)
        this._contentSide = this._element.querySelector(Selector.CONTENT_SIDE)
        this._contentMain = this._element.querySelector(Selector.CONTENT_MAIN)
        this._contentImageMask = this._element.querySelector(Selector.CONTENT_IMAGE_MASK)
        this._contentText = this._element.querySelector(Selector.CONTENT_TEXT)
        this.showCurtain()
    }
onReady ( ) { this . _element = document . querySelector ( Selector . HERO ) this . _video = this . _element . querySelector ( Selector . VIDEO ) this . _videoPlayer = this . _video . querySelector ( Selector . VIDEO_PLAYER ) this . _videoHeadline = this . _video . querySelector ( Selector . VIDEO_HEADLINE ) this . _curtain = this . _element . querySelector ( Selector . CURTAIN ) this . _contentSide = this . _element . querySelector ( Selector . CONTENT_SIDE ) this . _contentMain = this . _element . querySelector ( Selector . CONTENT_MAIN ) this . _contentImageMask = this . _element . querySelector ( Selector . CONTENT_IMAGE_MASK ) this . _contentText = this . _element . querySelector ( Selector . CONTENT_TEXT ) this . showCurtain ( ) }
Handles the 'ready' event
Handles the ' ready ' event