-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
18 lines (17 loc) · 1.33 KB
/
script.js
File metadata and controls
18 lines (17 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function disableselect(e){ //
return false //
} //
function reEnable(){ //
return true // this disables text highlight and copy functionality
} //
document.onselectstart=new Function ("return false") //
if (window.sidebar){ //
document.onmousedown=disableselect //
document.onclick=reEnable //
}
let MainBall = document.getElementById("ball");
document.onmousemove = function(e)
{
MainBall.style.left = e.pageX - (MainBall.offsetWidth/2) + "px";
MainBall.style.top = e.pageY - (MainBall.offsetWidth/2) + "px";
}