Create A Download Button with Timer in HTML CSS & JavaScript | Download Files with Countdown Timer
HTML-код
- Опубликовано: 12 ноя 2022
- In this video tutorial, you will learn to Create A Download Button with a Timer in HTML CSS & JavaScript. When you click the Download Button, a countdown timer appears until you have to wait. After the time got finished the file will download.
To add your own file link, read in the comment section.
Download Source Codes of this Download Button
www.codingnepalweb.com/downlo...
---
🔗 Links
✅ JavaScript Projects
➤ • JavaScript Projects
✅ Buttons Design
➤ • CSS Buttons
#Button_with_Timer #Downlod_Button #HTML_CSS_JavaScript
---
🎵 Music Credit:
Ikson - We Are Free (Vlog No Copyright Music)
• Ikson - We Are Free (V...
Deep Sea by Vendredi
• Deep Sea - Vendredi (N...
If you want to give your Google Drive link there then you can replace this “1aYiaLn3YOjL…” ID with your file ID. To get a file ID, upload your file on Google Drive > Right Click on the File > Click Share > Update General Access to “Anyone with the link” > Click Copy Link > Paste it on the notepad. In this link, you’ll get the file ID. The URL looks like this: drive.google.com/file/d/FILE-ID/view?usp=sharing
This code not working
file missing sir
@@TechViniinkannada open your file in your google drive
Thank you for sharing 💕❤️♥️😍♥️💕♥️😍❤️❤️💓❤️♥️❤️♥️
Honestly , most useful things are here. Thank to YOU for these times you're putting on it
Happy to help!
One of the best video to learn logic
Thanks sir love from india 🇮🇳
Keep uploading javascript 🎥
Thank you, I will
Excellent
Ilove Like Those Lessons.
Glad to hear that!
Nice 👍
Great
Can you please make a way that you helping people with HTML,CSS, J's and sharing your experience with others.
Also solving problems and explaining what you doing when you coding.
Thanks
Okey I will think about.
Well done 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰
Likeeeeeeeeeee
bro how i create mulitple button tell please
Good work and first comment and like
You are the best
Verry good 👍👍
Thank you very much
#first 🤩
Ohh that is great.
Thanks
Welcome
Plaese make a video how to use this code because we don't know
how can i add modals on that button
How do I use it to blog posts?
next video table responsive beautiful
Great suggestion!
bro what software you uses to record screen
filmora screen recorder
@@CodingLabYT 😊😊😊
Hi can you teach me in private?
i want to add button form modals
Here is the tutorial - ruclips.net/video/X4hkueyp7zY/видео.html
@@CodingLabYT i want to add timing button how it work if user open new tab page then start timing button 10 second and then click button open models form submit how is it possible it will be work
Why did you create this?
if(downloadBtn.classList.contains("disable-timer")) {
return location.href = fileLink;
}
To stop the timer if it is already executed, by this code users can download the file multiple times without waiting, again and again, until the webpage gets refreshed.
@@CodingLabYT nice, ty bro
How to add this button in different posts. For example, I am using this script
var downloadButton = document.getElementById("download");
var counter = 60;
var newElement = document.createElement("p");
newElement.innerHTML = "You can begin your download in 60 seconds.";
var id;
downloadButton.parentNode.replaceChild(newElement, downloadButton);
id = setInterval(function() {
counter--;
if(counter < 0) {
newElement.parentNode.replaceChild(downloadButton, newElement);
clearInterval(id);
} else {
newElement.innerHTML = "You can begin your download in " + counter.toString() + " seconds.";
}}, 1000);
Here's the code I put in every post
[su_button id="download" url=drive.google.com/uc?export=download&id=1aYiaLn3YOjL-_o5QBCy7tU1epqA6gZoi" style="soft" background="#61ac4b" color="#ffffff" size="5" center="yes" radius="0" icon="icon: download"]DOWNLOAD NOW[/su_button]