text: const second = 1000,
    minute = second * 60,
    hour = minute * 60,
    day = hour * 24;
  
  var time = document.getElementsByClassName("opentime")[0].innerText;
  console.log(time)
  
  let countDown = new Date(time).getTime(),
    x = setInterval(function () {
  
      let now = new Date().getTime(),
        distance = countDown - now;
  
      document.getElementById('days').innerText = Math.floor(distance / (day)),
        document.getElementById('hours').innerText = Math.floor((distance % (day)) / (hour)),
        document.getElementById('minutes').innerText = Math.floor((distance % (hour)) / (minute)),
        document.getElementById('seconds').innerText = Math.floor((distance % (minute)) / second);
  
    }, second)
  
  history.pushState(null, null, document.URL);
  window.addEventListener('popstate', function () {
    history.pushState(null, null, document.URL);
  });