Message from JavaScript discussions

October 2020

— Hi guys.
I have two div html element, I need to implement the snap functionality as implement in jQuery with native JavaScript code. Now, I have no idea how do this in js.
Jquery examlpe is here:
There is a snap element that content the text: I only snap to the big box
I need functionality like this.

I don't find answer for this question.
Everywhere people wrote used JQuery UI draggable.

Message permanent page


i made this a lot of time ago, it's not super elegant but it works xD

— banofbot

— 👼 H R has been saved — no kick for you this time.

Voters who chose to save:
H R, A R, R, S R, R S
Powered by Todorant

Message permanent page

— Thank you. I will to try understand this.

— Why 3ppl saving him?

— Those are same acc

— TRGWII work work

— banofbot

— 🔫 H R has been kicked — the only way to get this user back is for admins to manualy unban in chat settings.

Voters who chose to kick:
ooopsieded, RubenVerg, cactua, determin1st, Kazordoon
Powered by Todorant

Message permanent page

— Good luck, i wrote it only for study so it's super messy xD

— Ok. But it work. It is really good.