blob: f7d2cca26e49de58e7bce4affb831117504b4c6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//https://stackoverflow.com/questions/10309650/add-elements-to-the-dom-given-plain-text-html-using-only-pure-javascript-no-jqu
//lets me add elements without fucking up listeners
function appendHtml(el, str) {
var div = document.createElement('div');
div.innerHTML = str;
while (div.children.length > 0) {
el.appendChild(div.children[0]);
}
}
const rem_emp = function (e) {return e !== "";};
|