Nearly finished the Excel Password Remover revamp, Only the download is missing

Update commons.yml, excel-password-remover.yml, and 14 more files...
This commit is contained in:
2025-03-01 18:27:13 +01:00
parent 0a02a1e56d
commit b2064cbbaf
16 changed files with 465 additions and 115 deletions

View File

@@ -5,7 +5,7 @@
/**
* @param eTemplate {HTMLTemplateElement | string} The template to be cloned, or its ID.
* @param subParts {Object.<string, Node | string | number | boolean>}
* @param ignoreMissingParts {bool}
* @param ignoreMissingParts {boolean}
* @returns {Promise<DocumentFragment>}
*/
export function cloneTemplate(eTemplate,
@@ -34,14 +34,22 @@ export function cloneTemplate(eTemplate,
reject(`Unable to find sub-element with id '${key}' !`);
}
ePart.removeAttribute('id');
if(value instanceof Node) {
ePart.innerHTML = "";
ePart.appendChild(value);
} else {
ePart.innerHTML += value;
ePart.innerHTML = value;
}
}
}
const childElements = eClone.querySelectorAll('*');
childElements.forEach(eChild => {
eChild.removeAttribute('id');
});
resolve(eClone);
}
});

View File

@@ -1,6 +1,7 @@
// NibblePoker - UI Scripts
// NibblePoker - Mandatory Scripts
// Author: Herwin Bozet (@NibblePoker)
// License: Public Domain (This code)
// Remark: This modules contains all the scripts that are globally required on this website
export const animationStepCount = 10;