in src/frontend/www/js/main.js [70:99]
function renderNewTodo(){
let div = document.createElement("div");
div.classList.add("todo");
let input = document.createElement("input");
input.type = "checkbox";
input.id = `todo-new-cb`;
input.disabled = true;
let editor = document.createElement("div");
editor.classList.add("editor");
editor.classList.add("editor-new");
editor.contentEditable = true;
editor.dataset.placeholder = "Type something here to add a new task. "
editor.id = `todo-new`;
editor.addEventListener("blur", createHandler);
editor.addEventListener("keypress", catchEnter);
editor.addEventListener("click", function(e){e.target.focus();e.target.innerHTML = " "});
let h1 = document.createElement("h1");
h1.appendChild(input);
h1.appendChild(editor);
div.appendChild(h1);
return div;
}