diff --git a/public/index.html b/public/index.html index ea25c341d..deb7a3da3 100644 --- a/public/index.html +++ b/public/index.html @@ -4341,11 +4341,12 @@ -
+ +
diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index a7d8f2bfd..97d86b500 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -450,7 +450,7 @@ export function dragElement(elmnt) { topbar, topbarWidth, topBarFirstX, topBarLastX, topBarLastY, sheldWidth; var elmntName = elmnt.attr('id'); - + console.log(`dragElement called for ${elmntName}`); const elmntNameEscaped = $.escapeSelector(elmntName); const elmntHeader = $(`#${elmntNameEscaped}header`); diff --git a/public/scripts/extensions/gallery/index.js b/public/scripts/extensions/gallery/index.js index 63b0e6f38..8281ad538 100644 --- a/public/scripts/extensions/gallery/index.js +++ b/public/scripts/extensions/gallery/index.js @@ -134,7 +134,6 @@ async function showCharGallery() { const items = await getGalleryItems(url); makeMovable(); - let close = callPopup('', "text"); console.log("close", close); if ($("body").css("position") === "fixed") { $("body").css("position", "static"); @@ -145,7 +144,7 @@ async function showCharGallery() { }, 100); //next, we add `
` to zoomFor_test - document.getElementById(`zoomFor_test`).innerHTML += `
`; + //document.getElementById(`zoomFor_test`).innerHTML += `
`; // close.then(() => { // $("#my-gallery").nanogallery2("destroy"); @@ -269,9 +268,67 @@ function makeMovable(){ }); } +function makeDragImg(id, url) { + // Step 1: Clone the template content + const template = document.getElementById('generic_draggable_template'); + + if (!(template instanceof HTMLTemplateElement)) { + console.error('The element is not a