Giter VIP home page Giter VIP logo

countdown-timer's Introduction

Countdown-Timer

JavaScript Countdown done with Vanilla JavaScript This Project is to build a Stop Watch Part of my Vanilla Javascript Project

Steps on how this Project was built:

  1. First Create the HTML File Boilerplate and link respective css and jacascript files
  2. Give the body a background color and display it flex to make all items go to the center
  3. Then create the elements that would hold the stop watch and the control buttons
  4. Give the elements that hold the countdown an id
  5. GIve the buttons an identifier

JavaScript:

  1. Create a DOMContentLoaded function
  2. Reference all contents and buttons and put them in variables
  3. Create variables for buttons
  4. Write the Countdown Method. This methods basically runs a condition and increases the count of the timer
  5. Write the functions of each button when they are clicked
  6. The clearInterval method clears the timer with the setTimeout method. It stops the setTimeout after a given period and it runs again and again
  7. The Interval variable is just used to reference the setTimeout method

countdown-timer's People

Contributors

ufortstephen avatar

Watchers

 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.