Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bajajcodes/is-your-birthday-palindrome
A palindrome birthday checker that will tell your birthday is palindrome or not, and also shows the nearest palindrome date and how many days missed.
https://github.com/bajajcodes/is-your-birthday-palindrome
css html javascript
Last synced: 13 days ago
JSON representation
A palindrome birthday checker that will tell your birthday is palindrome or not, and also shows the nearest palindrome date and how many days missed.
- Host: GitHub
- URL: https://github.com/bajajcodes/is-your-birthday-palindrome
- Owner: bajajcodes
- Created: 2021-09-13T05:17:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-22T04:24:31.000Z (about 3 years ago)
- Last Synced: 2024-10-11T12:10:19.366Z (about 1 month ago)
- Topics: css, html, javascript
- Language: JavaScript
- Homepage: https://is-your-wish-you-bday-palindrome.netlify.app/
- Size: 269 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Is Your Birthday Palindrome
## List of Contents
- Description
- Input
- Output
- Processing
- Screenshots
- Link> **Description:** Is your birthday(DOB) looks same from left side and right side, if yes then your birthday is palindrome and if not then this app will tell you `How many days you born ahead or behind a palindrome birthday`. If you don't know is your birthday palindrome you can check, enter your date of birth and click on `Show` button, you will get to know. Click on the link below to check is your birthday palindrome.
> **Input:** A user has to enter his/her date of birth in dd/mm/yyy format, if not entered in format described then will get a message form the app saying `I Hope your not ghost`.
> **Output**: Output will be a simple message, stating whether your birthday is palindrome or not, if yes then `Your birthday is palindrome!!` or not then `The nearest palindrome date is dd/mm/yyy, you are born behind/ahead X days.`
> **Processing:**
- Get date of birth from user in format dd/mm/yyy.
- Click on Show button.
- After clicking on Show button, then function `getDateAsString` takes date as input convert into date format to remain safe throught the process.
- Then function `getDateInAllFormats` takes date as input converted into string and returns an array of string have date in all formats as `[ddmmyyyy, mmddyyyy, yyyymmdd, ddmmyy, mmddyy, yyddmm]`.
- If any of the date format from the array(output of `getDateInAllFormats` function) is palindrome, then the user is updated with message, else upcoming palindrome birthday and previously went palindrome birthday is found out. The palindrome bdirthday check is done using function `isStringPalindrome` which uses function `reverseString`and take birthday string as input and return boolean as output.
- If user birthday is not palindrome then functions `getNextPalindromeDate` and `getPreviousPalindromeDate` taking date as input and returning palindrome birthdays and then which palindrome birthday is shortest distance or nearest to user birthday, is been informed to user with relevant message.
> **Screenshots:**
![Initial(app load not available) image of app NA](https://github.com/shmbajaj/is-your-birthday-palindrome/blob/main/screenshots/inital.png?raw=true)
![Palindrome image of app NA](https://github.com/shmbajaj/is-your-birthday-palindrome/blob/main/screenshots/palindrome.png?raw=true)
![Ahead Palindrome Birthday image of app NA](https://github.com/shmbajaj/is-your-birthday-palindrome/blob/main/screenshots/ahead.png?raw=true)
![Behind Palindrome Birthday image of app NA](https://github.com/shmbajaj/is-your-birthday-palindrome/blob/main/screenshots/behind.png?raw=true)> **Link:** [Is Your Birthday Palindrome](https://is-your-wish-you-bday-palindrome.netlify.app)