mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 03:11:37 +02:00
button close
This commit is contained in:
parent
bf21bc2d48
commit
d9d0e78dc5
1 changed files with 13 additions and 3 deletions
|
@ -420,16 +420,26 @@ function prepareSettingsForExport() {
|
|||
exportSettings[key] = settings[key];
|
||||
});
|
||||
|
||||
return JSON.stringify(exportSettings);
|
||||
return JSON.stringify(exportSettings, null, 4);
|
||||
}
|
||||
|
||||
function showPreselectedPrompt() {
|
||||
var elem = document.getElementById("exported-props");
|
||||
var exportSettings = prepareSettingsForExport();
|
||||
elem.innerHTML = "";
|
||||
var buttonnode= document.createElement('input');
|
||||
buttonnode.setAttribute('type','button');
|
||||
buttonnode.setAttribute('value','close');
|
||||
elem.appendChild(document.createTextNode("COPY THE BELOW TO CLIPBOARD:"));
|
||||
elem.appendChild(document.createElement("br"));
|
||||
elem.appendChild(document.createTextNode(exportSettings));
|
||||
elem.select();
|
||||
document.execCopy('copy');
|
||||
elem.appendChild(document.createElement("br"));
|
||||
elem.appendChild(buttonnode);
|
||||
|
||||
buttonnode.onclick = function() {
|
||||
console.log("click")
|
||||
elem.innerHTML = "";
|
||||
}
|
||||
|
||||
//window.alert("Ctrl-C to copy, then Enter.", prepareSettingsForExport());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue