/** * UrbanFlow — shared.js * Shared utilities, modal management, and legal content injection. * Loaded on every page before page-specific scripts. */ // ============================================= // Modal Management // ============================================= function openAppModal(id) { const el = document.getElementById('appModal-' + id); if (el) { el.style.display = 'flex'; document.body.style.overflow = 'hidden'; } } function closeAppModal(id) { const el = document.getElementById('appModal-' + id); if (el) { el.style.display = 'none'; document.body.style.overflow = ''; } } // ============================================= // Legal Modals — Single Source of Truth // ============================================= const LEGAL_CONTENT = { privacy: { title: 'Privacy Policy', subtitle: 'Last Updated: 28th April 2026', content: `
1. WHO WE ARE
UrbanFlow is a computer vision software that analyses traffic video footage to produce structured traffic data. It is hosted on Hugging Face Spaces as a demonstration and research product by Perception365.
Contact: support.urbanflow365@gmail.com
2. WHAT DATA WE COLLECT
a) Account Data: When you sign in with Google, we receive your name, email address, and profile picture. We store only what is necessary to identify your session.
b) Uploaded Video Footage: Videos you upload are processed temporarily for inference only. We do not store your original footage. All uploaded files are deleted automatically once processing is complete and session cache is cleared each run.
c) Analysis Outputs: Processed results are tied to your active session only. We do not sell or share this data with anyone.
d) Usage Logs: We collect standard server logs (IP address, browser type, timestamps) for security monitoring and platform improvement only.
3. HOW WE USE YOUR DATA
We use your data solely to:
- Authenticate your identity and maintain your session
- Process uploaded footage and return results to you
- Detect and prevent misuse of the platform
- Comply with legal obligations
We do not use your data for advertising. We do not sell your data to any third party under any circumstances.
4. DATA SHARING
We do not share your personal data with third parties except:
- Google — for authentication (governed by Google's Privacy Policy)
- Hugging Face — infrastructure hosting (see huggingface.co/privacy)
- Legal authorities — only if required by law
We have no control over Hugging Face's infrastructure-level data handling.
5. DATA SECURITY
We apply reasonable technical measures to protect data in transit and at rest. However, no system is perfectly secure. We operate on shared cloud infrastructure and cannot guarantee absolute security. By using UrbanFlow, you acknowledge and accept this risk.
You should not upload footage containing sensitive personal information, private property interiors, classified content, or any material you are not authorised to share.
6. YOUR RIGHTS
Since UrbanFlow does not maintain permanent user accounts, signing out clears your session and associated data entirely. You may also contact us to ask what data is held or to report a concern.
Contact: support.urbanflow365@gmail.com
We will respond within 30 days.
7. CHANGES TO THIS POLICY
We may update this policy as the platform evolves. The "Last Updated" date at the top reflects the most recent revision. Continued use after changes constitutes acceptance of the updated policy.
1. ACCEPTANCE
By accessing or using UrbanFlow, you confirm that you have read, understood, and agree to these Terms and Conditions in full. If you do not agree, do not use the platform.
We are not responsible for any risks arising from future use of the platform beyond what is expressly stated here.
2. NATURE OF THE PLATFORM
UrbanFlow is a beta product provided for research, evaluation, and non-critical use only. It is not intended for use in life-safety systems, emergency response, legal proceedings, or any context where errors in traffic data could cause harm.
The platform may be modified, suspended, or discontinued at any time without prior notice.
3. ELIGIBILITY
You must be at least 18 years old and hold a valid Google account to use UrbanFlow. By signing in, you confirm you meet these requirements.
4. ACCEPTABLE USE
You agree to use UrbanFlow only for its intended purpose: analysing road or traffic video footage to obtain traffic flow data.
You must NOT:
a) Upload footage unrelated to traffic or road monitoring — including personal recordings, indoor footage, private events, or surveillance of individuals.
b) Upload footage you do not have the legal right to use or process.
c) Upload footage containing nudity, violence, illegal activity, or any content that violates applicable law.
d) Attempt to reverse-engineer, scrape, or abuse the platform or its API.
e) Use the platform to identify, track, or surveil specific individuals without their explicit consent.
f) Upload classified, confidential, or government-restricted materials.
g) Use bots or automated scripts to interact with the platform.
Violation of these terms may result in immediate access termination and, where applicable, reporting to relevant authorities.
5. YOUR RESPONSIBILITY FOR UPLOADED CONTENT
You are solely responsible for any footage you upload. By uploading, you confirm that:
- You own the footage or hold explicit authorisation to process it
- The footage is relevant to traffic or road monitoring
- You are not violating any third party's rights, including privacy rights
- The footage does not contain content prohibited under Section 4
We do not review uploaded footage before processing and are not responsible for its content.
6. LIMITATION OF LIABILITY
To the fullest extent permitted by applicable law:
a) UrbanFlow is not liable for any direct, indirect, incidental, or consequential damages arising from your use of the platform.
b) Analysis results are provided as-is. They should not be used as the sole basis for engineering, legal, or policy decisions without independent verification.
c) In the event of a data breach, system failure, or security incident, our liability is limited to the maximum extent permitted by law. We will make reasonable efforts to notify affected users but are not liable for resulting harm.
d) We are not responsible for platform availability or uptime, as it operates on Hugging Face's third-party infrastructure.
7. DATA BREACH NOTICE
If a breach affecting user data occurs, we will notify affected users via their registered email address within a reasonable timeframe of becoming aware of the incident. Given that we collect only session-level identifiers and no permanent video data, the risk of significant harm from a breach is inherently limited.
8. INTELLECTUAL PROPERTY
UrbanFlow, its models, interface, design, and associated technology are the intellectual property of Perception365. You may not copy, reproduce, or redistribute any part of the platform without written permission.
You retain ownership of all footage you upload. By uploading, you grant us a limited, temporary licence to process that footage for analysis. This licence expires once processing is complete and the footage is deleted.
9. THIRD-PARTY SERVICES
UrbanFlow uses:
- Google Identity Services (authentication)
- Hugging Face Spaces (hosting and compute)
Use of these services is governed by their own terms and privacy policies. We are not responsible for the practices of these providers.
10. TERMINATION
We reserve the right to suspend or terminate access to UrbanFlow at any time, with or without notice, for violations of these Terms or misuse of the platform.
11. GOVERNING LAW
These Terms are governed by the laws of India. Any disputes shall be subject to the exclusive jurisdiction of the courts of Indore, Madhya Pradesh, India.
12. CHANGES TO THESE TERMS
We may revise these Terms at any time. Continued use of the platform after changes are posted constitutes acceptance of the revised Terms.
CONTACT
For any questions, concerns, or to report misuse:
Email: support.urbanflow365@gmail.com