MCPcopy Create free account
hub / github.com/HASwitchPlate/openHASP / loader

Function loader

data/script.js:36–41  ·  view source on GitHub ↗
(e, t, o)

Source from the content-addressed store, hash-verified

34 (e += "</table>"), (document.getElementById("info").innerHTML = e);
35}
36function loader(e, t, o) {
37 window.addEventListener("load", function () {
38 var n = new XMLHttpRequest();
39 n.addEventListener("load", o), n.open(e, t), n.send();
40 });
41}
42function fill() {
43 data = JSON.parse(this.response);
44 for (const form of document.forms) populate(form, data);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected