mirror of
https://github.com/Supernova3339/anonupload.git
synced 2026-04-14 15:57:33 +02:00
Update download.php
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user