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>--> <!--</form>-->
</div> </div>
</body> </body>
<?php echo'
<script> <script>
const downloadBtn = document.querySelector(".download-btn"); const downloadBtn = document.querySelector(".download-btn");
const fileLink = "<?=$fileURL?>"; const fileLink = "' . $fileURL .'";
const initTimer = () => { const initTimer = () => {
if(downloadBtn.classList.contains("disable-timer")) { if(downloadBtn.classList.contains("disable-timer")) {
return location.href = fileLink; return location.href = fileLink;
@ -86,5 +87,5 @@ const initTimer = () => {
}, 1000); }, 1000);
} }
downloadBtn.addEventListener("click", initTimer); downloadBtn.addEventListener("click", initTimer);
</script> </script>'; ?>
</html> </html>

Loading…
Cancel
Save