Parse EGF and FFG ratings

This commit is contained in:
Claude Brisson
2023-12-04 21:12:54 +01:00
parent 8510bb69ec
commit 519eca8af3
12 changed files with 274 additions and 53 deletions

View File

@@ -84,8 +84,8 @@ function exportCSV(filename, content) {
document.body.removeChild(link);
}
/* modals */
/* modals
NOT IN USE, see popup-related code.
NodeList.prototype.modal = function(show) {
this.item(0).modal(show);
return this;
@@ -101,11 +101,12 @@ Element.prototype.modal = function(show) {
}
return this;
}
*/
/* DOM helpers */
function formValue(name) {
let ctl = $(`[name="${name}"]`)[0];
HTMLFormElement.prototype.val = function(name) {
let ctl = this.find(`[name="${name}"]`)[0];
if (!ctl) {
console.error(`unknown input name: ${name}`)
}
@@ -124,7 +125,7 @@ function formValue(name) {
}
console.error(`unhandled input tag or type for input ${name} (tag: ${tag}, type:${type}`);
return null;
}
};
function msg(id) {
let ctl = $(`#${id}`)[0];