try new instance format
This commit is contained in:
parent
53631e8723
commit
3a3d405c6d
4
node.js
4
node.js
@ -34,7 +34,7 @@ class Node extends HTMLElement {
|
|||||||
let qemuDiv = document.createElement("div");
|
let qemuDiv = document.createElement("div");
|
||||||
for (let i = 0; i < qemu.length; i++) {
|
for (let i = 0; i < qemu.length; i++) {
|
||||||
let instanceParagraph = document.createElement("p");
|
let instanceParagraph = document.createElement("p");
|
||||||
instanceParagraph.innerText = `${qemu[i].vmid}: ${qemu[i].name}`;
|
instanceParagraph.innerText = `VM | ${qemu[i].vmid} | ${qemu[i].name}`;
|
||||||
qemuDiv.append(instanceParagraph);
|
qemuDiv.append(instanceParagraph);
|
||||||
}
|
}
|
||||||
articleElement.append(qemuDiv);
|
articleElement.append(qemuDiv);
|
||||||
@ -46,7 +46,7 @@ class Node extends HTMLElement {
|
|||||||
let lxcDiv = document.createElement("div");
|
let lxcDiv = document.createElement("div");
|
||||||
for (let i = 0; i < lxc.length; i++) {
|
for (let i = 0; i < lxc.length; i++) {
|
||||||
let instanceParagraph = document.createElement("p");
|
let instanceParagraph = document.createElement("p");
|
||||||
instanceParagraph.innerText = `${lxc[i].vmid}: ${lxc[i].name}`;
|
instanceParagraph.innerText = `CT | ${lxc[i].vmid} | ${lxc[i].name}`;
|
||||||
lxcDiv.append(instanceParagraph);
|
lxcDiv.append(instanceParagraph);
|
||||||
}
|
}
|
||||||
articleElement.append(lxcDiv);
|
articleElement.append(lxcDiv);
|
||||||
|
Loading…
Reference in New Issue
Block a user