(elem, link, text, useP)
| 1190 | } |
| 1191 | } |
| 1192 | createLink(elem, link, text, useP) { |
| 1193 | const elm = this.createElement("a"); |
| 1194 | elm.href = link; |
| 1195 | elm.target = "_blank"; |
| 1196 | elm.innerText = this.localization(text); |
| 1197 | if (useP) { |
| 1198 | const p = this.createElement("p"); |
| 1199 | p.appendChild(elm); |
| 1200 | elem.appendChild(p); |
| 1201 | } else { |
| 1202 | elem.appendChild(elm); |
| 1203 | } |
| 1204 | } |
| 1205 | defaultButtonOptions = { |
| 1206 | playPause: { |
| 1207 | visible: true, |
no test coverage detected