Compare commits

..

No commits in common. "2e55b8ebbf78004b10eac1add3921af22cc34ebc" and "50e58f16284c9d8e5c160885539dc8bdd518ef4f" have entirely different histories.

View file

@ -13,9 +13,6 @@
body>div { body>div {
padding-bottom: 1em; padding-bottom: 1em;
} }
div#togglebuttons>button {
margin: 0 0.1em;
}
</style> </style>
</head> </head>
@ -110,17 +107,9 @@ div#togglebuttons>button {
table.download("pdf", path.basename(document.getElementById('sel_plan').value, '.yml') + '.pdf', {}, download_range); table.download("pdf", path.basename(document.getElementById('sel_plan').value, '.yml') + '.pdf', {}, download_range);
}); });
//["band", "frequency", "bandwidth", "mode", "description"].forEach((col) => { //["band", "frequency", "bandwidth", "mode", "description"].forEach((col) => {
table.on("tableBuilt", () => { table.getColumns().forEach((col) => {
var div_togglebuttons = document.getElementById("togglebuttons"); document.getElementById("toggle-" + col).addEventListener("click", () => {
div_togglebuttons.innerHTML = "<span>Toggle column:</span>"; table.toggleColumn(col);
table.getColumns().forEach((col) => {
let col_name = col.getField();
let b = document.createElement("button");
b.innerText = col_name;
b.addEventListener("click", () => {
table.toggleColumn(col_name);
});
div_togglebuttons.appendChild(b);
}); });
}); });
document.getElementById("error").innerText = ""; document.getElementById("error").innerText = "";
@ -133,14 +122,20 @@ div#togglebuttons>button {
</script> </script>
<div> <div>
<form name="selection"> <form name="selection">
<label>Plan: <label>plan:
<input name="plan" id="sel_plan" type="text" value="plan-de.yml"> <input name="plan" id="sel_plan" type="text" value="/plan-de.yml">
</label> </label>
<button onclick="update_plan()">Change plan</button> <button onclick="update_plan()">Change plan</button>
<button id="print">Print plan</button> <button id="print">Print plan</button>
</form> </form>
</div> </div>
<div id="togglebuttons"></div> <div>
<button id="toggle-band">Toggle band</button>
<button id="toggle-frequency">Toggle frequency</button>
<button id="toggle-bandwidth">Toggle bandwidth</button>
<button id="toggle-mode">Toggle mode</button>
<button id="toggle-description">Toggle description</button>
</div>
<div> <div>
Use filter with "!" as "not". Use filter with "!" as "not".
</div> </div>