This simple web application displays a greeting message based on the current time of the day. It dynamically changes the greeting message (Good morning, Good afternoon, or Good evening) and appends a waving hand emoji to a designated element.
The JavaScript code in Time-based-Greeting.js
retrieves the current hour of the day, determines the appropriate greeting message, and updates the text content of the greeting element accordingly. It also appends a waving hand emoji to the tag element.
- HTML
- CSS
- JavaScript
- Download the ZIP file from the GitHub repository.
- Extract the ZIP file to your desired location.
- Open the extracted folder.
- Double-click the
index.html
file to open it in a web browser.
- Clone the repository using the following command in your terminal or command prompt:
git clone https://github.com/0xelsherif/Time-based-Greeting.git
- Navigate to the cloned directory:
cd Time-based-Greeting
- Open the
index.html
file in a web browser.
If you find this project useful or interesting, consider giving it a star ⭐ on GitHub and spreading the word! Your support means a lot to me and helps in maintaining and improving the project.
If you'd like to contribute to the project, whether it's fixing bugs, adding new features, or improving documentation, feel free to open a pull request. Contributions of all kinds are welcome!
Follow me on GitHub to stay updated with my latest projects and contributions:
If you'd like to support the development of this project further or express your appreciation with a small gesture, consider buying me a coffee! Your support helps keep me fueled for more coding sessions. Thank you for your support!