clean up button creation code
This commit is contained in:
parent
0044ee427b
commit
ef604302a4
|
@ -70,16 +70,13 @@
|
||||||
loadContainer.appendChild(loadButton);
|
loadContainer.appendChild(loadButton);
|
||||||
const buttonContainer2 = document.createElement("span");
|
const buttonContainer2 = document.createElement("span");
|
||||||
buttonContainer2.style = "display: inline-block; position: relative; font-size: 90%;";
|
buttonContainer2.style = "display: inline-block; position: relative; font-size: 90%;";
|
||||||
|
const loadURLButton = document.createElement("div");
|
||||||
buttonContainer.appendChild(saveButton);
|
buttonContainer.appendChild(saveButton);
|
||||||
buttonContainer2.appendChild(loadContainer);
|
buttonContainer2.appendChild(loadContainer);
|
||||||
document.getElementById("dcg-header-container").querySelector(".align-right-container").appendChild(buttonContainer).appendChild(buttonContainer2);
|
buttonContainer.appendChild(buttonContainer2);
|
||||||
|
document.getElementById("dcg-header-container").querySelector(".align-right-container").appendChild(buttonContainer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// creates a script in the document to interact with the page variables.
|
// creates a script in the document to interact with the page variables.
|
||||||
// the IMPORTEXPRESSION div is used as an interface to carry the data from this script to the injected script
|
// the IMPORTEXPRESSION div is used as an interface to carry the data from this script to the injected script
|
||||||
function loadExpr(json) {
|
function loadExpr(json) {
|
||||||
|
|
Loading…
Reference in a new issue