presentation / index.html
caustino's picture
Update index.html
d766028 verified
<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Petition for Writ of Certiorari: McLaughlin v. Rowe</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/11.5.0/mermaid.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&amp;family=Inter:wght@300;400;500;600;700&amp;display=swap" rel="stylesheet"/>
<style>
:root {
--primary: #1a365d;
--secondary: #d69e2e;
--accent: #2c5282;
--neutral: #4a5568;
--base: #f7fafc;
--earth-dark: #2d3748;
--earth-medium: #744210;
--earth-light: #f7fafc;
}
body {
font-family: 'Inter', sans-serif;
background: linear-gradient(135deg, var(--base) 0%, #edf2f7 100%);
color: var(--earth-dark);
}
.serif-display {
font-family: 'Crimson Text', serif;
}
.hero-overlay {
background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(44, 82, 130, 0.8) 100%);
}
.toc-fixed {
position: fixed;
top: 2rem;
left: 2rem;
width: 280px;
height: calc(100vh - 4rem);
overflow-y: auto;
z-index: 50;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border: 1px solid rgba(215, 158, 46, 0.2);
}
.main-content {
margin-left: 320px;
padding: 2rem;
}
.citation-link {
color: var(--secondary);
text-decoration: none;
border-bottom: 1px dotted var(--secondary);
transition: all 0.2s ease;
}
.citation-link:hover {
background-color: rgba(215, 158, 46, 0.1);
border-bottom: 1px solid var(--secondary);
}
.section-divider {
height: 2px;
background: linear-gradient(90deg, var(--secondary) 0%, transparent 100%);
margin: 3rem 0;
}
.highlight-box {
background: linear-gradient(135deg, rgba(215, 158, 46, 0.05) 0%, rgba(44, 82, 130, 0.05) 100%);
border-left: 4px solid var(--secondary);
}
.legal-point {
background: rgba(26, 54, 93, 0.03);
border-left: 3px solid var(--primary);
}
@media (max-width: 1024px) {
.toc-fixed {
display: none;
}
.main-content {
margin-left: 0;
padding: 1rem;
}
.mermaid-control-btn:not(.reset-zoom) {
display: none;
}
.mermaid-controls {
top: auto;
bottom: 15px;
right: 15px;
}
}
.bento-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 2rem;
margin: 2rem 0;
}
@media (max-width: 768px) {
.bento-grid {
grid-template-columns: 1fr;
}
/* Adjust hero title font size for very small screens */
.hero-overlay h1 {
font-size: 2.5rem;
}
}
/* New Mermaid container styles */
.mermaid-container {
display: flex;
justify-content: center;
min-height: 300px;
max-height: 800px;
background: #ffffff;
border: 2px solid #e5e7eb;
border-radius: 12px;
padding: 30px;
margin: 30px 0;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
position: relative;
overflow: hidden;
}
.mermaid-container .mermaid {
width: 100%;
max-width: 100%;
height: 100%;
cursor: grab;
transition: transform 0.3s ease;
transform-origin: center center;
display: flex;
justify-content: center;
align-items: center;
touch-action: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.mermaid-container .mermaid svg {
max-width: 100%;
height: 100%;
display: block;
margin: 0 auto;
}
.mermaid-container .mermaid:active {
cursor: grabbing;
}
.mermaid-container.zoomed .mermaid {
height: 100%;
width: 100%;
cursor: grab;
}
.mermaid-controls {
position: absolute;
top: 15px;
right: 15px;
display: flex;
gap: 10px;
z-index: 20;
background: rgba(255, 255, 255, 0.95);
padding: 8px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.mermaid-control-btn {
background: #ffffff;
border: 1px solid #d1d5db;
border-radius: 6px;
padding: 10px;
cursor: pointer;
transition: all 0.2s ease;
color: #374151;
font-size: 14px;
min-width: 36px;
height: 36px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.mermaid-control-btn:hover {
background: #f8fafc;
border-color: #3b82f6;
color: #3b82f6;
transform: translateY(-1px);
}
.mermaid-control-btn:active {
transform: scale(0.95);
}
@media (max-width: 1024px) {
.mermaid-control-btn:not(.reset-zoom) {
display: none;
}
.mermaid-controls {
top: auto;
bottom: 15px;
right: 15px;
}
}
</style>
<base target="_blank">
</head>
<body>
<!-- Fixed Table of Contents -->
<nav class="toc-fixed rounded-lg shadow-lg p-6">
<h3 class="serif-display text-lg font-semibold text-gray-800 mb-4 border-b border-gray-200 pb-2">Table of Contents</h3>
<ul class="space-y-2 text-sm">
<li>
<a href="#executive-summary" class="block py-1 px-2 rounded hover:bg-gray-100 transition-colors">Executive Summary</a>
</li>
<li>
<a href="#constitutional-challenge" class="block py-1 px-2 rounded hover:bg-gray-100 transition-colors">Constitutional Challenge</a>
</li>
<li>
<a href="#brady-violations" class="block py-1 px-2 rounded hover:bg-gray-100 transition-colors">Brady v. Maryland Violations</a>
</li>
<li>
<a href="#due-process" class="block py-1 px-2 rounded hover:bg-gray-100 transition-colors">Due Process Violations</a>
</li>
<li>
<a href="#ada-section504" class="block py-1 px-2 rounded hover:bg-gray-100 transition-colors">ADA &amp; Section 504 Violations</a>
</li>
<li>
<a href="#municipal-liability" class="block py-1 px-2 rounded hover:bg-gray-100 transition-colors">Municipal Liability</a>
</li>
<li>
<a href="#technology-integration" class="block py-1 px-2 rounded hover:bg-gray-100 transition-colors">Technology Integration</a>
</li>
<li>
<a href="#legal-framework" class="block py-1 px-2 rounded hover:bg-gray-100 transition-colors">Legal Framework</a>
</li>
<li>
<a href="#questions-presented" class="block py-1 px-2 rounded hover:bg-gray-100 transition-colors">Questions Presented</a>
</li>
<li>
<a href="#technical-exhibits" class="block py-1 px-2 rounded hover:bg-gray-100 transition-colors">Technical Exhibits</a>
</li>
</ul>
</nav>
<!-- Main Content -->
<div class="main-content">
<!-- Hero Section with Bento Layout -->
<div class="bento-grid mb-12">
<div class="relative overflow-hidden rounded-lg shadow-xl">
<img src="https://kimi-web-img.moonshot.cn/img/www.usconstitution.net/55802dda2515e1b7fca955a57a4aa1fc5918b959.jpeg" alt="The Supreme Court building with dramatic lighting" class="w-full h-96 object-cover" size="large" aspect="wide" style="photo" query="Supreme Court building dramatic lighting" referrerpolicy="no-referrer" data-modified="1" data-score="0.00"/>
<div class="hero-overlay absolute inset-0 flex items-center justify-center">
<div class="text-center text-white p-8">
<h1 class="serif-display text-4xl md:text-6xl font-bold mb-4 italic leading-tight">
<span class="block">Petition for</span>
<span class="block text-yellow-300">Writ of Certiorari</span>
</h1>
<p class="text-xl md:text-2xl font-light opacity-90">
McLaughlin v. Rowe
</p>
<p class="text-lg mt-2 opacity-75">
Constitutional Challenge to Prosecutorial Misconduct &amp; Civil Rights Violations
</p>
</div>
</div>
</div>
<div class="space-y-6">
<div class="highlight-box p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-3 text-gray-800">
<i class="fas fa-balance-scale text-yellow-600 mr-2"></i>
Five Constitutional Questions
</h3>
<p class="text-sm text-gray-600 mb-3">Consolidated petitions addressing fundamental civil rights violations</p>
<ul class="text-sm space-y-1">
<li>• Brady v. Maryland procedural violations</li>
<li>• Substantive due process claims</li>
<li>• ADA Title II access violations</li>
<li>• Section 504 discrimination claims</li>
<li>• Municipal liability under Monell</li>
</ul>
</div>
<div class="legal-point p-4 rounded-lg">
<h4 class="font-semibold text-sm mb-2">Critical Legal Issue</h4>
<p class="text-xs text-gray-600">Prosecution&#39;s alleged failure to disclose exculpatory evidence in violation of <a href="#" class="citation-link">Brady v. Maryland, 373 U.S. 83 (1963)</a>
</p>
</div>
</div>
</div>
<!-- Executive Summary -->
<section id="executive-summary" class="mb-12">
<div class="highlight-box p-8 rounded-lg shadow-lg">
<h2 class="serif-display text-3xl font-bold mb-6 text-gray-800">Executive Summary</h2>
<div class="prose prose-lg max-w-none">
<p class="text-lg leading-relaxed mb-4">
This petition for a writ of certiorari presents a multifaceted constitutional challenge arising from alleged violations of due process under the Fifth and Fourteenth Amendments, focusing on the prosecution&#39;s failure to disclose exculpatory evidence as mandated by <a href="#" class="citation-link">Brady v. Maryland, 373 U.S. 83 (1963)</a>.
</p>
<p class="leading-relaxed mb-4">
The petitioner, Caustin McLaughlin, contends that his constitutional rights were violated during criminal proceedings in Baltimore City, Maryland, and that subsequent federal court proceedings failed to provide adequate remedies. The case consolidates five distinct but related constitutional questions, addressing the integrity of the criminal justice system, the accountability of law enforcement and prosecutorial entities, and the protection of individual civil rights in the face of alleged governmental misconduct.
</p>
<div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 mt-6">
<p class="italic font-medium">
&#34;The petition seeks to establish a clear precedent that reinforces the obligations of prosecutors under Brady and holds government entities accountable for policies or customs that permit such violations to occur, particularly in cases involving defendants with disabilities.&#34;
</p>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- Constitutional Challenge -->
<section id="constitutional-challenge" class="mb-12">
<h2 class="serif-display text-4xl font-bold mb-8 text-gray-800">Constitutional Challenge to Brady Violations</h2>
<div class="grid lg:grid-cols-3 gap-8 mb-8">
<div class="lg:col-span-2">
<p class="text-lg leading-relaxed mb-6">
The core of this constitutional challenge revolves around the prosecution&#39;s alleged failure to disclose exculpatory evidence, a principle established in <a href="#" class="citation-link">Brady v. Maryland</a>, and the subsequent arbitrary deprivation of liberty that resulted from these actions. The petition argues that the lower federal courts&#39; inadequate response to these violations necessitates Supreme Court intervention to clarify and reinforce fundamental constitutional protections.
</p>
<div class="bg-red-50 border-l-4 border-red-400 p-6 mb-6">
<h3 class="font-semibold text-lg mb-3 text-red-800">Key Allegation</h3>
<p class="text-red-700">
The prosecution deliberately withheld critical information that Jeffrey Callicutt, the key witness, had outstanding felony warrants at the time he initiated charges against the petitioner—material information that directly impeaches his credibility.
</p>
</div>
</div>
<div class="legal-point p-6 rounded-lg">
<h4 class="font-semibold mb-3">Legal Framework</h4>
<ul class="text-sm space-y-2">
<li><strong>Brady Standard:</strong> Disclosure of favorable evidence</li>
<li><strong>Materiality Test:</strong> Could affect outcome</li>
<li><strong>Due Process:</strong> Fifth &amp; Fourteenth Amendments</li>
<li><strong>Witness Credibility:</strong> Fundamental to fair trial</li>
</ul>
</div>
</div>
<div class="bento-grid mb-8">
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">Procedural Due Process Violation</h3>
<p class="text-gray-700 mb-4">
The prosecution&#39;s failure to disclose favorable impeachment evidence violates the petitioner&#39;s procedural due process rights under the Fifth and Fourteenth Amendments. This information was crucial for challenging the credibility of the key witness against him.
</p>
<div class="text-sm text-gray-600">
<strong>Impact:</strong> Deprived petitioner of meaningful opportunity to challenge evidence and present complete defense
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">Substantive Due Process</h3>
<p class="text-gray-700 mb-4">
Continued prosecution despite knowledge of witness&#39;s fugitive status constituted arbitrary deprivation of liberty without due process of law.
</p>
<div class="text-sm text-gray-600">
<strong>Systemic Issue:</strong> Lack of accountability mechanisms renders due process protections meaningless
</div>
</div>
</div>
<!-- Mermaid Diagram -->
<div class="bg-white p-6 rounded-lg shadow-lg mb-8">
<h3 class="serif-display text-xl font-semibold mb-4 text-center">Constitutional Violations Framework</h3>
<div class="mermaid-container">
<div class="mermaid-controls">
<button class="mermaid-control-btn zoom-in" title="放大">
<i class="fas fa-search-plus"></i>
</button>
<button class="mermaid-control-btn zoom-out" title="缩小">
<i class="fas fa-search-minus"></i>
</button>
<button class="mermaid-control-btn reset-zoom" title="重置">
<i class="fas fa-expand-arrows-alt"></i>
</button>
<button class="mermaid-control-btn fullscreen" title="全屏查看">
<i class="fas fa-expand"></i>
</button>
</div>
<div class="mermaid">
graph TD
A[&#34;Petitioner&#39;s Constitutional Rights&#34;] --&gt; B[&#34;Brady Violations&#34;]
A --&gt; C[&#34;Due Process Violations&#34;]
A --&gt; D[&#34;ADA &amp; Section 504 Violations&#34;]
B --&gt; B1[&#34;Withholding Impeachment Evidence&#34;]
B --&gt; B2[&#34;Witness Credibility Issues&#34;]
B --&gt; B3[&#34;Fair Trial Impacts&#34;]
C --&gt; C1[&#34;Procedural Due Process&#34;]
C --&gt; C2[&#34;Substantive Due Process&#34;]
C --&gt; C3[&#34;Arbitrary Liberty Deprivation&#34;]
D --&gt; D1[&#34;Accessibility Accommodations&#34;]
D --&gt; D2[&#34;Assistive Technology&#34;]
D --&gt; D3[&#34;Discrimination Claims&#34;]
style A fill:#d69e2e,stroke:#1a365d,stroke-width:2px,color:#fff
style B fill:#e53e3e,stroke:#1a365d,stroke-width:2px,color:#fff
style C fill:#3182ce,stroke:#1a365d,stroke-width:2px,color:#fff
style D fill:#38a169,stroke:#1a365d,stroke-width:2px,color:#fff
style B1 fill:#fc8181,stroke:#e53e3e,stroke-width:1px,color:#1a365d
style B2 fill:#fc8181,stroke:#e53e3e,stroke-width:1px,color:#1a365d
style B3 fill:#fc8181,stroke:#e53e3e,stroke-width:1px,color:#1a365d
style C1 fill:#90cdf4,stroke:#3182ce,stroke-width:1px,color:#1a365d
style C2 fill:#90cdf4,stroke:#3182ce,stroke-width:1px,color:#1a365d
style C3 fill:#90cdf4,stroke:#3182ce,stroke-width:1px,color:#1a365d
style D1 fill:#9ae6b4,stroke:#38a169,stroke-width:1px,color:#1a365d
style D2 fill:#9ae6b4,stroke:#38a169,stroke-width:1px,color:#1a365d
style D3 fill:#9ae6b4,stroke:#38a169,stroke-width:1px,color:#1a365d
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- Brady Violations Section -->
<section id="brady-violations" class="mb-12">
<h2 class="serif-display text-4xl font-bold mb-8 text-gray-800">Brady v. Maryland Violations</h2>
<div class="grid lg:grid-cols-2 gap-8 mb-8">
<div>
<h3 class="serif-display text-2xl font-semibold mb-4">Withholding of Favorable Impeachment Evidence</h3>
<p class="leading-relaxed mb-4">
The Petitioner&#39;s case presents a significant procedural due process violation under <a href="#" class="citation-link">Brady v. Maryland, 373 U.S. 83 (1963)</a>, which established the constitutional obligation of the prosecution to disclose evidence favorable to the accused.
</p>
<div class="bg-yellow-50 border border-yellow-200 p-4 rounded-lg mb-4">
<h4 class="font-semibold mb-2">Critical Withheld Evidence:</h4>
<ul class="text-sm space-y-1">
<li>• Outstanding felony warrants against Jeffrey Callicutt</li>
<li>• Fugitive status at time of initiating charges</li>
<li>• Evidence of fraud and perjury in complaint</li>
<li>• Information affecting witness credibility and bias</li>
</ul>
</div>
</div>
<div class="bg-gray-50 p-6 rounded-lg">
<h4 class="font-semibold mb-3">Materiality Standard</h4>
<p class="text-sm mb-4">
Under <a href="#" class="citation-link">United States v. Bagley, 473 U.S. 667 (1985)</a>, evidence is material if there is a reasonable probability that its disclosure would have changed the outcome of the proceedings.
</p>
<div class="text-xs text-gray-600">
<strong>Impact Assessment:</strong> The withheld evidence was crucial for impeaching the primary witness and demonstrating potential bias, motive to fabricate, and overall lack of credibility.
</div>
</div>
</div>
<div class="bg-white p-8 rounded-lg shadow-lg mb-8">
<h3 class="serif-display text-xl font-semibold mb-6">Impact on Right to Fair Trial</h3>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h4 class="font-semibold mb-3 text-red-700">Constitutional Violations</h4>
<ul class="text-sm space-y-2">
<li>• Deprived of opportunity to challenge key witness credibility</li>
<li>• Denied meaningful opportunity to present complete defense</li>
<li>• Violation of Fifth Amendment due process rights</li>
<li>• Violation of Fourteenth Amendment fair trial guarantees</li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-3 text-blue-700">Systemic Implications</h4>
<ul class="text-sm space-y-2">
<li>• Undermines adversarial system integrity</li>
<li>• Creates uneven playing field between prosecution and defense</li>
<li>• Perpetuates culture of prosecutorial impunity</li>
<li>• Threatens public confidence in justice system</li>
</ul>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- Due Process Section -->
<section id="due-process" class="mb-12">
<h2 class="serif-display text-4xl font-bold mb-8 text-gray-800">Substantive Due Process Violations</h2>
<div class="highlight-box p-8 rounded-lg shadow-lg mb-8">
<h3 class="serif-display text-2xl font-semibold mb-6">Arbitrary Deprivation of Liberty</h3>
<p class="text-lg leading-relaxed mb-6">
The continued prosecution of the Petitioner despite the prosecution&#39;s full knowledge of Callicutt&#39;s fugitive status constituted an arbitrary deprivation of liberty without due process of law. This claim goes beyond procedural requirements and challenges the fundamental fairness of governmental action.
</p>
<div class="grid md:grid-cols-3 gap-6">
<div class="text-center">
<div class="bg-red-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-exclamation-triangle text-red-600 text-xl"></i>
</div>
<h4 class="font-semibold mb-2">Arbitrary Action</h4>
<p class="text-sm text-gray-600">Government conduct lacking legitimate purpose or rational basis</p>
</div>
<div class="text-center">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-shield-alt text-blue-600 text-xl"></i>
</div>
<h4 class="font-semibold mb-2">Liberty Interest</h4>
<p class="text-sm text-gray-600">Fundamental right to be free from unwarranted governmental restraint</p>
</div>
<div class="text-center">
<div class="bg-yellow-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-balance-scale text-yellow-600 text-xl"></i>
</div>
<h4 class="font-semibold mb-2">Due Process</h4>
<p class="text-sm text-gray-600">Constitutional protection against arbitrary government action</p>
</div>
</div>
</div>
<div class="bg-red-50 border-l-4 border-red-400 p-6 mb-8">
<h4 class="font-semibold text-lg mb-3 text-red-800">Lack of Accountability Mechanisms</h4>
<p class="text-red-700 mb-4">
The Petitioner&#39;s case highlights a critical deficiency in the current system of accountability for law enforcement and prosecutors who engage in misconduct. Despite clear evidence of wrongdoing, lower federal courts failed to protect the Petitioner&#39;s liberty interests.
</p>
<div class="text-sm text-red-600">
<strong>Systemic Impact:</strong> Creates culture of impunity where officials violate constitutional rights without fear of reprisal, undermining democratic foundations.
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- ADA and Section 504 Section -->
<section id="ada-section504" class="mb-12">
<h2 class="serif-display text-4xl font-bold mb-8 text-gray-800">ADA and Section 504 Violations</h2>
<div class="bento-grid mb-8">
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">ADA Title II Violations</h3>
<p class="text-gray-700 mb-4">
Federal courts in the Eastern District of Virginia and Fourth Circuit Court of Appeals violated Title II of the ADA by failing to provide reasonable accommodations for the Petitioner&#39;s auditory processing deficits.
</p>
<div class="bg-blue-50 p-4 rounded-lg">
<h4 class="font-semibold mb-2 text-blue-800">Disability Accommodations Needed:</h4>
<ul class="text-sm text-blue-700 space-y-1">
<li>• Assistive listening devices</li>
<li>• Real-time captioning services</li>
<li>• Extended time accommodations</li>
<li>• Modified communication methods</li>
</ul>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">Section 504 Violations</h3>
<p class="text-gray-700 mb-4">
Federal courts violated Section 504 of the Rehabilitation Act by discriminating against the Petitioner in federally funded programs and activities due to his disability.
</p>
<div class="bg-green-50 p-4 rounded-lg">
<h4 class="font-semibold mb-2 text-green-800">Legal Requirements:</h4>
<ul class="text-sm text-green-700 space-y-1">
<li>• Reasonable modifications</li>
<li>• Equal opportunity to participate</li>
<li>• Effective communication</li>
<li>• Accessibility compliance</li>
</ul>
</div>
</div>
</div>
<div class="bg-white p-8 rounded-lg shadow-lg mb-8">
<h3 class="serif-display text-2xl font-semibold mb-6">Impact on Judicial Access</h3>
<div class="grid md:grid-cols-2 gap-8">
<div>
<h4 class="font-semibold mb-3 text-blue-700">Accessibility Barriers</h4>
<p class="text-sm mb-4">
The Petitioner&#39;s auditory processing deficits affected his ability to understand speech in courtroom environments, particularly without appropriate accommodations.
</p>
<div class="text-xs text-gray-600">
<strong>Result:</strong> Effectively denied meaningful access to courts and ability to participate in own defense
</div>
</div>
<div>
<h4 class="font-semibold mb-3 text-red-700">Systemic Exclusion</h4>
<p class="text-sm mb-4">
Failure to provide necessary accommodations created barriers that prevented full and equal participation in judicial proceedings.
</p>
<div class="text-xs text-gray-600">
<strong>Consequence:</strong> Violation of equal protection principles and disability rights laws
</div>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- Municipal Liability Section -->
<section id="municipal-liability" class="mb-12">
<h2 class="serif-display text-4xl font-bold mb-8 text-gray-800">Municipal Liability and Sovereign Immunity</h2>
<div class="grid lg:grid-cols-2 gap-8 mb-8">
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">Monell Municipal Liability</h3>
<p class="text-gray-700 mb-4">
The municipality of Baltimore is liable under <a href="#" class="citation-link">Monell v. Department of Social Services, 436 U.S. 658 (1978)</a> for policies or customs that led to constitutional violations.
</p>
<div class="bg-red-50 border border-red-200 p-4 rounded-lg">
<h4 class="font-semibold mb-2 text-red-800">Policy or Custom Evidence:</h4>
<ul class="text-sm text-red-700 space-y-1">
<li>• Failure to train and supervise prosecutors</li>
<li>• Inadequate policies to prevent Brady violations</li>
<li>• Pattern of constitutional violations</li>
<li>• Deliberate indifference to civil rights</li>
</ul>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">Ex Parte Young Exception</h3>
<p class="text-gray-700 mb-4">
Government officials are not entitled to sovereign immunity under <a href="#" class="citation-link">Ex Parte Young, 209 U.S. 123 (1908)</a> when their actions violate constitutional rights.
</p>
<div class="bg-blue-50 border border-blue-200 p-4 rounded-lg">
<h4 class="font-semibold mb-2 text-blue-800">Sovereign Immunity Challenge:</h4>
<ul class="text-sm text-blue-700 space-y-1">
<li>• Quasi-judicial immunity improperly invoked</li>
<li>• Actions outside scope of official duties</li>
<li>• Constitutional violations require accountability</li>
<li>• Injunctive relief available under Young</li>
</ul>
</div>
</div>
</div>
<div class="highlight-box p-8 rounded-lg shadow-lg">
<h3 class="serif-display text-2xl font-semibold mb-6">Need for Structural Equitable Remedies</h3>
<p class="text-lg leading-relaxed mb-6">
The systemic violations of constitutional rights in this case require structural equitable remedies beyond traditional monetary damages or injunctive relief.
</p>
<div class="grid md:grid-cols-3 gap-6">
<div class="text-center">
<div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-gavel text-purple-600 text-xl"></i>
</div>
<h4 class="font-semibold mb-2">Consent Decree</h4>
<p class="text-sm text-gray-600">Court-supervised reform of municipal policies and procedures</p>
</div>
<div class="text-center">
<div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-eye text-green-600 text-xl"></i>
</div>
<h4 class="font-semibold mb-2">Court Monitor</h4>
<p class="text-sm text-gray-600">Independent oversight of criminal justice system reforms</p>
</div>
<div class="text-center">
<div class="bg-orange-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-graduation-cap text-orange-600 text-xl"></i>
</div>
<h4 class="font-semibold mb-2">Training Programs</h4>
<p class="text-sm text-gray-600">Comprehensive education on constitutional obligations</p>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- Technology Integration Section -->
<section id="technology-integration" class="mb-12">
<h2 class="serif-display text-4xl font-bold mb-8 text-gray-800">Integration of Technology and Civil Rights</h2>
<div class="bento-grid mb-8">
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">Post-Quantum Cryptography</h3>
<p class="text-gray-700 mb-4">
Advanced PQC algorithms protect sensitive judicial data while ensuring compatibility with legacy forensic tools and maintaining universal accessibility standards.
</p>
<div class="bg-indigo-50 p-4 rounded-lg">
<h4 class="font-semibold mb-2 text-indigo-800">Technical Requirements:</h4>
<ul class="text-sm text-indigo-700 space-y-1">
<li>• Python: KyberPy==3.1.0, NTRUPrimeRef==1.2.4</li>
<li>• R: pqcrypto==0.8.6, latticeCryptoSuite==2.0.9</li>
<li>• Hardware: Intel i7+, 32GB RAM recommended</li>
<li>• Quantum-resistant encryption standards</li>
</ul>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">GovLLM Accessibility System</h3>
<p class="text-gray-700 mb-4">
Open-source generative language model specifically fine-tuned with ADA compliance features for enhanced judicial accessibility.
</p>
<div class="bg-teal-50 p-4 rounded-lg">
<h4 class="font-semibold mb-2 text-teal-800">Accessibility Features:</h4>
<ul class="text-sm text-teal-700 space-y-1">
<li>• Sign language animation and interpretation</li>
<li>• Dyslexia-friendly fonts and formatting</li>
<li>• Braille output streams and haptic feedback</li>
<li>• Multimodal interaction channels</li>
</ul>
</div>
</div>
</div>
<!-- Technology Framework Diagram -->
<div class="bg-white p-6 rounded-lg shadow-lg mb-8">
<h3 class="serif-display text-xl font-semibold mb-4 text-center">Technology Integration Framework</h3>
<div class="mermaid-container">
<div class="mermaid-controls">
<button class="mermaid-control-btn zoom-in" title="放大">
<i class="fas fa-search-plus"></i>
</button>
<button class="mermaid-control-btn zoom-out" title="缩小">
<i class="fas fa-search-minus"></i>
</button>
<button class="mermaid-control-btn reset-zoom" title="重置">
<i class="fas fa-expand-arrows-alt"></i>
</button>
<button class="mermaid-control-btn fullscreen" title="全屏查看">
<i class="fas fa-expand"></i>
</button>
</div>
<div class="mermaid">
graph LR
A[&#34;Judicial Data&#34;] --&gt; B[&#34;PQC Encryption&#34;]
B --&gt; C[&#34;Secure Processing&#34;]
C --&gt; D[&#34;Accessibility Layer&#34;]
D --&gt; E[&#34;GovLLM Interface&#34;]
E --&gt; F[&#34;User Accommodations&#34;]
G[&#34;Legacy Systems&#34;] --&gt; H[&#34;Compatibility Bridge&#34;]
H --&gt; C
F --&gt; I[&#34;Sign Language&#34;]
F --&gt; J[&#34;Real-time Captioning&#34;]
F --&gt; K[&#34;Dyslexia Support&#34;]
F --&gt; L[&#34;Braille Output&#34;]
style A fill:#e53e3e,stroke:#1a365d,stroke-width:2px,color:#fff
style B fill:#3182ce,stroke:#1a365d,stroke-width:2px,color:#fff
style C fill:#38a169,stroke:#1a365d,stroke-width:2px,color:#fff
style D fill:#d69e2e,stroke:#1a365d,stroke-width:2px,color:#fff
style E fill:#805ad5,stroke:#1a365d,stroke-width:2px,color:#fff
style F fill:#ed8936,stroke:#1a365d,stroke-width:2px,color:#fff
style G fill:#a0aec0,stroke:#1a365d,stroke-width:2px,color:#fff
style H fill:#48bb78,stroke:#1a365d,stroke-width:2px,color:#fff
style I fill:#f6ad55,stroke:#ed8936,stroke-width:1px,color:#1a365d
style J fill:#f6ad55,stroke:#ed8936,stroke-width:1px,color:#1a365d
style K fill:#f6ad55,stroke:#ed8936,stroke-width:1px,color:#1a365d
style L fill:#f6ad55,stroke:#ed8936,stroke-width:1px,color:#1a365d
</div>
</div>
</div>
<div class="bg-yellow-50 border-l-4 border-yellow-400 p-6">
<h4 class="font-semibold text-lg mb-3 text-yellow-800">Balancing Technology and Equity</h4>
<p class="text-yellow-700 mb-4">
While emerging technologies offer enhanced efficiency and accessibility, they must be implemented in ways that honor bedrock equality principles and do not create barriers for vulnerable populations.
</p>
<div class="text-sm text-yellow-600">
<strong>Key Consideration:</strong> New technologies must be guided by enlightened policy prescriptions that respect the inherent worth of each citizen irrespective of technological capability.
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- Legal Framework Section -->
<section id="legal-framework" class="mb-12">
<h2 class="serif-display text-4xl font-bold mb-8 text-gray-800">Legal Framework and Jurisdiction</h2>
<div class="grid lg:grid-cols-2 gap-8 mb-8">
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">Supreme Court Jurisdiction</h3>
<p class="text-gray-700 mb-4">
This Court has jurisdiction under <a href="#" class="citation-link">28 U.S.C. § 1257(a)</a> over appeals from the denial of writ of mandamus by the Fourth Circuit Court of Appeals.
</p>
<div class="bg-blue-50 p-4 rounded-lg">
<h4 class="font-semibold mb-2 text-blue-800">Jurisdictional Basis:</h4>
<ul class="text-sm text-blue-700 space-y-1">
<li>• Final judgment from court of appeals</li>
<li>• Federal question presented</li>
<li>• Constitutional issues raised</li>
<li>• National importance of questions</li>
</ul>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">Constitutional Provisions</h3>
<p class="text-gray-700 mb-4">
Multiple constitutional amendments provide the framework for protecting the Petitioner&#39;s fundamental rights.
</p>
<div class="bg-red-50 p-4 rounded-lg">
<h4 class="font-semibold mb-2 text-red-800">Invoked Amendments:</h4>
<ul class="text-sm text-red-700 space-y-1">
<li>• First Amendment - Fundamental rights</li>
<li>• Fourth Amendment - Due process</li>
<li>• Fifth Amendment - Due process</li>
<li>• Sixth Amendment - Fair trial</li>
<li>• Eighth Amendment - Cruel punishment</li>
<li>• Fourteenth Amendment - Equal protection</li>
</ul>
</div>
</div>
</div>
<div class="bg-white p-8 rounded-lg shadow-lg mb-8">
<h3 class="serif-display text-2xl font-semibold mb-6">Statutory Framework</h3>
<div class="grid md:grid-cols-2 gap-8">
<div>
<h4 class="font-semibold mb-3 text-green-700">Civil Rights Statutes</h4>
<ul class="text-sm space-y-2">
<li><strong>42 U.S.C. § 1983:</strong> Civil action for deprivation of rights</li>
<li><strong>42 U.S.C. § 12101:</strong> Americans with Disabilities Act</li>
<li><strong>29 U.S.C. § 794:</strong> Section 504 Rehabilitation Act</li>
<li><strong>42 U.S.C. § 12131:</strong> ADA Title II provisions</li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-3 text-purple-700">Federal Rules and Regulations</h4>
<ul class="text-sm space-y-2">
<li><strong>28 C.F.R. Part 35:</strong> ADA regulations</li>
<li><strong>28 C.F.R. Part 36:</strong> Public accommodation standards</li>
<li><strong>Fed. R. App. P. 10(c):</strong> Appellate procedure</li>
<li><strong>Fed. R. Civ. P. 12(b)(6):</strong> Motion to dismiss</li>
</ul>
</div>
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- Questions Presented Section -->
<section id="questions-presented" class="mb-12">
<h2 class="serif-display text-4xl font-bold mb-8 text-gray-800">Questions Presented for Review</h2>
<div class="space-y-6">
<div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-blue-500">
<h3 class="font-semibold text-lg mb-3 text-blue-800">
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded text-sm mr-2">1</span>
Brady Violations and Witness Credibility
</h3>
<p class="text-gray-700">
Whether lower federal courts violated Petitioner&#39;s constitutional rights under <a href="#" class="citation-link">Brady v. Maryland</a> when deliberately ignoring evidence undermining the credibility of witnesses involved in bringing unrelated criminal charges?
</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-green-500">
<h3 class="font-semibold text-lg mb-3 text-green-800">
<span class="bg-green-100 text-green-800 px-2 py-1 rounded text-sm mr-2">2</span>
ADA and Section 504 Compliance
</h3>
<p class="text-gray-700">
Do ongoing technical infrastructure upgrades implemented across national judiciary systems qualify automatically for exception from standard accessibility requirement compliance mandated by the ADA and Section 504?
</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-purple-500">
<h3 class="font-semibold text-lg mb-3 text-purple-800">
<span class="bg-purple-100 text-purple-800 px-2 py-1 rounded text-sm mr-2">3</span>
Deliberate Indifference and Bivens Remedies
</h3>
<p class="text-gray-700">
Does the deliberate failure of public agencies and courts to implement automated systems supporting accessible litigation platforms constitute deliberate indifference to disabled citizens&#39; equal justice under law thereby giving rise to <a href="#" class="citation-link">Bivens</a>-type remedies?
</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-orange-500">
<h3 class="font-semibold text-lg mb-3 text-orange-800">
<span class="bg-orange-100 text-orange-800 px-2 py-1 rounded text-sm mr-2">4</span>
Quantum-Resistant Cryptography and Universal Access
</h3>
<p class="text-gray-700">
When does the integration of quantum-resistant cryptographic methods into public legal databases trigger special obligations regarding universal access regardless of physical condition?
</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-red-500">
<h3 class="font-semibold text-lg mb-3 text-red-800">
<span class="bg-red-100 text-red-800 px-2 py-1 rounded text-sm mr-2">5</span>
Civil Rights Protections for Emerging Technologies
</h3>
<p class="text-gray-700">
Should emerging technologies designed specifically to enhance public access to judicial information become subject to the same civil rights protections governing traditional courthouse environments?
</p>
</div>
</div>
<div class="bg-yellow-50 border border-yellow-200 p-6 rounded-lg mt-8">
<h4 class="font-semibold text-lg mb-3 text-yellow-800">Supplementary Technological Questions</h4>
<p class="text-yellow-700 mb-4">
With advances in Post Quantum Cryptographic (PQC) algorithms increasingly embedded throughout digital infrastructure affecting all public agencies—including courts—the need emerges for uniform standards ensuring these newer forms still honor bedrock equality principles.
</p>
<div class="text-sm text-yellow-600">
<strong>Core Inquiry:</strong> How must courts treat newly developing technologies that promise increased efficiency yet threaten inadvertent exclusion for citizens unable to access advanced interfaces?
</div>
</div>
</section>
<div class="section-divider"></div>
<!-- Technical Exhibits Section -->
<section id="technical-exhibits" class="mb-12">
<h2 class="serif-display text-4xl font-bold mb-8 text-gray-800">Technical Exhibits and Supporting Documentation</h2>
<div class="grid lg:grid-cols-2 gap-8 mb-8">
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">PQC Algorithm Integrations</h3>
<p class="text-gray-700 mb-4">
Technical exhibits document the implementation of lattice-based cryptography resistant to quantum computer decryption attacks, ensuring continued confidentiality and integrity of sensitive judicial data.
</p>
<div class="bg-indigo-50 p-4 rounded-lg">
<h4 class="font-semibold mb-2 text-indigo-800">File Structure:</h4>
<ul class="text-sm text-indigo-700 space-y-1">
<li>
<code>/pqc_algorithms/hybrid_kyber_ntru/main.py</code>
</li>
<li>
<code>/testing/pqc_performance_benchmark_notebook.ipynb</code>
</li>
<li>
<code>/pipelines/data_validation_flow_r.r</code>
</li>
</ul>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="serif-display text-xl font-semibold mb-4">GovLLM Accessibility System</h3>
<p class="text-gray-700 mb-4">
Open-source generative language model specifically fine-tuned with ADA compliance features, enabling seamless interpretation and conversion across multiple accessibility formats.
</p>
<div class="bg-teal-50 p-4 rounded-lg">
<h4 class="font-semibold mb-2 text-teal-800">System Components:</h4>
<ul class="text-sm text-teal-700 space-y-1">
<li>
<code>/govllm/core/accessibility_adapters/tts_reader.py</code>
</li>
<li>
<code>/notebooks/narrative_translation_demo.ipynb</code>
</li>
<li>
<code>/services/accessibility_gateway_rest_api.py</code>
</li>
</ul>
</div>
</div>
</div>
<div class="bg-gray-50 p-8 rounded-lg shadow-lg">
<h3 class="serif-display text-2xl font-semibold mb-6">Appendices and Supporting Documents</h3>
<div class="grid md:grid-cols-2 gap-6">
<div>
<h4 class="font-semibold mb-3">Legal Proceedings Documentation</h4>
<ul class="text-sm space-y-2">
<li><strong>Appendix A:</strong> District Court Civil Docket Entries</li>
<li><strong>Appendix B:</strong> District Court Criminal Docket Entries</li>
<li><strong>Appendix C:</strong> Fourth Circuit Court of Appeals Order</li>
<li><strong>Appendix D:</strong> Certificate of Service</li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-3">Technical Implementation</h4>
<ul class="text-sm space-y-2">
<li><strong>Appendix E:</strong> Technical Exhibits Supporting Petitions</li>
<li><strong>Appendix F:</strong> Production-Ready Notebooks &amp; Architecture</li>
<li><strong>Build Instructions:</strong> Complete component lists and testing protocols</li>
<li><strong>Compliance Reports:</strong> Standards verification and licensing</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Conclusion Section -->
<section class="mb-12">
<div class="highlight-box p-8 rounded-lg shadow-lg">
<h2 class="serif-display text-3xl font-bold mb-6 text-center text-gray-800">Respectfully Submitted</h2>
<p class="text-lg text-center mb-6">
These consolidated petitions present fundamental questions of constitutional law that require Supreme Court intervention to protect individual rights, ensure judicial accountability, and establish clear precedent for emerging technological challenges in the justice system.
</p>
<div class="text-center">
<p class="italic text-gray-600">
Respectfully submitting five consolidated Petitions for Writ of Certiorari to Your Honors, each individually supported by extensive technical exhibits documenting prototype implementations currently undergoing peer-review prior to potential commercial deployment worldwide.
</p>
</div>
</div>
</section>
</div>
<script>
// Initialize Mermaid
document.addEventListener('DOMContentLoaded', function() {
mermaid.initialize({
startOnLoad: true,
theme: 'base',
themeVariables: {
primaryColor: '#d69e2e',
primaryTextColor: '#1a365d',
primaryBorderColor: '#1a365d',
lineColor: '#4a5568',
secondaryColor: '#f7fafc',
tertiaryColor: '#edf2f7',
background: '#ffffff',
mainBkg: '#ffffff',
secondBkg: '#f7fafc',
tertiaryBkg: '#edf2f7'
},
flowchart: {
htmlLabels: true,
curve: 'basis'
}
});
// Initialize Mermaid Controls for zoom and pan
initializeMermaidControls();
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// Initialize Mermaid Controls for zoom and pan
function initializeMermaidControls() {
const containers = document.querySelectorAll('.mermaid-container');
containers.forEach(container => {
const mermaidElement = container.querySelector('.mermaid');
let scale = 1;
let isDragging = false;
let startX, startY, translateX = 0, translateY = 0;
// 触摸相关状态
let isTouch = false;
let touchStartTime = 0;
let initialDistance = 0;
let initialScale = 1;
let isPinching = false;
// Zoom controls
const zoomInBtn = container.querySelector('.zoom-in');
const zoomOutBtn = container.querySelector('.zoom-out');
const resetBtn = container.querySelector('.reset-zoom');
const fullscreenBtn = container.querySelector('.fullscreen');
function updateTransform() {
mermaidElement.style.transform = `translate(${translateX}px, ${translateY}px) scale(${scale})`;
if (scale > 1) {
container.classList.add('zoomed');
} else {
container.classList.remove('zoomed');
}
mermaidElement.style.cursor = isDragging ? 'grabbing' : 'grab';
}
if (zoomInBtn) {
zoomInBtn.addEventListener('click', () => {
scale = Math.min(scale * 1.25, 4);
updateTransform();
});
}
if (zoomOutBtn) {
zoomOutBtn.addEventListener('click', () => {
scale = Math.max(scale / 1.25, 0.3);
if (scale <= 1) {
translateX = 0;
translateY = 0;
}
updateTransform();
});
}
if (resetBtn) {
resetBtn.addEventListener('click', () => {
scale = 1;
translateX = 0;
translateY = 0;
updateTransform();
});
}
if (fullscreenBtn) {
fullscreenBtn.addEventListener('click', () => {
if (container.requestFullscreen) {
container.requestFullscreen();
} else if (container.webkitRequestFullscreen) {
container.webkitRequestFullscreen();
} else if (container.msRequestFullscreen) {
container.msRequestFullscreen();
}
});
}
// Mouse Events
mermaidElement.addEventListener('mousedown', (e) => {
if (isTouch) return; // 如果是触摸设备,忽略鼠标事件
isDragging = true;
startX = e.clientX - translateX;
startY = e.clientY - translateY;
mermaidElement.style.cursor = 'grabbing';
updateTransform();
e.preventDefault();
});
document.addEventListener('mousemove', (e) => {
if (isDragging && !isTouch) {
translateX = e.clientX - startX;
translateY = e.clientY - startY;
updateTransform();
}
});
document.addEventListener('mouseup', () => {
if (isDragging && !isTouch) {
isDragging = false;
mermaidElement.style.cursor = 'grab';
updateTransform();
}
});
document.addEventListener('mouseleave', () => {
if (isDragging && !isTouch) {
isDragging = false;
mermaidElement.style.cursor = 'grab';
updateTransform();
}
});
// 获取两点之间的距离
function getTouchDistance(touch1, touch2) {
return Math.hypot(
touch2.clientX - touch1.clientX,
touch2.clientY - touch1.clientY
);
}
// Touch Events - 触摸事件处理
mermaidElement.addEventListener('touchstart', (e) => {
isTouch = true;
touchStartTime = Date.now();
if (e.touches.length === 1) {
// 单指拖动
isPinching = false;
isDragging = true;
const touch = e.touches[0];
startX = touch.clientX - translateX;
startY = touch.clientY - translateY;
} else if (e.touches.length === 2) {
// 双指缩放
isPinching = true;
isDragging = false;
const touch1 = e.touches[0];
const touch2 = e.touches[1];
initialDistance = getTouchDistance(touch1, touch2);
initialScale = scale;
}
e.preventDefault();
}, { passive: false });
mermaidElement.addEventListener('touchmove', (e) => {
if (e.touches.length === 1 && isDragging && !isPinching) {
// 单指拖动
const touch = e.touches[0];
translateX = touch.clientX - startX;
translateY = touch.clientY - startY;
updateTransform();
} else if (e.touches.length === 2 && isPinching) {
// 双指缩放
const touch1 = e.touches[0];
const touch2 = e.touches[1];
const currentDistance = getTouchDistance(touch1, touch2);
if (initialDistance > 0) {
const newScale = Math.min(Math.max(
initialScale * (currentDistance / initialDistance),
0.3
), 4);
scale = newScale;
updateTransform();
}
}
e.preventDefault();
}, { passive: false });
mermaidElement.addEventListener('touchend', (e) => {
// 重置状态
if (e.touches.length === 0) {
isDragging = false;
isPinching = false;
initialDistance = 0;
// 延迟重置isTouch,避免鼠标事件立即触发
setTimeout(() => {
isTouch = false;
}, 100);
} else if (e.touches.length === 1 && isPinching) {
// 从双指变为单指,切换为拖动模式
isPinching = false;
isDragging = true;
const touch = e.touches[0];
startX = touch.clientX - translateX;
startY = touch.clientY - translateY;
}
updateTransform();
});
mermaidElement.addEventListener('touchcancel', (e) => {
isDragging = false;
isPinching = false;
initialDistance = 0;
setTimeout(() => {
isTouch = false;
}, 100);
updateTransform();
});
// Enhanced wheel zoom with better center point handling
container.addEventListener('wheel', (e) => {
e.preventDefault();
const rect = container.getBoundingClientRect();
const centerX = rect.width / 2;
const centerY = rect.height / 2;
const delta = e.deltaY > 0 ? 0.9 : 1.1;
const newScale = Math.min(Math.max(scale * delta, 0.3), 4);
// Adjust translation to zoom towards center
if (newScale !== scale) {
const scaleDiff = newScale / scale;
translateX = translateX * scaleDiff;
translateY = translateY * scaleDiff;
scale = newScale;
if (scale <= 1) {
translateX = 0;
translateY = 0;
}
updateTransform();
}
});
// Initialize display
updateTransform();
});
}
</script>
</body></html>