Welcome to the Thala For Reason Verifier project! This tool is designed to establish a connection between any input and the legendary cricketer MS Dhoni or the number 7, based on various logical criteria. It's a fun way to see how seemingly unrelated things can be related to one of the greatest cricket icons.
To get started with this project, follow these steps:
- A web browser to open the HTML file.
- An internet connection to load external resources and AI scripts.
-
Clone the repository:
git clone https://github.com/sanketshinde3001/thala-for-reason-verifier.git
-
Navigate to the project directory:
cd thala-for-reason-verifier
-
Open the
index.html
file in your web browser to run the application.
Here's a quick reference of some example inputs and their corresponding outputs:
Input | Output |
---|---|
7, 14, 77 | Divisible by 7 |
16, 241 | Digits sum is divisible by 7 |
14326999 | Sum of sum is divisible by 7 |
cricket | Word has 7 letters |
Other cases | Handled by AI |
The HTML structure includes:
- A
container
div for user interaction. - An
input
field for entering text. - A
button
for verifying the input. - An
audio
element for playback. - A
container2
div displaying example inputs and outputs with a close button.
The CSS styles define the layout and appearance of the divs, buttons, and table. External fonts and styles are loaded for enhanced visuals.
The JavaScript handles:
- Input validation and verification.
- AI model integration using the Google Generative AI library.
- Audio playback control.
- Dynamic DOM manipulation to display results and handle user interactions.
Contributions are welcome! Feel free to open issues or submit pull requests on the GitHub repository.
- GitHub: sanketshinde3001
- LinkedIn: Sanket Shinde