In project development, if we use the prompt dialog box that comes with javascript, it does not feel very beautiful, so we usually define some dialog boxes ourselves. Here I implement a login window that pops up when I click the button. Click the window and you can To implement the drag-and-drop function, there are too many words to explain clearly, so just use code to speak.
Here I post the HTML, CSS, and Jquery codes separately
HTML part: