Giter Site home page Giter Site logo

donation's Introduction

Donation

Recreation of a donation page

I came across an exercise requiring you to recreate a donation form using HTML and CSS. On the page the original is on the left and my recreation is on the right. I decided to expand on this task by using more than HTML and CSS and adding interactivity using Javascript. The first thing I added was the ability to enter an amount in the input box, click on the "Give Now" button and then have that amount subtracted from the total needed, replacing it with the new amount.

Then with each click of the button to donate I added one to the amount of people who have donated so far. I also increased the percentage within the W3.css progress bar. Once the total amount required was met, the "Give Now" button is disabled and the progress bar stops upon reaching 100%, with the amount needed paragraph changing to project is 100% funded.

I intend to add further interactivity using the buttons at the bottom. The "tell your friends" button, once clicked, will give the option to share the project on social media sites. I will add the option to bookmark the page using the "save for later" button.

donation's People

Contributors

stevie921 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.