* Graham * Mwebvendor
add ?__xt_download=1 to the link to force download (only works on local files)
A simple live countdown timer (one of many methods)
Set the delay by changing the value in the div
<div id="countdown" >5</div>

<script type="text/javascript">
  var seconds;
  var temp;
 
  function countdown() {
    seconds = document.getElementById('countdown').innerHTML;
    seconds = parseInt(seconds,10);
 
    if (seconds == 1) {
      temp = document.getElementById('countdown');
      temp.innerHTML = "Your download link goes here";
      return;
    }
 
    seconds--;
    temp = document.getElementById('countdown');
    temp.innerHTML = seconds;
    x = setTimeout(countdown, 1000);
  } 
 
  countdown();
</script>

Copy code
2017-05-11 07:46 (edited 2017-05-11 09:12 by Graham ) · (0)

Online: Guests: 1