add comments in yml files
This commit is contained in:
parent
11ad090132
commit
c3a60e6024
|
@ -5,6 +5,8 @@
|
|||
power_e: Power E,
|
||||
power_n: Power N
|
||||
}
|
||||
comments:
|
||||
- Status: "P: Primär dem Amateurfunk zugewiesen, P+: Primär (weitgehend exklusiv) dem Amateurfunk zugewiesen, S: Sekundär dem Amateurfunk zugewiesen"
|
||||
- frequency: 135.7-137.8
|
||||
power: {a: 1 W ERP}
|
||||
- frequency: 472-479
|
||||
|
|
|
@ -134,6 +134,20 @@ div>label {
|
|||
});
|
||||
}
|
||||
|
||||
function fill_comments(header) {
|
||||
for (const [key, value] of Object.entries(header)) {
|
||||
if (typeof value.comments !== "undefined") {
|
||||
let s = "";
|
||||
value.comments.forEach((comment) => {
|
||||
for (const [ckey, cvalue] of Object.entries(comment)) {
|
||||
s += ckey + ": " + cvalue + "<br>";
|
||||
}
|
||||
});
|
||||
document.getElementById("comments_" + key).innerHTML = s;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function update_table(bases, extensions) {
|
||||
let tdata = [];
|
||||
let header = {};
|
||||
|
@ -157,6 +171,8 @@ div>label {
|
|||
}
|
||||
});
|
||||
|
||||
fill_comments(header);
|
||||
|
||||
// then fill tdata
|
||||
let already_added = false;
|
||||
extensions.forEach((ext) => {
|
||||
|
@ -331,6 +347,8 @@ div>label {
|
|||
</div>
|
||||
<div id="data-table"></div>
|
||||
<div id="error"></div>
|
||||
<div id="comments_base"></div>
|
||||
<div id="comments_extension"></div>
|
||||
<div>
|
||||
<p>This information is supplied without liability.</p>
|
||||
<p>Source is at <a href="https://src.dm5wk.de/dm5wk/band-plan-web/">https://src.dm5wk.de/dm5wk/band-plan-web/</a></p>
|
||||
|
|
Loading…
Reference in a new issue