()
| 306 | } |
| 307 | |
| 308 | async pageRelation() { |
| 309 | $('.malsync-rel-link').remove(); |
| 310 | await this.page.malObj.fillRelations(); |
| 311 | $('.media-summary h5') |
| 312 | .first() |
| 313 | .append( |
| 314 | j.html( |
| 315 | '<div class="malsync-rel-link" style="display: inline-block; margin: 0 5px; vertical-align: bottom; user-select: none;"></div>', |
| 316 | ), |
| 317 | ); |
| 318 | |
| 319 | this.page.malObj.getPageRelations().forEach(page => { |
| 320 | $('.malsync-rel-link').append( |
| 321 | j.html(` |
| 322 | <a href="${page.link}" target="_blank" title="${page.name}" class="link"> |
| 323 | <img src="${page.icon}" width="16" height="16"> |
| 324 | </a> |
| 325 | |
| 326 | `), |
| 327 | ); |
| 328 | }); |
| 329 | } |
| 330 | |
| 331 | private tempAnimelist: any = null; |
| 332 |
no test coverage detected