How to set long click?

Hello, I decided to try to implement the idea, the point is that with a short press on the button drops a menu and when you long hold and drops a popup window, a kind of 3D Touch, searching, found almost finished the code ,but I can't configure it so it worked, not so long ago started to learn JS, not whisking well. If anyone can help that would when you long press beginning to fall out popup window will be very grateful! P. s what does this mean, if not difficult send a very simple example in CodePen, so it's easier and faster to grasp the essence of the work, thanks in advance !
March 23rd 20 at 19:25
1 answer
March 23rd 20 at 19:27

To watch the console.
There is more (toaster link does not pass) - vicente.Nikola commented on March 23rd 20 at 19:30
On phones (or rather touch screen) is not working, he needs more just for them, so that you can link to these events:

Let modify :)) - louie_Schup commented on March 23rd 20 at 19:33

Find more questions by tags HTMLJavaScriptCSS