Login password min length, boolean default set if empty

Also remove all inserts from the table declaration and add them in a
separate file instead

Add add/remove css to element for the element js declarations
This commit is contained in:
Clemens Schwaighofer
2018-07-04 18:58:07 +09:00
parent e3d1679f86
commit bddc196e25
32 changed files with 99 additions and 159 deletions

View File

@@ -263,6 +263,30 @@ function ael(base, attach, id = '')
// DESC : resets the sub elements of the base element given
const rel = (base) => base.sub = [];
// METHOD: rcssel [remove a css from the element]
// PARAMS: element, style sheet to remove
// RETURN: "none", in place because of reference
// DESC : searches and removes style from css array
function rcssel(element, css)
{
let css_index = element.css.indexOf(css);
if (css_index > -1) {
element.css.splice(css_index, 1);
}
}
// METHOD acssel [add css element]
// PARAMS: element, style sheet to add
// RETURN: "none", in place add because of reference
// DESC : adds a new style sheet to the element given
function acssel(element, css)
{
let css_index = element.css.indexOf(css);
if (css_index > -1) {
element.css.push(css);
}
}
// METHOD: phfo [produce html from object]
// PARAMS: object tree with dom element declarations
// RETURN: HTML string that can be used as innerHTML