I want to reproduce EXACTLY this fiddler : https://jsfiddle.net/0Lng89tq/5/
(Please don´t ask my reasons to do it, nor tell me that modals were not created to be used like that, etc.)
To do so (that is, to reproduce that fiddler), I have created two files:
(A) JS file named modal_background.js with exactly the following content:
When I put both files uploaded and the html page is load, the image attached successfully appears, but the "swal" button doesn´t work, I mean, I press it and it does nothing.
If I "close" the swal button, it closes as expected. If I press any faded part of the screen, the swal button closes, as expected.
Question: what should I do in the code shown to make it work? (I mean, what should I do so that when the swal button is clicked, it works as expected.)
If the two js files "core.min.js" and "script.js" are problem-related, please tell me what I should change/take out from them to solve the problem.
They are lengthy, hence if you need it, please ask so that I will copy-paste them for your evaluation.
Thanks for the solution (it worked!) and also for teaching me about this "fiddler detail". (I had no idea about that!)
Regards,
fskilnik.