Update download.php

pull/8/head
SuperDev 3 years ago committed by GitHub
parent 8f9a13cb2d
commit fe50bd4112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -60,9 +60,10 @@ if(isset($_POST['submit'])){
<!--</form>-->
</div>
</body>
<?php echo'
<script>
const downloadBtn = document.querySelector(".download-btn");
const fileLink = "<?=$fileURL?>";
const fileLink = "' . $fileURL .'";
const initTimer = () => {
if(downloadBtn.classList.contains("disable-timer")) {
return location.href = fileLink;
@ -86,5 +87,5 @@ const initTimer = () => {
}, 1000);
}
downloadBtn.addEventListener("click", initTimer);
</script>
</script>'; ?>
</html>

Loading…
Cancel
Save