2022-10-11 13:28:46 +04:00
|
|
|
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)
|
|
|
|
)
|
|
|
|
|
2022-12-30 16:41:02 +04:00
|
|
|
document.querySelectorAll('li.change-img>.li-wrapper').forEach(
|
2022-10-11 13:28:46 +04:00
|
|
|
elem => elem.addEventListener('click', changePicture)
|
|
|
|
)
|
|
|
|
|
|
|
|
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)
|