download buttons for yml plans

This commit is contained in:
Wolfgang 2024-05-26 17:05:45 +02:00
parent 41227eb77e
commit 762d5a5114

View file

@ -72,10 +72,13 @@ div>label {
}); });
update_plan(); update_plan();
document.getElementById("base_plan").addEventListener("keydown", (event) => { ["base", "extension"].forEach((id) => {
if (event.key === 'Enter') { create_element_link(document.getElementById("download_" + id), document.getElementById(id + "_plan").value);
update_plan() document.getElementById("download_" + id).addEventListener("keydown", (event) => {
} if (event.key === 'Enter') {
update_plan()
}
});
}); });
create_element_link(document.getElementById("create_link"), function() { create_element_link(document.getElementById("create_link"), function() {
@ -316,6 +319,8 @@ div>label {
<div id="togglebuttons"></div> <div id="togglebuttons"></div>
<div> <div>
<button id="download">Download list</button> <button id="download">Download list</button>
<button id="download_base">Download base plan</button>
<button id="download_extension">Download extension plan</button>
<button id="create_link">Create link</button> <button id="create_link">Create link</button>
<button onclick="help()">Help</button> <button onclick="help()">Help</button>
</div> </div>