()
| 84 | /* Private Methods |
| 85 | ================================================== */ |
| 86 | _initLayout() { |
| 87 | |
| 88 | // Create Layout |
| 89 | this._el.content_container = DOM.create("div", "tl-text-content-container", this._el.container); |
| 90 | this._el.headline_container = DOM.create("div", "tl-text-headline-container", this._el.content_container); |
| 91 | |
| 92 | // Headline |
| 93 | if (this.data.headline != "") { |
| 94 | var headline_class = "tl-headline"; |
| 95 | if (this.options.title) { |
| 96 | headline_class = "tl-headline tl-headline-title"; |
| 97 | } |
| 98 | this._el.headline = DOM.create("h2", headline_class, this._el.headline_container); |
| 99 | this._el.headline.innerHTML = this.data.headline; |
| 100 | } |
| 101 | |
| 102 | // Date |
| 103 | this._el.date = DOM.create("h3", "tl-headline-date", this._el.headline_container); |
| 104 | |
| 105 | // Text |
| 106 | if (this.data.text != "") { |
| 107 | var text_content = ""; |
| 108 | text_content += htmlify(this.options.autolink == true ? linkify(this.data.text) : this.data.text); |
| 109 | this._el.content = DOM.create("div", "tl-text-content", this._el.content_container); |
| 110 | this._el.content.innerHTML = text_content; |
| 111 | } |
| 112 | |
| 113 | // Fire event that the slide is loaded |
| 114 | this.onLoaded(); |
| 115 | |
| 116 | } |
| 117 | |
| 118 | } |
| 119 |
no test coverage detected