Donation Counter
How do I make an donation counter?
Just messing with something for work.. What is a donation counter? How do you make a donation counter? This script and codes were developed by Eric Franklin on 25 July 2022, Monday.
Donation Counter - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Donation Counter </title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="bw"></div> <div class="show"></div> <div id="bar" data-total="100"> <div class="text">Currently at <br/><span>70</span><br><i>Click To Give</div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Donation Counter - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Concert+One);
html,
body { margin: 0 auto;
}
.container { width: 450px; height: 328px; position: relative; display: inline-block; vertical-align: top; background-clip: content-box;
}
.bw { width: 100%; height: 100%; position: absolute; bottom: 0; background: url(http://fdfranklin.com/usf-bull-bw.png) fixed left top; background-clip: content-box;
}
.show { width: 100%; height: 0%; position: absolute; bottom: 0; background: url(http://fdfranklin.com/usf-bull.png) fixed left top; background-clip: content-box;
}
#bar { width: 100%; height: 0%; position: absolute; bottom: 0; border-top: 1px dashed black;
}
#bar .load { opacity: 1;
}
#bar div { position: absolute; line-height: 22px; width: 110px; top: -40px; right: -113px; font-family: arial, sans-serif; font-size: 16px; text-align: center; color: white; cursor: pointer; border: 1px solid #ccc; border-radius: 8px; background: #2f574b; transition: background 700ms ease-in-out; opacity: 0; -webkit-transition: opacity 3s ease-in, background 700ms ease-in-out; -moz-transition: opacity 3s ease-in, background 700ms ease-in-out; -o-transition: opacity 3s ease-in, background 700ms ease-in-out; -ms-transition: opacity 3s ease-in, background 700ms ease-in-out; transition: opacity 3s ease-in, background 700ms ease-in-out;
}
#bar div:hover { background: #B1A875;
}
#bar div span { font-family: 'Concert One', sans-serif; line-height: 30px; font-size: 34px; color: #white;
}
Donation Counter - Script Codes JS Codes
percent = $('#bar div span').html();
total = $('#bar').attr('data-total');
percentStart = 0;
setInterval(function() { $('.show').css('height',percentStart/total*100+'%'); $('#bar').css('height',percentStart/total*100+'%'); $('#bar div span').html('%'+percentStart); if(percentStart<percent) {percentStart=percentStart+1;}
},35);
$("#bar div").addClass("load");
Developer | Eric Franklin |
Username | FDfranklin |
Uploaded | July 25, 2022 |
Rating | 4 |
Size | 2,994 Kb |
Views | 76,912 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Animated Image | 1,649 Kb |
Gif play on hover. | 2,586 Kb |
Fun with input fields. | 3,117 Kb |
Lightning Vs. Penguins Hover Thingy | 3,000 Kb |
Auto Loan Calculator | 3,728 Kb |
Responsive Wedding Page | 7,425 Kb |
Portfolio Landing Page | 3,585 Kb |
Simple jQuery modal with form. | 3,382 Kb |
A Pen by Eric Franklin | 3,491 Kb |
Mock up health chart with pop ups. | 2,352 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Gears | Synvox | 3,278 Kb |
Multi-step GSAP animation | Acacheung | 2,668 Kb |
Navcube | Wbarlow | 4,775 Kb |
Simple Login Form Template | Banunn | 3,571 Kb |
SlideDown FixedMenu | Mp_graphic | 5,602 Kb |
Scroll to top button | DominicFrancois | 3,743 Kb |
Importable Clearfix | Corysimmons | 1,411 Kb |
Sexy Social Buttons | Ipiyale | 2,226 Kb |
Table Exercise | Fresco | 9,585 Kb |
Myprofile | SoufianeAbid | 2,451 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!