GithubHelp home page GithubHelp logo

enkelan / age-calculator-app-eno Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 516 KB

Home Page: https://enkelan.github.io/Age-Calculator-App-Eno/

HTML 18.69% JavaScript 33.84% CSS 22.91% SCSS 24.57%

age-calculator-app-eno's Introduction

Age Calculator App

This is a work-in-progress application that calculates a user's age based on their birth date. The application is built using HTML, CSS, and JavaScript.

Features

  • User-friendly interface for inputting birth date
  • Real-time age calculation
  • Responsive design for mobile and desktop

How It Works

The user inputs their birth date in the form of day, month, and year. The application then calculates the user's age in years, months, and days by comparing the current date with the inputted birth date.

The age calculation is done using JavaScript. Here are the main methods used:

  • addEventListener: This method is used to listen for user inputs and button clicks. When the user inputs their birth date or clicks the submit button, an event listener triggers a function that calculates the age.
  • Date: This constructor is used to create Date objects. It's used to get the current date and to create a Date object from the user's input.
  • getFullYear, getMonth, getDate: These methods are used to get the year, month, and day from a Date object. They're used to calculate the user's age in years, months, and days.
  • classList.add, classList.remove: These methods are used to add and remove classes from elements. They're used for error handling - when the user inputs an invalid date, the error class is added to the input field and label, changing their color to red.

The application's interface is built using HTML and CSS. It features a responsive design that adapts to different screen sizes, making it accessible on both mobile and desktop devices.

Future Improvements

This application is still a work in progress. Future updates will include:

  • More comprehensive error handling
  • Improved user interface
  • Additional features based on user feedback

age-calculator-app-eno's People

Contributors

enkelan 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.