https://github.com/menoc61/camlanguagecalender
This project is for the cultural day it gives the ability of the users to translate a day in any dialate formate
https://github.com/menoc61/camlanguagecalender
Last synced: 3 months ago
JSON representation
This project is for the cultural day it gives the ability of the users to translate a day in any dialate formate
- Host: GitHub
- URL: https://github.com/menoc61/camlanguagecalender
- Owner: menoc61
- Created: 2023-04-02T16:04:55.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-07T03:36:46.000Z (about 2 years ago)
- Last Synced: 2025-01-10T10:29:25.769Z (4 months ago)
- Language: JavaScript
- Homepage: https://cmr-dialet-translator.netlify.app/
- Size: 449 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readME.md
Awesome Lists containing this project
README
# 📘Introduction
In this HTML code, we create a form with two input fields: one for the date in the format DD/MM/YYYY, and a dropdown menu to select the target language.
Inside the script tag, we define the same daysData JSON object and translateDayOfWeek function as in the previous example.
We also add an onclick event listener to the submit button, which calls the translateDayOfWeek function when clicked.
Finally, we create a
element with an id of result, which will display the translated day of the week in the selected language.We style the form, input fields, and button using CSS, and add some margin and padding to improve the layout and readability of the interface.
When the user clicks the Translate button, the translateDayOfWeek function will extract the input date and target language from the form, and use the same logic as before to translate the day of the week.
The resulting translation will be displayed in the result
element using JavaScript.