MCPcopy Create free account
hub / github.com/MathMan05/Fermi / getHTML

Method getHTML

src/webpage/sticker.ts:36–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 this.description = json.description || "";
35 }
36 getHTML(noclick: boolean): HTMLElement {
37 const img = createImg(
38 this.owner.info.cdn + "/stickers/" + this.id + ".webp" + new CDNParams({expectedSize: 160}),
39 undefined,
40 undefined,
41 "sticker",
42 );
43 img.classList.add("sticker");
44 const hover = new Hover(this.name);
45 hover.addEvent(img);
46 img.alt = this.description;
47 if (!noclick) {
48 img.onclick = async (e) => {

Callers 2

updateSearchMethod · 0.45
clickEventMethod · 0.45

Calls 3

addEventMethod · 0.95
createImgFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected