MCPcopy Index your code
hub / github.com/EmulatorJS/EmulatorJS / createLink

Method createLink

data/src/emulator.js:1192–1204  ·  view source on GitHub ↗
(elem, link, text, useP)

Source from the content-addressed store, hash-verified

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,

Callers 1

createContextMenuMethod · 0.95

Calls 2

createElementMethod · 0.95
localizationMethod · 0.95

Tested by

no test coverage detected