Time ghatav

Ravindra Kumar
1 minute read
0

 </iframe></div><br /><p></p><br /><b><br /></b><div><br /></div><style>

.button {

    background-image: linear-gradient(to right, #0066ff, #00a1ff, #00c6eb, #00e087, #a8eb12);

    border: 1px solid black;

    color: white;

    font-family: Arial;

    font-size: small;

    text-decoration: none;

    padding: 3px;

}

.techly360{

    background-image: linear-gradient(to right, #0066ff, #00a1ff, #00c6eb, #00e087, #a8eb12);

    color: white;

}

</style>


<div style="text-align: center;">

<a class="button" href="https://drive.google.com/file/d/19Vok4yz5tTZY_AvXS9slT-aX_UVFGDOj/view?usp=drivesdk" id="download">Download File</a>


<button class="techly360" id="btn">Click to Download</button>


<script>

var downloadButton = document.getElementById("download");

var counter = 20;

var newElement = document.createElement("p");

newElement.innerHTML = "10 sec";

var id;


downloadButton.parentNode.replaceChild(newElement, downloadButton);


function startDownload() {

    this.style.display = 'none';

    id = setInterval(function () {

        counter--;

        if (counter < 0) {

            newElement.parentNode.replaceChild(downloadButton, newElement);

            clearInterval(id);

        } else {

            newElement.innerHTML = +counter.toString() + " second.";

        }

    }, 1000);

};


var clickbtn = document.getElementById("btn");

clickbtn.onclick = startDownload;

  </script></div><br />

إرسال تعليق

0تعليقات

إرسال تعليق (0)

#buttons=(Accept !) #days=(20)

Nosso site usa cookies para melhorar sua experiência. Verifique agora
Accept !