migrate to astro #1

Merged
nin0 merged 18 commits from astro into main 2024-07-29 17:07:16 -04:00
Showing only changes of commit fc7959737f - Show all commits

View file

@ -56,8 +56,6 @@ const {tabTitle} = Astro.props;
initialX = e.clientX;
initialY = e.clientY;
// Step 11: Update the element's new position by modifying its `top` and `left` CSS properties.
console.log(element.offsetTop);
console.log(currentX);
element.style.top = (element.offsetTop - currentY) + "px";
element.style.left = (element.offsetLeft - currentX) + "px";
}
@ -66,8 +64,6 @@ const {tabTitle} = Astro.props;
function stopDragging() {
document.onmouseup = null;
document.onmousemove = null;
console.log(element.offsetTop - currentY);
console.log(element.offsetLeft - currentX);
}
}
document.addEventListener("DOMContentLoaded", () => {