Thanks @awelzel I solved this problem, I reload page every time hidden content is shown to the customer.
I have another issue: My page has multiple popup windows(triggered on button click). Unfortunately counter starts when page is loaded and not when popup window appears. I am showing hidden text in popup window.
Is it possible to start countdown when popup loads?