I'm a beginner and despite the solutions provided on the web, it seems that I can't adapt them properly for my codes...
I've done a bootstrap modal which closes only with an "X" link, and which is not draggable. I'd like to make it draggable and be able to close it from anywhere outside the modal, in addition to the X link.
Originally, my HTML part is in a PHP file, but I've removed the \ needed before the double quote marks ".
I've tried many different things (probably not correctly)... so I would be very happy if you could help me.
Here is my fiddle : https://jsfiddle.net/23n1Lprx/1/
Thank you in advance !