This website is designed to document and display incidents of workplace harassment in a secure, organized manner. It features a bilingual interface (English and Japanese) and provides both calendar and timeline views for incident tracking.
- Bilingual Support: Toggle between English and Japanese interfaces
- Calendar View: Interactive calendar highlighting dates with reported incidents
- Timeline View: Chronological listing of all incidents
- Search and Filter: Find incidents by keywords, category, or date range
- Responsive Design: Works on desktop, tablet, and mobile devices
- Evidence Management: Securely link to supporting evidence files
- Incident Details: Modal view showing comprehensive incident information
evidence/
├── css/
│ └── styles.css # Main stylesheet
├── js/
│ ├── app.js # Main application logic
│ ├── firebase-config.js # Firebase configuration
│ └── translations.js # Language translations
├── incidents.json # Incident data storage
├── index.html # Main HTML file
└── README.md # This documentation
- Clone or download this repository to your local machine
- Open the project folder in your preferred code editor
- To test locally, you can use a simple HTTP server:
- Using Python:
python -m http.server - Using Node.js:
npx serve
- Using Python:
- Open your browser and navigate to
http://localhost:8000(or the port provided)
- Go to the Firebase console
- Click "Add project" and name it "evidence"
- After project creation, click on the web icon (</>) to add a web app
- Register the app with a nickname like "Evidence Documentation"
- Copy the firebaseConfig object provided and replace the placeholder in
js/firebase-config.js - Install Firebase CLI if you haven't already:
npm install -g firebase-tools - Login to Firebase:
firebase login - Initialize your project:
firebase init- Select Hosting
- Select your "evidence" project
- Use "." as your public directory
- Configure as a single-page app: No
- Set up automatic builds and deploys: No
- Deploy your website:
firebase deploy
The incidents.json file contains all incident data. Each incident has the following structure:
{
"id": "unique-id",
"date": "YYYY-MM-DD",
"time": "HH:MM",
"title": {
"en": "English Title",
"ja": "Japanese Title"
},
"category": {
"en": "Category in English",
"ja": "Category in Japanese"
},
"description": {
"en": "Detailed description in English",
"ja": "Detailed description in Japanese"
},
"evidence": [
{
"type": "image|document|audio|video",
"url": "path/to/evidence/file",
"description": {
"en": "Evidence description in English",
"ja": "Evidence description in Japanese"
}
}
]
}To add a new incident:
- Open the
incidents.jsonfile - Add a new object to the
incidentsarray following the structure above - Save the file and upload it to your hosting
Evidence files should be stored in a secure location. When using Firebase:
- Upload evidence files to Firebase Storage
- Set appropriate security rules for access control
- Use the generated URLs in your
incidents.jsonfile
- Ensure that your Firebase security rules are properly configured to protect sensitive data
- Consider implementing authentication if the site needs to be restricted to specific users
- Regularly backup your
incidents.jsonfile - Be cautious about what information is included in incident descriptions to protect privacy
When documenting workplace harassment in Japan, be aware of:
- The Act on Comprehensive Promotion of Labor Policies (労働施策総合推進法) which includes provisions on power harassment
- The Equal Employment Opportunity Law (男女雇用機会均等法) regarding sexual harassment
- Privacy laws that may affect how you document and store evidence
- The importance of factual, objective documentation without defamatory content
- Modify
css/styles.cssto change the visual appearance - Edit
js/translations.jsto update or add language translations - Adjust
js/app.jsto modify functionality or add new features
For issues or questions, please contact the administrator of this website.