How Senior Advocates Prepare a Case Chronology Before Court | EduLaw Advocate Playbook 033
EduLaw EditorialAdvocate PlaybookLearn how advocates can turn scattered case papers into a court-ready chronology, identify limitation risks, track admissions, organise procedural history, and prepare a five-date hearing note.
Edu Law Home Advocate Playbook Store Contents Advocate Playbook 033 How Senior Advocates Prepare a Case Chronology Before Court A file gives you documents. A chronology gives you the case. ⏱ 24–28 min read Updated to law as on 28 June 2026 For Indian litigation practice This guide is for legal education and practical litigation preparation. Filing requirements and limitation calculations must be verified for the specific court and statute. Read the Playbook Download Chronology Template 08.05.2024 Admission — email 21.06.2024 Demand notice 04.07.2024 Reply — new defence Fact → proof → consequence. On this page The Question That Exposes an Unprepared Brief Your brief has 700 pages. There are emails, invoices, notices, previous orders, WhatsApp screenshots, pleadings, and contradictory versions. The judge asks one question: "What happened first?" That question, asked plainly from the bench, is where unprepared briefs come apart. An advocate who has only read the file front to back will pause, flip pages, and lose the room. An advocate who has built a chronology answers in one sentence and moves straight to the point that matters. It helps to be precise about what a chronology actually is, because the term gets used loosely in chambers. A chronology is not a date list — a bare sequence of dates with no context is close to useless in argument. A chronology is not a document index either — knowing where a document sits in the paper-book tells you nothing about why it matters. A chronology is the advocate's first structured theory of the case: an ordered account of what happened, supported by what proves it, tested against what the other side says, and pointed toward the relief being sought. Document Dump Email chain, p.44–78 Invoice, undated copy WhatsApp screenshot Legal notice, p.92 Reply, p.101 Purchase order Delivery challan Interim order, p.140 Court Chronology Contract executed — obligation begins Payment falls due — breach crystallises Admission of liability — decisive document Demand notice and reply — defence first appears Suit filed — relief sought today What a Court-Ready Chronology Actually Does A well-built chronology is not decorative. It performs five specific functions in preparation and at hearing. Click each card to see how. 01 Clarifies cause of action Tap to expand By laying out events in order, a chronology forces you to identify the precise moment the right to sue, or the right to the relief claimed, actually arose — a question that pleadings drafted in a hurry often leave fuzzy. 02 Reveals limitation risk Tap to expand Ordering dates side by side makes gaps and delays visible early, so limitation issues can be examined and addressed before filing rather than discovered by the opposite side or the court. 03 Links fact to proof Tap to expand Every factual assertion in a chronology should point to a page or exhibit. This discipline prevents the advocate from arguing facts that cannot actually be proved from the record. 04 Identifies admissions and contradictions Tap to expand Placing the opponent's contemporaneous statements next to their later pleaded defence exposes inconsistencies that are far more persuasive in court than any adjective the advocate could use. 05 Narrows oral arguments Tap to expand A judge's attention is finite. A chronology lets the advocate select the handful of dates that actually decide the matter, instead of taking the court through the entire record page by page. Reality check Chronology does not decide limitation by itself. It helps identify dates that require legal calculation under the relevant statute. The Difference Between a Date List and a Strategic Chronology The same set of facts can be recorded two ways. One is a placeholder. The other is an instrument the court can be walked through. Toggle to see why the difference matters legally, not just stylistically. Show legal consequence Weak date list Court-ready chronology 08.05.2024 — Email received. 08.05.2024 — Defendant admitted outstanding liability in email; no defect allegation was made; relevant to admission and later contradiction. Why it matters: a contemporaneous admission, tested against a later-raised defence, is often more persuasive than the pleaded defence itself — but whether it also affects limitation depends separately on whether it meets the requirements of Section 18 of the Limitation Act, 1963. 21.06.2024 — Legal notice sent. 21.06.2024 — Demand notice issued after admitted liability; relevant to crystallisation of dispute and limitation analysis, subject to the governing cause of action and statute. Why it matters: a demand notice is often the moment a dispute becomes definite for pleading purposes, but it does not by itself fix or extend limitation — the governing article of the Limitation Act and the underlying cause of action must be checked independently. The Seven-Column Chronology Format This is the working format used by many chambers to prepare a hearing-ready chronology. It is not a statutory format — it is a practical structure that keeps fact, proof, and procedural consequence in the same line of sight. Illustrative fictional example. Not a real dispute. Show only decisive events Show admissions Show procedural steps Convert to hearing note Date Event Source / Page Legal significance Opponent's version Your response Follow-up 08.05.2024 Defendant admits ₹18 lakh due Admission Email, p. 78 Possible admission "Subject to reconciliation" No qualification appears in the email Use in pleadings and hearing note 21.06.2024 Demand notice issued Procedure Notice, p. 92 Demand / default context Denial of receipt Courier and email delivery proof Mark service documents 04.07.2024 Reply received Decisive Reply, p. 101 First articulated defence Defective goods allegation No contemporaneous complaint found Compare against earlier correspondence Three-Track Method: Facts, Proof, Procedure Keeping facts, the proof behind them, and the procedural history in three separate but linked lanes prevents the common error of treating a procedural step (like a notice) as if it were the fact itself (like the breach). Click an item to trace how it connects across the three lanes. Facts Contract executed Goods delivered Payment due Breach alleged Proof Purchase order Delivery challan Invoice Admission email Procedure Demand notice Reply Suit Interim order Trace "Payment default" Tracing highlights how invoice → notice → reply → cause-of-action analysis → hearing point connect across the three lanes. The Four Critical Dates Four categories of date deserve special attention in every chronology, because getting them wrong can be fatal to the case regardless of how well the rest of the record is organised. 1. Limitation trigger Definition The event that starts the period of limitation for the specific suit, appeal, or application under the applicable article of the Limitation Act, 1963, or a special statute. Why it matters Get this date wrong and the entire proceeding can be barred under Section 3 of the Limitation Act, 1963, which requires dismissal of a suit, appeal, or application filed beyond the prescribed period, even if limitation is not raised as a defence. Do not assume Do not assume the trigger date is the date of the wrong itself — for many causes of action it is a later date tied to knowledge, demand, or refusal. Advocate's question "Which event gives rise to the right to sue or seek the relevant remedy?" 2. Knowledge date Definition The date on which the litigant actually learned, or with reasonable diligence ought to have learned, of the wrong, order, refusal, or breach. Why it matters In writ jurisdiction particularly, knowledge (rather than a fixed statutory period) often anchors the court's assessment of delay and laches, since Article 226 petitions are not governed by a fixed limitation period under the Limitation Act. Do not assume Do not assume knowledge and occurrence are the same date — a client may have been unaware of an order or breach for a material period. Advocate's question "When did the litigant first know, or reasonably have reason to know, of the wrong, order, refusal, or breach?" 3. Admission / acknowledgment Definition A document or statement that may satisfy the statutory conditions under Sections 18 or 19 of the Limitation Act, 1963, so as to give a fresh starting point for limitation. Why it matters An acknowledgment under Section 18 must be in writing, signed by the party against whom the right is claimed, and made before expiry of the then-applicable limitation period; a part-payment under Section 19 must similarly be evidenced in the manner the section requires. Neither applies automatically merely because a document uses conciliatory language. Do not assume Do not assume an email, WhatsApp message, or oral statement automatically qualifies — signature, authority to bind the party, timing, and the precise wording must all be verified. Advocate's question "Does the document satisfy the statutory requirements and timing necessary for it to affect limitation? Verify language, signature, authority, date, and applicable law." 4. Last procedural step Definition Any earlier proceeding, representation, order, service event, payment, or hearing that changes the present procedural posture of the matter. Why it matters Prior proceedings can matter to exclusion of time under Sections 12 or 14 of the Limitation Act, 1963, to res judicata, or simply to what relief remains available. Do not assume Do not assume an earlier proceeding is irrelevant just because it did not result in a final decision — abandoned or withdrawn proceedings can still be legally significant. Advocate's question "Was there an earlier proceeding, representation, order, service event, payment, or hearing that changes the present procedural posture?" Limitation warning panel Do not write "within limitation" until you have checked the relevant limitation article or special statute, the starting point, exclusions, condonation rules, and forum-specific provisions. Section 3, Limitation Act, 1963 Requires the court to dismiss a suit, appeal, or application instituted after the prescribed period, whether or not limitation is set up as a defence, subject to the provisions of Sections 4 to 24. Section 5, Limitation Act, 1963 Permits condonation of delay, on sufficient cause, only for appeals and specified applications — it does not apply to suits, and it is not a universal cure for a delayed filing. Section 12, Limitation Act, 1963 Excludes, in computing limitation, the time requisite for obtaining copies of the judgment, decree, order, or award appealed from or sought to be set aside, subject to the section's specific conditions. Section 14, Limitation Act, 1963 Excludes time spent bona fide prosecuting, with due diligence, a civil proceeding in a court that ultimately lacked jurisdiction or was unable to entertain it — this is fact-sensitive and not automatic. Sections 18 and 19, Limitation Act, 1963 (caution) Section 18 (acknowledgment) and Section 19 (part-payment) can give a fresh starting point for limitation, but only where the statutory conditions on writing, signature, timing, and content are strictly satisfied. These sections must never be applied mechanically to informal correspondence. Matter-Wise Date Map The dates that matter, and the documents that prove them, differ by the type of matter. Use these tabs as a starting checklist, not a final answer — court-specific and statute-specific verification is still required in every case. Civil / Commercial Writ Criminal / Bail Arbitration Dates to mark Contract date Performance date Due date Breach date Demand and reply Admission / part payment Filing date Interim orders Documents to locate Signed contract / PO Delivery or performance proof Invoices and statements of account Correspondence trail Court-fee and filing receipts Immediate red flags Gaps of months between breach and notice No pre-institution mediation record where required under Section 12A of the Commercial Courts Act, 2015 for suits not seeking urgent interim relief Unsigned or undated key documents Hearing use Anchor the cause of action to one clear date Use admissions to counter later defences Flag Order VI Rule 2 CPC compliance — material facts, not evidence, in pleadings Dates to mark Representation date Statutory deadline, if any Impugned order date Date of communication of the order Date of knowledge Alternate remedy exhausted or bypassed Documents to locate Copy of impugned order Proof of date of communication or receipt Representation and any reply Record of alternate remedy pursued Immediate red flags Long unexplained gap between knowledge and filing No documentary proof of date of communication Alternate statutory remedy not addressed Hearing use Article 226 petitions are not governed by a fixed statutory limitation period, but courts apply the doctrine of delay and laches — the chronology should make the explanation for any delay explicit and documented. Caution Bail filing requirements and documents vary by court. Check the latest High Court practice directions, the applicable BNSS provisions, prior bail orders, custody records, and case-specific documents. Dates to mark Incident date FIR date (Section 173, BNSS, 2023) Arrest date Remand dates Chargesheet date (Section 193, BNSS, 2023) Cognizance / charge dates Custody period Previous bail orders Documents to locate FIR copy Remand orders Chargesheet / final report Prior bail orders (regular or anticipatory) Custody certificate from jail authorities Immediate red flags Default bail eligibility under Section 187(3), BNSS, if the chargesheet is not filed within the prescribed period Discrepancy between FIR date and arrest date Unaddressed prior bail rejection Hearing use Regular bail falls under Sections 478–496, BNSS, with High Court/Sessions Court powers under Section 483; anticipatory bail falls under Section 482, BNSS. Always verify the current position against custody records and prior orders before drafting bail grounds. Caution Do not calculate Section 34 limitation casually. Verify the applicable statutory wording, date of receipt, exclusions if any, and current binding precedent. Dates to mark Arbitration agreement Invocation notice Appointment correspondence Tribunal constitution Procedural orders Award date Receipt of signed award Section 34 filing analysis Documents to locate Arbitration clause / agreement Invocation notice with proof of service Signed and delivered copy of the award, as required under Section 31(5), Arbitration and Conciliation Act, 1996 Proof of date of receipt of the signed award Immediate red flags Confusion between date of the award and date of receipt of the signed award — Section 34(3) runs from receipt, not from pronouncement Application filed beyond three months plus the further thirty-day condonable period under the proviso to Section 34(3) Hearing use / forum-specific note Court-specific: the Delhi High Court, by Notification No. 910/Rules/DHC dated 07.09.2020, requires petitions under Sections 9, 34 and 37 of the Arbitration and Conciliation Act, 1996 to be accompanied by a synopsis and list of dates. This is a Delhi High Court practice requirement, not a pan-India rule, and the current position and any successor rules must be checked before filing. Admissions, Silence, and Contradictions Some of the most valuable material in a chronology sits in what a party said early, what a party did not say when it had the opportunity, and what a party says later that does not match. Use the switch below to examine a fictional sequence through each lens. Admission Silence Contradiction Illustrative fictional example. Not a real dispute. 08 May "We will clear the outstanding balance next week." 14 June "Accounts are being reconciled." After filing "No goods were supplied." What may amount to an admission The 8 May statement acknowledges an outstanding balance without qualification. Depending on its precise wording, authorship, and authority, it may be usable as an admission for pleading and argument purposes. Whether it also satisfies Section 18 of the Limitation Act, 1963 for limitation purposes is a separate question requiring the signature, timing, and content conditions of that section to be independently checked. Why silence may matter depending on context Between 14 June and the filing of the written statement, no complaint about defective goods appears anywhere in the correspondence. This silence is not automatically an admission of no defect — but it is a fact that can be tested against the later-raised defence, and its weight depends on context, the pleadings, the parties' legal relationship, and whether there was a genuine opportunity to raise the point earlier. How later defences can be tested against contemporaneous record The defence of "no goods supplied," raised only after filing, can be tested against the 8 May and 14 June statements, which are inconsistent with a no-supply position. A chronology makes this contradiction visible without requiring argumentative language — the dates speak for themselves. Advocate's duty Why advocates must disclose adverse material and avoid selective chronology: a chronology built by hiding inconvenient dates is not a litigation strategy, it is a liability that surfaces the moment opposing counsel produces the missing document. Silence is not automatically an admission. Its evidentiary significance depends on the context, pleadings, legal relationship, opportunity to respond, and governing law. The Five-Date Hearing Note Once the chronology is built, most matters can be opened before the court through five decisive dates. Fill the fields below to generate a printable hearing note. Origin of obligation (date + fact) Breach / adverse event (date + fact) Strongest document (date + fact) Opponent contradiction (date + fact) Relief sought today (date + fact) Generate hearing note Load sample Reset Copy Print How to Use a Chronology in Court Building the chronology is half the work. Using it economically at the podium is the other half. Open with the issue, not the entire record State in one or two sentences what the case is about before reaching for a single document. Identify the five decisive dates Tell the court up front that the matter can be understood through a handful of dates, and name them. Take the court to the document page only when required Do not read out every document. Go to the page only when the date or content is contested or pivotal. Use the opponent's chronology against their later explanation Where the other side's own contemporaneous record contradicts their present defence, let that comparison do the persuading. End with the relief and why the chronology supports it Close by connecting the sequence of dates directly to the specific relief prayed for. Do not do this "Let me take the Court through the entire record." Do this instead "Please see the contemporaneous email dated [date]. It records [fact]. The later defence first appears only in [later document]." Filing and Document Management Toolkit Before a matter is filed or a hearing note goes to senior counsel, run the chronology and the file against this checklist. Final chronology reviewed against pleadings Every date linked to source/page Adverse documents included Limitation checked independently Previous proceedings checked Annexure numbering matched PDF bookmarks created Searchable PDF prepared Local filing rules checked Court-specific synopsis/list-of-dates requirement checked Court-specific rules — expand for the caution note Always verify the latest rules, circulars and registry directions of the relevant court. Requirements differ by forum and can change. For example, the Delhi High Court has, by Notification No. 910/Rules/DHC dated 07.09.2020, required petitions under Sections 9, 34 and 37 of the Arbitration and Conciliation Act, 1996 to carry a synopsis and list of dates, and the Supreme Court Rules, 2013 (Order XXI) similarly require a synopsis and list of dates as part of a Special Leave Petition. Neither of these is an all-India rule applicable to every court and every case type — treat them as examples of how forum-specific requirements work, and check the current position for the court you are actually filing in. Downloadable Chronology Template A printable, editable chronology template is available as a modal on this page — no file download or account required. It includes case details fields and the full seven-column chronology format, with options to print, copy as text, or download as a plain text file. Open Chronology Template Frequently Asked Questions Is a chronology the same as a list of dates? No. A list of dates is a bare sequence of dates and events. A chronology is a curated document that links each date to a source, its legal significance, the opponent's version, and its use at hearing. Some courts and forums additionally require a formal "synopsis and list of dates" as a filing document — this is a separate, forum-specific procedural requirement and should not be confused with the advocate's working chronology built for case strategy. Should a chronology include adverse documents? Yes. A chronology that omits adverse material is not a chronology, it is advocacy theatre that will collapse the first time opposing counsel or the court points to a document you left out. Professional obligations and basic litigation discipline require that adverse dates and documents be identified internally, even if they are addressed rather than concealed in argument. How many dates should I argue in court? There is no fixed number mandated by law, but experienced advocates often compress oral argument around a small set of decisive dates — commonly framed as a five-date structure — so the court can follow the narrative without wading through the entire record. The right number depends on the complexity of the matter and the forum's practice. Can an email affect limitation? An email may be relevant to limitation only if it independently satisfies the statutory requirements for acknowledgment or part-payment under Sections 18 and 19 of the Limitation Act, 1963, or if it is otherwise relevant to when a cause of action or knowledge arose. Whether a particular email qualifies depends on its language, whether it admits a subsisting liability, whether it is signed or otherwise attributable to the person against whom it is used, and its timing relative to the limitation period. This must be verified on the specific facts and is not a matter of assumption. Does every chronology need a limitation calculation? Every chronology should flag the dates that are relevant to limitation, but the actual limitation calculation is a separate legal exercise governed by the specific article of the Limitation Act or special statute that applies to the cause of action, along with any applicable exclusions or condonation provisions. The chronology is an organising tool that surfaces the dates; it does not replace the calculation. How should I prepare a chronology for bail? A bail chronology should track the incident date, FIR date, arrest date, remand history, chargesheet date, and any prior bail orders, but the filing requirements, applicable BNSS provisions, custody records, and case-specific facts must be verified against the current practice directions of the concerned High Court or Sessions Court before filing. Generic bail templates should never substitute for this verification. What is the difference between fact, proof, and procedure? A fact is what is alleged to have happened (for example, a breach of contract). Proof is the document or evidence that supports that fact (for example, an invoice or admission email). Procedure is the litigation history around that fact (for example, a demand notice, reply, or interim order). A strong chronology keeps these three tracks distinct so the advocate can test each fact against its proof and trace its procedural consequence. Should a chronology be annexed with pleadings? This depends entirely on the forum. Some courts and case types require a formal synopsis and list of dates to accompany filings — for instance, Special Leave Petitions before the Supreme Court are required under the Supreme Court Rules to include a synopsis and list of dates, and the Delhi High Court has issued a specific notification requiring petitions under Sections 9, 34 and 37 of the Arbitration and Conciliation Act, 1996 to be accompanied by a synopsis and list of dates. Other courts and case types may not impose this requirement. The current rules of the specific court and registry must always be checked. How do I handle missing documents in a chronology? Mark the gap honestly rather than papering over it. Note the date range in which a document is expected to exist, note what is missing, and note what steps are being taken to trace it. An honest gap is manageable at hearing; a chronology that pretends a missing document does not matter is a risk that can surface under cross-examination or judicial questioning. Should senior counsel receive the entire file or a hearing note first? Practice varies by chamber, but many senior advocates prefer a compact hearing note or chronology first, with the full file available for reference, because it allows faster orientation before a hearing. The chronology is a briefing tool, not a substitute for the senior advocate's own reading of the pleadings and key documents. The Senior's Chronology Checklist A final pass before the matter is called. Have I identified the actual dispute trigger? Have I marked limitation and knowledge dates? Does every row have a document/page reference? Have I separated facts, proof and procedural history? Have I included adverse documents? Have I checked previous proceedings, orders and admissions? Can I explain the matter through five dates? Does chronology match pleadings, affidavit and prayer? Is the PDF bookmarked and hearing-ready? Have I checked the court's current filing rules? Good chronology. Better pleadings. Better hearings. Sources and Legal Verification Every statutory and procedural proposition in this guide has been checked against the following primary and official sources as on 28 June 2026. Court-specific requirements are marked clearly as such and should be re-verified against the relevant registry before filing. The Limitation Act, 1963 (Sections 3, 5, 12, 14, 18, 19) India Code — Legislative Department, Ministry of Law and Justice Primary statutory text governing bar of limitation (Section 3), condonation for appeals and applications only (Section 5), exclusion of time for obtaining copies (Section 12), exclusion for bona fide proceedings in a wrong court (Section 14), and acknowledgment/part-payment (Sections 18 and 19). View on India Code ↗ Checked: 28 Jun 2026 The Code of Civil Procedure, 1908 (Order VI Rule 2) India Code — Legislative Department, Ministry of Law and Justice Requires every pleading to state material facts on which the party relies, and not the evidence by which those facts are to be proved — the statutory basis for keeping "fact" distinct from "proof" in a chronology. View on India Code ↗ Checked: 28 Jun 2026 The Arbitration and Conciliation Act, 1996 (Section 34, Section 31(5)) India Code — Legislative Department, Ministry of Law and Justice Section 34(3) prescribes three months from the date of receipt of the arbitral award (with a further condonable thirty days on sufficient cause) to apply for setting aside; Section 31(5) requires a signed copy of the award to be delivered to each party, which is the operative date for computing receipt. View on India Code ↗ Checked: 28 Jun 2026 The Commercial Courts Act, 2015 (Section 12A, Statement of Truth, Order XV-A) India Code — Legislative Department, Ministry of Law and Justice Section 12A requires pre-institution mediation for commercial suits not seeking urgent interim relief; the Act also mandates a Statement of Truth for pleadings in commercial suits and introduces Case Management Hearings under Order XV-A of the CPC schedule. View on India Code ↗ Checked: 28 Jun 2026 Supreme Court Rules, 2013 and amendments (Order XXI — synopsis and list of dates for SLPs) Supreme Court of India — Official website The Supreme Court Rules, 2013 prescribe, under Order XXI, that a Special Leave Petition be accompanied by a synopsis and list of dates. The Rules have been amended by gazette notifications dated 16.07.2024, 05.11.2024, 07.03.2025, 21.04.2025, and 14.06.2025 — the current consolidated text and all amendments should be checked directly on the Supreme Court's website before relying on any specific rule number. View on sci.gov.in ↗ Checked: 28 Jun 2026 Delhi High Court — Notification No. 910/Rules/DHC dated 07.09.2020 (court-specific) High Court of Delhi — Notifications & Practice Directions Requires that petitions under Sections 9, 34 and 37 of the Arbitration and Conciliation Act, 1996 filed before the Delhi High Court be accompanied by a synopsis and list of dates. This is a Delhi High Court-specific practice direction and does not apply to every court in India; the Delhi High Court has since also circulated draft Arbitration Rules, 2023 addressing similar requirements, and the current position should be checked on the Court's website. View on delhihighcourt.nic.in ↗ Checked: 28 Jun 2026 Bharatiya Nagarik Suraksha Sanhita, 2023 (Sections 173, 187, 193, 478–496, 482, 483) India Code — Legislative Department, Ministry of Law and Justice Governs FIR registration (Section 173), default bail on delayed chargesheet (Section 187), the police report on completion of investigation (Section 193), the general bail chapter (Sections 478–496), anticipatory bail (Section 482), and High Court/Sessions Court bail powers (Section 483), in force from 1 July 2024 in place of the Code of Criminal Procedure, 1973. View on India Code ↗ Checked: 28 Jun 2026 A note on how this guide was verified Every statutory proposition above was checked against India Code, the Supreme Court of India's official website, or the Delhi High Court's official notifications page. Case-specific rulings referenced in passing (for instance, on the receipt of a signed arbitral award) are used only where they are directly relevant and are not presented as an exhaustive statement of the law. Readers must independently verify the current position for their specific court, statute, and case type before filing. EduLaw Advocate Playbook Practical legal intelligence for advocates who want to read files faster, draft better, and argue with more clarity. Explore Advocate Playbook Browse Case Repository Read Weekly Judgment Roundups Visit EduLaw Store © EduLaw. This article is for legal education and general practice guidance. It is not a substitute for independent legal research, court-specific filing compliance, or professional advice on the facts of a specific matter. Legal position stated as understood on 28 June 2026. × Printable Case Chronology Template Fill in the fields below, edit the table cells directly, then print, copy, or download as a plain text file. Nothing you type here is sent anywhere — it stays in your browser. Case title Court Matter type Next hearing date Relief presently sought Date Event Source/Page Legal significance Opponent's version Your response Follow-up + Add row Print Copy as text Download .txt Clear fields (function(){ "use strict"; /* ---------- Reading progress bar ---------- */ var progressBar = document.getElementById('progress-bar'); function updateProgress(){ var scrollTop = window.scrollY || document.documentElement.scrollTop; var docHeight = document.documentElement.scrollHeight - window.innerHeight; var pct = docHeight > 0 ? (scrollTop/docHeight)*100 : 0; progressBar.style.width = pct + '%'; progressBar.setAttribute('aria-valuenow', Math.round(pct)); } window.addEventListener('scroll', updateProgress, {passive:true}); updateProgress(); /* ---------- Build Table of Contents ---------- */ var tocSections = [ {id:'hook', title:'The Opening Question'}, {id:'what-it-does', title:'What a Chronology Does'}, {id:'date-list-vs-chronology', title:'Date List vs Chronology'}, {id:'seven-column', title:'The 7-Column Format'}, {id:'three-track', title:'Facts, Proof, Procedure'}, {id:'critical-dates', title:'The Four Critical Dates'}, {id:'matter-wise', title:'Matter-Wise Date Map'}, {id:'pressure-points', title:'Admissions & Contradictions'}, {id:'hearing-note-generator', title:'Five-Date Hearing Note'}, {id:'using-in-court', title:'Using It in Court'}, {id:'filing-toolkit', title:'Filing Toolkit'}, {id:'template', title:'Chronology Template'}, {id:'faq', title:'FAQ'}, {id:'final-checklist', title:'Final Checklist'}, {id:'sources', title:'Sources'} ]; var desktopTocList = document.getElementById('desktopTocList'); var mobileTocList = document.getElementById('mobileTocList'); tocSections.forEach(function(s){ var li1 = document.createElement('li'); var a1 = document.createElement('a'); a1.href = '#'+s.id; a1.textContent = s.title; a1.dataset.target = s.id; li1.appendChild(a1); desktopTocList.appendChild(li1); var li2 = document.createElement('li'); var a2 = document.createElement('a'); a2.href = '#'+s.id; a2.textContent = s.title; a2.style.cssText = 'text-decoration:none;color:#4a453e;font-weight:600;display:block;padding:6px 0;border-bottom:1px solid #e4dfd3;'; li2.appendChild(a2); mobileTocList.appendChild(li2); }); /* active TOC highlight via IntersectionObserver */ var tocLinks = Array.prototype.slice.call(desktopTocList.querySelectorAll('a')); var observer = new IntersectionObserver(function(entries){ entries.forEach(function(entry){ var link = tocLinks.find(function(l){ return l.dataset.target === entry.target.id; }); if(link && entry.isIntersecting){ tocLinks.forEach(function(l){ l.classList.remove('active'); }); link.classList.add('active'); } }); }, {rootMargin:'-30% 0px -60% 0px'}); tocSections.forEach(function(s){ var el = document.getElementById(s.id); if(el) observer.observe(el); }); /* mobile toc toggle */ var mobileTocBtn = document.getElementById('mobileTocBtn'); var mobileTocPanel = document.getElementById('mobileTocPanel'); mobileTocBtn.addEventListener('click', function(){ var isOpen = mobileTocPanel.style.display === 'block'; mobileTocPanel.style.display = isOpen ? 'none' : 'block'; mobileTocBtn.setAttribute('aria-expanded', String(!isOpen)); }); mobileTocList.addEventListener('click', function(e){ if(e.target.tagName === 'A'){ mobileTocPanel.style.display = 'none'; mobileTocBtn.setAttribute('aria-expanded','false'); } }); /* ---------- Scroll reveal ---------- */ var revealEls = document.querySelectorAll('.reveal'); var revealObserver = new IntersectionObserver(function(entries){ entries.forEach(function(entry){ if(entry.isIntersecting){ entry.target.classList.remove('pre'); revealObserver.unobserve(entry.target); } }); }, {threshold:0.08}); revealEls.forEach(function(el){ revealObserver.observe(el); }); setTimeout(function(){ revealEls.forEach(function(el){ el.classList.remove('pre'); }); }, 4000); /* ---------- 5-card expand ---------- */ document.querySelectorAll('.flip-card').forEach(function(card){ function toggle(){ var isOpen = card.classList.toggle('open'); card.setAttribute('aria-expanded', String(isOpen)); } card.addEventListener('click', toggle); card.addEventListener('keypress', function(e){ if(e.key === 'Enter' || e.key === ' '){ e.preventDefault(); toggle(); } }); }); /* ---------- Show legal consequence toggle ---------- */ var toggleConsequenceBtn = document.getElementById('toggleConsequence'); toggleConsequenceBtn.addEventListener('click', function(){ var pressed = toggleConsequenceBtn.getAttribute('aria-pressed') === 'true'; toggleConsequenceBtn.setAttribute('aria-pressed', String(!pressed)); document.querySelectorAll('.legal-consequence').forEach(function(el){ el.classList.toggle('show', !pressed); }); }); /* ---------- Chronology table filters ---------- */ var chronoRows = document.querySelectorAll('#chronoTable tbody tr'); var filterDecisive = document.getElementById('filterDecisive'); var filterAdmissions = document.getElementById('filterAdmissions'); var filterProcedure = document.getElementById('filterProcedure'); function applyChronoFilters(){ var showDecisive = filterDecisive.getAttribute('aria-pressed') === 'true'; var showAdmissions = filterAdmissions.getAttribute('aria-pressed') === 'true'; var showProcedure = filterProcedure.getAttribute('aria-pressed') === 'true'; var anyActive = showDecisive || showAdmissions || showProcedure; chronoRows.forEach(function(row){ var types = (row.dataset.type || '').split(' '); if(!anyActive){ row.classList.remove('hidden-row'); return; } var matches = (showDecisive && types.indexOf('decisive') > -1) || (showAdmissions && types.indexOf('admission') > -1) || (showProcedure && types.indexOf('procedure') > -1); row.classList.toggle('hidden-row', !matches); }); } [filterDecisive, filterAdmissions, filterProcedure].forEach(function(btn){ btn.addEventListener('click', function(){ var pressed = btn.getAttribute('aria-pressed') === 'true'; btn.setAttribute('aria-pressed', String(!pressed)); applyChronoFilters(); }); }); /* ---------- Convert to hearing note (from 7-col table) ---------- */ document.getElementById('convertHearingNote').addEventListener('click', function(){ var out = document.getElementById('miniHearingNote'); out.style.display = 'block'; out.textContent = "May it please the Court, this matter can be understood through three key dates recorded in the chronology:\n\n" + "1. 08.05.2024 — Defendant admits ₹18 lakh due (Email, p. 78) — a possible admission, made without the qualification later claimed.\n" + "2. 21.06.2024 — Demand notice issued after the admission, with service sought to be disputed.\n" + "3. 04.07.2024 — Reply first raises a defective-goods defence, with no contemporaneous complaint found in the earlier record.\n\n" + "This is an illustrative fictional example generated from the table above, not a real filing."; out.scrollIntoView({behavior:'smooth', block:'nearest'}); }); /* ---------- Three-track trace ---------- */ var traceBtn = document.getElementById('traceBtn'); traceBtn.addEventListener('click', function(){ document.querySelectorAll('.track-item').forEach(function(item){ item.classList.remove('active'); if(item.dataset.trace === '4'){ item.classList.add('active'); } }); }); document.querySelectorAll('.track-item').forEach(function(item){ item.addEventListener('click', function(){ var key = item.dataset.trace; document.querySelectorAll('.track-item').forEach(function(i){ i.classList.toggle('active', i.dataset.trace === key); }); }); }); /* ---------- Tabs (matter-wise) ---------- */ var tabBtns = document.querySelectorAll('.tab-btn'); tabBtns.forEach(function(btn){ btn.addEventListener('click', function(){ tabBtns.forEach(function(b){ b.setAttribute('aria-selected','false'); }); btn.setAttribute('aria-selected','true'); document.querySelectorAll('.tab-panel').forEach(function(p){ p.classList.remove('active'); }); document.getElementById('tab-'+btn.dataset.tab).classList.add('active'); }); }); /* ---------- Pressure Point Detector ---------- */ var ppBtns = document.querySelectorAll('.pp-btn'); ppBtns.forEach(function(btn){ btn.addEventListener('click', function(){ ppBtns.forEach(function(b){ b.setAttribute('aria-pressed','false'); }); btn.setAttribute('aria-pressed','true'); document.querySelectorAll('.pp-analysis').forEach(function(a){ a.classList.remove('show'); }); document.getElementById('pp-'+btn.dataset.mode).classList.add('show'); }); }); /* ---------- Five-Date Hearing Note Generator ---------- */ var hnOutput = document.getElementById('hnOutput'); var hnPostActions = document.getElementById('hnPostActions'); function buildNoteText(){ var v1 = document.getElementById('hn1').value.trim() || '[origin of obligation not filled]'; var v2 = document.getElementById('hn2