How to make a timer with different intervals?

Tell me, I have a popup form. Window by adding to it the class active. I need to set up the time of the first appearance of this window and to define a second time interval.
First time: 5 seconds
The second time 60 sec
Go to page window appears after 5 seconds and then every 60 sec it appears again and again.

Now I have so displayed
setTimeout(function (e) {$('.popup-window').addClass('active');}, 5000);

How to make?
June 5th 19 at 21:22
1 answer
June 5th 19 at 21:24
in the timeout handler set the following function setInterval to 60C

Find more questions by tags JavaScriptjQuery