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:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user