This commit is contained in:
Ilya Kantor 2019-07-18 19:41:21 +03:00
parent 807414b288
commit 94a6933294
4 changed files with 25 additions and 14 deletions

View file

@ -41,7 +41,13 @@
* relative to the anchor element.
*/
function showNote(anchor, position, html) {
// ... your code ...
let note = document.createElement('div');
note.className = "note";
note.innerHTML = html;
document.body.append(note);
positionAt(anchor, position, note);
}
// test it