CSS
- 21 ответ
- 0 вопросов
18
Вклад в тег
if (activeNote) {
const node = document.querySelector(`#${activeNote}`);
node.children[0].innerHTML = title;
node.children[1].innerHTML = created.toLocaleString('en-US');
node.children[2].innerHTML = body;
node.style.backgroundColor = color;
activeNote = null;
}
const node = document.querySelector('#listed');
node.appendChild(document.createTextNode(`${title} ${created.toLocaleString('en-US')} ${body} `));
if (activeNote) {
const node = document.querySelector(`#${activeNote}`);
node.parentNode.removeChild(node);
activeNote = null;
}
const nodes = document.querySelector(`#${id}`);
const titleSel = nodes.children[0].innerHTML;
const bodySel = nodes.children[2].innerHTML;
height: calc(100vh - 6rem);