25 lines
1 KiB
JavaScript
25 lines
1 KiB
JavaScript
|
context.addEventListener('mousedown', ev => ev.stopPropagation())
|
||
|
|
||
|
space.addEventListener('mousedown', ev => ev.preventDefault())
|
||
|
space.addEventListener('contextmenu', contextMenu)
|
||
|
|
||
|
document.querySelectorAll('.copylink>.profile-link').forEach(
|
||
|
elem => elem.addEventListener('click', copyLink)
|
||
|
)
|
||
|
|
||
|
document.querySelectorAll('li.change-img>a').forEach(
|
||
|
elem => elem.addEventListener('click', changePicture)
|
||
|
)
|
||
|
|
||
|
document.querySelector('li.change-speed a').addEventListener('mousedown', ev => ev.preventDefault())
|
||
|
document.querySelector('li.change-speed input').addEventListener('input', changeSpeed)
|
||
|
document.querySelector('li.change-speed input').addEventListener('mousedown', ev => ev.stopPropagation())
|
||
|
document.querySelector('li.land-to').addEventListener('click', landToEarth)
|
||
|
|
||
|
move.addEventListener('mousedown', moveMenu)
|
||
|
move.addEventListener('mouseup', moveMenu)
|
||
|
move.addEventListener('mousemove', moveMenu)
|
||
|
body.addEventListener('mousemove', moveMenu)
|
||
|
body.addEventListener('mouseup', moveMenu)
|
||
|
body.addEventListener('mousedown', hideContextMenu)
|