From 11a4eed7d4a3119c9dd792bfc3ce4cf644fca35e Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Thu, 25 Jun 2026 10:50:55 -0400 Subject: [PATCH] fix: note.js fix a couple bugs, typos and remove the console output --- assets/js/note.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/js/note.js b/assets/js/note.js index aba9337..1c41526 100644 --- a/assets/js/note.js +++ b/assets/js/note.js @@ -230,7 +230,7 @@ export function newNote() { * @return {void} No explicit return value. */ export function saveNote(event) { - console.debug('called saveNote '+new Date()); + //console.debug('called saveNote '+new Date()); if (event) { event.preventDefault(); } @@ -354,7 +354,7 @@ export function findRefLinks() { showPassage( e, "  " + - "
" + + "
" + result); }); }); @@ -401,7 +401,7 @@ export function findLinks() { showPassage( e, "  " + - "
" + + "
" + result); }); }); @@ -419,7 +419,7 @@ export function showPassage(event, text) { // Create a new div element for the popup const popup = document.querySelector('#passage-popup'); popup.innerHTML = state.md.render(text); - + // Position the popup relative to the cursor let x = event.clientX + window.scrollX; let y = event.clientY + window.scrollY; @@ -428,6 +428,7 @@ export function showPassage(event, text) { popup.style.top = `${y}px`; popup.style.left = `${x}px`; popup.style.display = 'block'; + popup.style.position = 'absolute'; } /**