# eJustice **eJustice** is a small project I made which gives fair and quick decisions based on what both sides say. It's like a chatbot judge who listens to the victim and defendant and then gives a decision using IPC (Indian Penal Code) laws. image --- ## ๐Ÿง  About In my country India, court cases take many years. Many people don't get justice on time. I wanted to make something that can help in giving fast and fair judgement just by analysing what both sides are saying. So I made this. --- ## โš™๏ธ How it works * You write what the victim said * Then what the accused says * Then it tells you a verdict by checking IPC laws and human emotion also * It also gives voice output and a verdict screen --- ## โœจ Features * Easy to use interface * Voice speaks the judgement * Download PDF of the verdict * Small splash animation before the screen * Two buttons after result โ€“ one for download and one for retry * Looks at both side points before making any decision --- ## ๐Ÿงช How to run 1. Just open the `index.html` file in your browser 2. Add victim and defendant statements 3. Click the button and wait few seconds 4. Result will come on screen --- ## ๐Ÿ“ File Structure ``` /eJustice โ”‚ โ”œโ”€โ”€ index.html # Main file to run โ”œโ”€โ”€ 1.gif # Splash screen animation โ”œโ”€โ”€ 2.png # Background image 1 โ”œโ”€โ”€ 3.png # Background image 2 โ”œโ”€โ”€ verdict.mp3 # Gavel sound effect ``` --- ## ๐Ÿงฐ Libraries & Tools Used * **html2pdf.js** โ€“ For generating downloadable PDF of the verdict * **responsiveVoice.js** โ€“ For converting verdict to speech * **Vanilla JavaScript** โ€“ No frameworks, just pure JS logic * **HTML + CSS** โ€“ For layout and styling --- ## โš ๏ธ Note This is not made for real legal cases or serious use. I just made it for school and fun purpose. Please don't use it for real judgements.