MCPcopy Create free account
hub / github.com/MALSync/MALSync / pageRelation

Method pageRelation

src/kitsu/kitsuClass.ts:308–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

initMethod · 0.95

Calls 2

removeMethod · 0.80
fillRelationsMethod · 0.80

Tested by

no test coverage detected