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';
}
/**