+1 vote
by
Hello.Please tell me what is the mistake here https://codepen.io/rusl10/pen/ydgjNm
after clicking the button and close the modal window?
by
These errors I do not see it, but from the very beginning, even before you press the button, I see an attempt to load files with relative paths:
GET https://codepen.io/rusl10/fullpage/css/style.css?c... net::ERR_ABORTED 404ydgjNm:1292 GET https://codepen.io/rusl10/fullpage/css/sweetalert2.css net::ERR_ABORTED 404ydgjNm:1297 GET https://codepen.io/rusl10/fullpage/js/jquery.runner.js net::ERR_ABORTED 404ydgjNm:1294 GET https://codepen.io/rusl10/fullpage/css/style.css?c... net::ERR_ABORTED 404ydgjNm:1297 GET https://codepen.io/rusl10/fullpage/js/jquery.runner.js net::ERR_ABORTED 404ydgjNm:1 Access to font at 'https://codepen.io/rusl10/fonts/RobotoBlackItalic/...' (redirected from 'https://s.codepen.io/rusl10/fonts/RobotoBlackItali...') from origin 'https://s.codepen.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.ydgjNm:1307 GET https://codepen.io/rusl10/fonts/RobotoBlackItalic/... net::ERR_FAILEDydgjNm:1 Access to font at 'https://codepen.io/rusl10/fonts/RobotoBlackItalic/...' (redirected from 'https://s.codepen.io/rusl10/fonts/RobotoBlackItali...') from origin 'https://s.codepen.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.ydgjNm:1 GET https://codepen.io/rusl10/fonts/RobotoBlackItalic/... net::ERR_FAILED

Если уж воспроизведения ошибок, о которых спрашиваете.
by
Ruslan Dasaev Listen , so you got more errors than two. Why are you crowd are trying to parse? Divide code into pieces and test.
by
Gene Hagmt You need to click on the button after closing the modal window to enter the console
by
I have no error seen.

1 Answer

0 votes
by
 
Best answer
Solved the problem by transferring clearintrval here:
setTimeout(function(){
Swal.fire("Congratulation you won!");
clearInterval(timerInterval);
}, 4000)

Всем спасибо.
...