Donation Counter

Developer
Size
2,994 Kb
Views
76,912

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 Previews

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");
Donation Counter - Script Codes
Donation Counter - Script Codes
Home Page Home
Developer Eric Franklin
Username FDfranklin
Uploaded July 25, 2022
Rating 4
Size 2,994 Kb
Views 76,912
Do you need developer help for Donation Counter?

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!

Eric Franklin (FDfranklin) Script Codes
Create amazing video scripts with AI!

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!