We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0a802 commit a754b19Copy full SHA for a754b19
injection/dragable.js
@@ -8,7 +8,7 @@ function dragElement(elmnt) {
8
document.getElementById("h4c3r_header").onmousedown = dragMouseDown;
9
} else {
10
// otherwise, move the DIV from anywhere inside the DIV:
11
- elmnt.onmousedown = dragMouseDown;
+ // elmnt.onmousedown = dragMouseDown;
12
}
13
14
function dragMouseDown(e) {
@@ -33,6 +33,8 @@ function dragElement(elmnt) {
33
// set the element's new position:
34
elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
35
elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
36
+ localStorage.setItem('h4ck3r_position_top', elmnt.style.top)
37
+ localStorage.setItem('h4ck3r_position_bottom', elmnt.style.left)
38
39
40
function closeDragElement() {
0 commit comments