<html lang="en"><style>* { -webkit-text-size-adjust: 86.5% !important; }</style><head><style>
@font-face {
font-family: "Optimistic";
font-style: normal;
font-weight: 400 600;
font-display: swap;
src: url("/fonts/OptimisticAI_VF_Optimized.woff2") format("woff2");
}
@font-face {
font-family: "Optimistic Mono";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/OptimisticMono_W_TextRegular.woff2") format("woff2");
}
:where(html) {
font-family: "Optimistic", system-ui, sans-serif;
}
:where(code, pre, kbd, samp) {
font-family: "Optimistic Mono", ui-monospace, monospace;
}
</style>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Motion Picture Production Manager — Toolkit</title>
<style>
:root{
--bg:#f6f8fb;
--panel:#ffffff;
--ink:#0f172a;
--muted:#617289;
--line:#e5e9f0;
--dark:#0b1220;
--accent:#2563eb;
--accent-2:#7c3aed;
--ok:#16a34a;
--ok-bg:#ecfdf5;
--shadow:0 1px 2px rgba(15,23,42,.06),0 4px 12px rgba(15,23,42,.04);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
color:var(--ink);
background:var(--bg);
-webkit-font-smoothing:antialiased;
line-height:1.45;
}
header{
background: radial-gradient(1200px 400px at 20% -10%, #1e293b 0%, #0b1220 60%) , var(--dark);
color:#fff;
position:sticky;
top:0;
z-index:50;
box-shadow:0 2px 16px rgba(0,0,0,.25);
}
.header-inner{
max-width:1400px;
margin:0 auto;
padding:22px 20px 14px;
display:flex;
gap:18px;
align-items:flex-end;
justify-content:space-between;
flex-wrap:wrap;
}
h1{
margin:0 0 6px;
font-size: clamp(20px, 2.6vw, 28px);
letter-spacing:.2px;
font-weight:750;
}
.sub{margin:0;color:#cbd5e1;font-size:14px}
.header-actions{
display:flex;
gap:10px;
align-items:center;
flex-wrap:wrap;
margin-left:auto;
}
.progress-wrap{min-width:220px}
.progress-label{font-size:12px;color:#cbd5e1;display:flex;justify-content:space-between;margin-bottom:6px}
.progress-bar{height:8px;background:rgba(255,255,255,.18);border-radius:999px;overflow:hidden}
#progress-fill{height:100%;width:0;background:linear-gradient(90deg,#60a5fa,#a78bfa);transition:width .3s ease}
button{
appearance:none;
border:1px solid rgba(255,255,255,.2);
background:rgba(255,255,255,.08);
color:#fff;
padding:8px 12px;
border-radius:10px;
font-weight:600;
font-size:13px;
cursor:pointer;
transition:.2s;
backdrop-filter:saturate(1.2) blur(4px);
}
button:hover{background:rgba(255,255,255,.16);transform:translateY(-1px)}
button:active{transform:translateY(0)}
.search-wrap{
max-width:1400px;
margin:0 auto;
padding:0 20px 18px;
display:flex;
gap:10px;
align-items:center;
}
.search{
flex:1;
display:flex;
align-items:center;
gap:8px;
background:#0f172a;
border:1px solid #1f2937;
padding:10px 12px;
border-radius:12px;
}
.search input{
width:100%;
background:transparent;
border:0;
outline:0;
color:#e5e7eb;
font-size:14px;
}
.search svg{opacity:.7}
.container{
max-width:1400px;
margin:0 auto;
padding:26px 20px 60px;
display:grid;
grid-template-columns:1fr 340px;
gap:28px;
align-items:start;
}
@media (max-width:1020px){
.container{grid-template-columns:1fr}
.sidebar{order:2}
}
main{display:grid;gap:26px}
.section{
background:var(--panel);
border:1px solid var(--line);
border-radius:18px;
box-shadow:var(--shadow);
overflow:hidden;
}
.section-head{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
padding:16px 18px;
border-bottom:1px solid var(--line);
background:linear-gradient(180deg,#fff, #f9fafb);
position:sticky;
top:106px;
z-index:3;
}
.section-head h2{
margin:0;
font-size:17px;
letter-spacing:.2px;
}
.count{
font-size:12px;
color:var(--muted);
background:#f1f5f9;
border:1px solid var(--line);
padding:4px 8px;
border-radius:999px;
}
.grid{
padding:16px;
display:grid;
grid-template-columns:repeat(3, minmax(0,1fr));
gap:12px;
}
@media (max-width:1180px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){
.section-head{top:154px}
.grid{grid-template-columns:1fr; padding:12px}
}
.card{
border:1px solid var(--line);
border-radius:14px;
background:#fff;
padding:14px 14px 12px;
display:flex;
flex-direction:column;
gap:8px;
transition:.18s ease;
position:relative;
}
.card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(2,6,23,.07);border-color:#dbe3ee}
.card-top{display:flex;gap:11px;align-items:flex-start}
input[type="checkbox"]{
width:20px;height:20px;
margin:2px 0 0;
accent-color:var(--accent);
flex:0 0 20px;
cursor:pointer;
}
.title{
font-weight:650;
font-size:15px;
line-height:1.25;
cursor:pointer;
}
.desc{
margin:0 0 0 31px;
color:var(--muted);
font-size:13.4px;
line-height:1.35;
}
.card.done{
background:var(--ok-bg);
border-color:#bbf7d0;
}
.card.done .title{color:#065f46;text-decoration:line-through}
.card.done .desc{color:#047857}
.tag{
margin-left:auto;
font-size:11px;
padding:3px 7px;
border-radius:999px;
border:1px solid var(--line);
color:#64748b;
background:#f8fafc;
}
.card.done .tag{background:#dcfce7;border-color:#bbf7d0;color:#166534}
/* Sidebar */
.sidebar{position:sticky; top:118px}
@media (max-width:1020px){ .sidebar{position:static} }
.info{
background:var(--panel);
border:1px solid var(--line);
border-radius:18px;
box-shadow:var(--shadow);
overflow:hidden;
}
.info h3{
margin:0;
padding:16px 16px;
font-size:15px;
border-bottom:1px solid var(--line);
background:linear-gradient(180deg,#fff,#f9fafb);
}
details{
border-top:1px solid var(--line);
padding:0;
}
details:first-of-type{border-top:0}
summary{
list-style:none;
padding:14px 16px;
cursor:pointer;
font-weight:650;
font-size:14px;
display:flex;
align-items:center;
justify-content:space-between;
}
summary::-webkit-details-marker{display:none}
summary:after{
content:"+";
font-size:18px;
color:#94a3b8;
transition:.2s;
}
details[open] summary:after{transform:rotate(45deg)}
.details-body{padding:0 16px 14px;color:#334155;font-size:13.8px}
.details-body ul{margin:8px 0 0 18px;padding:0}
.details-body li{margin:6px 0}
.routine strong{display:block;margin-top:10px;color:#0f172a}
.routine p{margin:4px 0 0;color:#475569}
.foot{
text-align:center;
color:#94a3b8;
font-size:12px;
padding:30px 0 10px;
}
/* UPM quick special */
.quick .card{padding:12px 14px}
.quick .desc{margin-left:31px}
/* Print */
@media print{
header{position:static;background:#fff;color:#000;box-shadow:none}
.header-actions,.search-wrap{display:none}
body{background:#fff}
.container{grid-template-columns:1fr;padding:0}
.section, .info{box-shadow:none;border-color:#ccc;break-inside:avoid}
.section-head{position:static;background:#fff}
.card:hover{transform:none;box-shadow:none}
.sidebar{break-before:page}
}
</style>
</head>
<body>
<header>
<div class="header-inner">
<div>
<h1>Motion Picture Production Manager — Forms & Useful Information</h1>
<p class="sub">Clean, single-page toolkit for UPMs & PMs. Tap to check off.</p>
</div>
<div class="header-actions">
<div class="progress-wrap">
<div class="progress-label"><span>Overall Progress</span><span id="progress-text">0% complete</span></div>
<div class="progress-bar"><div id="progress-fill" style="width: 0%;"></div></div>
</div>
<button id="printBtn" title="Print or save PDF">Print</button>
<button id="resetBtn" title="Clear all checks">Reset</button>
</div>
</div>
<div class="search-wrap">
<div class="search">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M21 21l-4.3-4.3" stroke="#94a3b8" stroke-width="2" stroke-linecap="round"></path><circle cx="11" cy="11" r="7" stroke="#94a3b8" stroke-width="2"></circle></svg>
<input id="search" type="search" placeholder="Search 38 forms and checklists…">
</div>
</div>
</header>
<div class="container">
<main>
<!-- 1. PRE-PRODUCTION -->
<section class="section" data-section="pre">
<div class="section-head">
<h2>1. Pre-Production</h2>
<span class="count">0/12</span>
</div>
<div class="grid">
<article class="card"><div class="card-top"><input type="checkbox" id="pre1" data-id="pre-script"><label class="title" for="pre1">Script Breakdown Sheet</label><span class="tag">Prep</span></div><p class="desc">Scene-by-scene elements, props, cast, and sets.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre2" data-id="pre-schedule"><label class="title" for="pre2">Shooting Schedule</label><span class="tag">Prep</span></div><p class="desc">Stripboard order with day breaks and company moves.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre3" data-id="pre-budget"><label class="title" for="pre3">Film Budget Template</label><span class="tag">Finance</span></div><p class="desc">Above/below-the-line top sheet and detail pages.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre4" data-id="pre-calendar"><label class="title" for="pre4">Production Calendar</label></div><p class="desc">Key prep, shoot, and wrap milestones.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre5" data-id="pre-scout"><label class="title" for="pre5">Location Scouting Checklist</label></div><p class="desc">Power, parking, noise, access, and photos.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre6" data-id="pre-loc-release"><label class="title" for="pre6">Location Release Form</label></div><p class="desc">Owner permission, fees, insurance requirements.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre7" data-id="pre-talent-release"><label class="title" for="pre7">Talent Release Form</label></div><p class="desc">Image/likeness rights for on-camera talent.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre8" data-id="pre-casting"><label class="title" for="pre8">Casting Call Sheet</label></div><p class="desc">Audition times, sides, reader, and contacts.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre9" data-id="pre-crewlist"><label class="title" for="pre9">Crew List</label></div><p class="desc">Department heads and key crew roster.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre10" data-id="pre-permit"><label class="title" for="pre10">Film Permit Application</label></div><p class="desc">City/county authorization packet.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre11" data-id="pre-insurance"><label class="title" for="pre11">Insurance Coverage Checklist</label></div><p class="desc">COIs, workers comp, equipment, vehicles.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="pre12" data-id="pre-risk"><label class="title" for="pre12">Risk Assessment Form</label></div><p class="desc">Hazards, mitigations, and safety personnel.</p></article>
</div>
</section>
<!-- 2. PRODUCTION -->
<section class="section" data-section="prod">
<div class="section-head">
<h2>2. Production / Shooting</h2>
<span class="count">0/13</span>
</div>
<div class="grid">
<article class="card"><div class="card-top"><input type="checkbox" id="p1" data-id="prod-callsheet"><label class="title" for="p1">Call Sheet</label><span class="tag">Daily</span></div><p class="desc">Schedule, cast times, weather, locations.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p2" data-id="prod-unitcall"><label class="title" for="p2">Unit Call Sheet</label></div><p class="desc">Department-specific calls and notes.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p3" data-id="prod-dpr"><label class="title" for="p3">Daily Production Report</label><span class="tag">Daily</span></div><p class="desc">Scenes shot, hours, meals, delays.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p4" data-id="prod-timelog"><label class="title" for="p4">Daily Time Log</label></div><p class="desc">Crew in/out, meal penalties, OT.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p5" data-id="prod-shotlist"><label class="title" for="p5">Camera Shot List</label></div><p class="desc">Planned coverage for the day.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p6" data-id="prod-shotlog"><label class="title" for="p6">Shot Log</label></div><p class="desc">Takes, lenses, filters, notes.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p7" data-id="prod-continuity"><label class="title" for="p7">Continuity Log</label></div><p class="desc">Wardrobe, props, action matching.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p8" data-id="prod-sound"><label class="title" for="p8">Sound Report</label></div><p class="desc">Files, wild lines, room tone.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p9" data-id="prod-camera"><label class="title" for="p9">Camera Report</label></div><p class="desc">Media cards, footage count, issues.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p10" data-id="prod-petty"><label class="title" for="p10">Daily Petty Cash Log</label></div><p class="desc">Receipts, codes, reconciliations.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p11" data-id="prod-safety"><label class="title" for="p11">Safety Meeting Log</label></div><p class="desc">Tailgate topics and attendee sign-in.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p12" data-id="prod-transpo"><label class="title" for="p12">Transportation Plan</label></div><p class="desc">Parking, shuttles, picture vehicles.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="p13" data-id="prod-crafty"><label class="title" for="p13">Craft Services Checklist</label></div><p class="desc">Stock, setup times, dietary needs.</p></article>
</div>
</section>
<!-- 3. PERSONNEL -->
<section class="section" data-section="legal">
<div class="section-head">
<h2>3. Personnel & Legal</h2>
<span class="count">0/8</span>
</div>
<div class="grid">
<article class="card"><div class="card-top"><input type="checkbox" id="l1" data-id="legal-crew-contacts"><label class="title" for="l1">Crew Contact List</label></div><p class="desc">Phone, email, emergency contact.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="l2" data-id="legal-cast-contacts"><label class="title" for="l2">Cast Contact List</label></div><p class="desc">Reps, availability, special needs.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="l3" data-id="legal-crew-contract"><label class="title" for="l3">Film Crew Contract</label></div><p class="desc">Rate, terms, start date, kit.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="l4" data-id="legal-deal"><label class="title" for="l4">Deal Memos</label></div><p class="desc">Short-form agreements for crew/cast.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="l5" data-id="legal-nda"><label class="title" for="l5">NDA</label></div><p class="desc">Confidentiality for script and footage.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="l6" data-id="legal-stunt"><label class="title" for="l6">Stunt Coordinator Agreement</label></div><p class="desc">Safety protocols, rates, rehearsals.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="l7" data-id="legal-animal"><label class="title" for="l7">Animal Handler Agreement</label></div><p class="desc">Welfare, handler terms, permits.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="l8" data-id="legal-music"><label class="title" for="l8">Music Release Form</label></div><p class="desc">Sync rights and usage terms.</p></article>
</div>
</section>
<!-- 4. WRAP -->
<section class="section" data-section="wrap">
<div class="section-head">
<h2>4. Wrap & Post</h2>
<span class="count">0/5</span>
</div>
<div class="grid">
<article class="card"><div class="card-top"><input type="checkbox" id="w1" data-id="wrap-post-schedule"><label class="title" for="w1">Post-Production Schedule</label></div><p class="desc">Edit, sound, color, VFX milestones.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="w2" data-id="wrap-post-budget"><label class="title" for="w2">Post-Production Budget</label></div><p class="desc">Remaining costs and contingency.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="w3" data-id="wrap-approval"><label class="title" for="w3">Final Cut Approval Form</label></div><p class="desc">Producer/director sign-off record.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="w4" data-id="wrap-screening"><label class="title" for="w4">Screening Evaluation Form</label></div><p class="desc">Audience feedback collection.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="w5" data-id="wrap-dist"><label class="title" for="w5">Film Distribution Agreement</label></div><p class="desc">Rights, territories, and terms.</p></article>
</div>
</section>
<!-- 5. UPM QUICK -->
<section class="section quick" data-section="upm">
<div class="section-head">
<h2>5. UPM Quick Checklist</h2>
<span class="count">0/10</span>
</div>
<div class="grid">
<article class="card"><div class="card-top"><input type="checkbox" id="u1" data-id="upm-budget-lock"><label class="title" for="u1">Budget lock</label></div><p class="desc">Approved top sheet distributed.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="u2" data-id="upm-permits"><label class="title" for="u2">Permits</label></div><p class="desc">All locations permitted and posted.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="u3" data-id="upm-insurance"><label class="title" for="u3">Insurance certs</label></div><p class="desc">COIs to vendors, locations, city.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="u4" data-id="upm-deals"><label class="title" for="u4">Crew deals</label></div><p class="desc">Signed deal memos on file.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="u5" data-id="upm-loc"><label class="title" for="u5">Location agreements</label></div><p class="desc">Releases, fees, parking plan.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="u6" data-id="upm-safety"><label class="title" for="u6">Safety plan</label></div><p class="desc">JSA, medics, fire watch assigned.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="u7" data-id="upm-call"><label class="title" for="u7">Call sheet approval</label></div><p class="desc">Locked by 6pm, sent to all.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="u8" data-id="upm-dpr"><label class="title" for="u8">Daily reports</label></div><p class="desc">DPR, timecards, hot costs updated.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="u9" data-id="upm-petty"><label class="title" for="u9">Petty cash reconciliation</label></div><p class="desc">Receipts coded and balanced.</p></article>
<article class="card"><div class="card-top"><input type="checkbox" id="u10" data-id="upm-binder"><label class="title" for="u10">Wrap binder</label></div><p class="desc">Final docs archived for delivery.</p></article>
</div>
</section>
<div class="foot">Built for speed on set. Your checks save locally on this device.</div>
</main>
<aside class="sidebar">
<div class="info">
<h3>Useful Info</h3>
<details open="">
<summary>Key Contacts to Collect</summary>
<div class="details-body">
<ul>
<li>Producer, Director, 1st AD, UPM</li>
<li>Line Producer, Production Accountant</li>
<li>Location Manager, Film Office/Permitting</li>
<li>Transportation Captain, Security Lead</li>
<li>Insurance Broker, Payroll Company</li>
<li>Post Supervisor, Legal Counsel</li>
<li>Nearest Hospital, Fire, Police (non-emergency)</li>
</ul>
</div>
</details>
<details open="">
<summary>Vendor Categories</summary>
<div class="details-body">
<ul>
<li>Camera, Grip & Electric, Lighting</li>
<li>Sound Mixer, DIT, Video Village</li>
<li>Locations, Permits, Parking, Security</li>
<li>Catering, Craft Services, Water/Sanitation</li>
<li>Transportation, Picture Cars, Fuel</li>
<li>Art Dept, Props, Wardrobe, HMU, SFX</li>
<li>Post: Editorial, Color, Mix, VFX, Dailies</li>
</ul>
</div>
</details>
<details>
<summary>What Goes in Production Binder</summary>
<div class="details-body">
<ul>
<li>Approved budget, schedule, day-out-of-days</li>
<li>COIs, permits, location releases</li>
<li>Deal memos, contracts, NDAs</li>
<li>Call sheets, DPRs, exhibit Gs</li>
<li>Petty cash envelopes, POs, invoices</li>
<li>Safety plans, incident reports, SDS</li>
<li>Contact sheets, maps, parking diagrams</li>
</ul>
</div>
</details>
<details open="">
<summary>Daily UPM Routine</summary>
<div class="details-body routine">
<strong>Morning</strong>
<p>Approve call sheet, confirm permits & weather, check crew-in, brief safety.</p>
<strong>Midday</strong>
<p>Walk set, verify meals & turnarounds, approve POs, update hot costs.</p>
<strong>Wrap</strong>
<p>Sign timecards, collect DPR, reconcile petty cash, lock tomorrow.</p>
</div>
</details>
</div>
</aside>
</div>
<script>
(function(){
const STORAGE_KEY = 'upm-toolkit-v2';
const checks = Array.from(document.querySelectorAll('input[type="checkbox"][data-id]'));
const progressFill = document.getElementById('progress-fill');
const progressText = document.getElementById('progress-text');
const search = document.getElementById('search');
function load(){
try{
return JSON.parse(localStorage.getItem(STORAGE_KEY) || '{}');
}catch(e){ return {} }
}
function save(state){ localStorage.setItem(STORAGE_KEY, JSON.stringify(state)); }
let state = load();
function updateCard(cb){
const card = cb.closest('.card');
if(card) card.classList.toggle('done', cb.checked);
}
function updateSectionCounts(){
document.querySelectorAll('.section').forEach(sec=>{
const inputs = sec.querySelectorAll('input[type="checkbox"]');
const done = sec.querySelectorAll('input[type="checkbox"]:checked').length;
const count = sec.querySelector('.count');
if(count) count.textContent = `${done}/${inputs.length}`;
});
}
function updateProgress(){
const total = checks.length;
const done = checks.filter(c=>c.checked).length;
const pct = total ? Math.round((done/total)*100) : 0;
progressFill.style.width = pct + '%';
progressText.textContent = pct + '% complete';
}
checks.forEach(cb=>{
if(state[cb.dataset.id]) cb.checked = true;
updateCard(cb);
cb.addEventListener('change', ()=>{
state[cb.dataset.id] = cb.checked;
save(state);
updateCard(cb);
updateSectionCounts();
updateProgress();
});
// make whole card clickable via label already, but improve hit area
const card = cb.closest('.card');
card.addEventListener('click', (e)=>{
if(e.target.tagName.toLowerCase() !== 'input' && e.target.tagName.toLowerCase() !== 'label'){
cb.checked = !cb.checked;
cb.dispatchEvent(new Event('change', {bubbles:true}));
}
});
});
updateSectionCounts();
updateProgress();
// Search
search.addEventListener('input', ()=>{
const q = search.value.trim().toLowerCase();
document.querySelectorAll('.card').forEach(card=>{
const txt = card.innerText.toLowerCase();
card.style.display = txt.includes(q) ? '' : 'none';
});
// hide empty sections
document.querySelectorAll('.section').forEach(sec=>{
const visible = Array.from(sec.querySelectorAll('.card')).some(c=>c.style.display !== 'none');
sec.style.display = visible ? '' : 'none';
});
});
// Buttons
document.getElementById('printBtn').addEventListener('click', ()=> window.print());
document.getElementById('resetBtn').addEventListener('click', ()=>{
if(confirm('Clear all checked items?')){
state = {};
save(state);
checks.forEach(c=>{ c.checked=false; updateCard(c); });
updateSectionCounts();
updateProgress();
}
});
})();
</script>
<script>(function(){document.addEventListener("click",function(e){var a=e.target.closest("[data-product-id]");if(!a)return;e.preventDefault();var pid=a.getAttribute("data-product-id");if(pid)parent.postMessage({type:"ecto-artifact-link-click",productId:pid},"*")})})();</script>
<script>(function(){var loc=location.href.replace(/#.*$/,"");var ATTR_NAMES=["data-product-id","data-productid","data-product_id","product-id","productid","product_id","data-source-entity-id","source-entity-id","source_entity_id","data-product","data-metadata","data-meta"];var DATASET_KEYS=["productId","productid","product_id","sourceEntityId","sourceentityid","source_entity_id","product","metadata","meta"];function readProductId(value){if(typeof value!=="string"||value.length===0)return null;if(/^[0-9]{6,}$/.test(value))return value;var match=value.match(/(?:product(?:_|-)?id|source(?:_|-)?entity(?:_|-)?id)["'=:\s]+([0-9]{6,})/i);return match?match[1]:null}function extractProductId(start){for(var node=start;node&&node!==document.body;node=node.parentElement){for(var i=0;i<ATTR_NAMES.length;i++){var attrValue=node.getAttribute&&node.getAttribute(ATTR_NAMES[i]);var attrProductId=readProductId(attrValue);if(attrProductId)return attrProductId}var dataset=node.dataset||null;if(dataset){for(var j=0;j<DATASET_KEYS.length;j++){var dataValue=dataset[DATASET_KEYS[j]];var dataProductId=readProductId(dataValue);if(dataProductId)return dataProductId}}}return null}function isInlineMediaSlotElement(node){return !!(node&&node.getAttribute&&node.getAttribute("data-clippy-inline-media-slot")!==null)}function findInlineMediaSlot(start){for(var node=start;node&&node!==document.body;node=node.parentElement){if(isInlineMediaSlotElement(node))return node}return null}function readInlineMediaUrl(node){if(!node)return null;return node.getAttribute&&((node.getAttribute("data-clippy-inline-media-url")||node.getAttribute("data-url")||node.getAttribute("data_url")))||node.href||null}function stripHash(url){return String(url).replace(/#.*$/,"")}function urlsMatch(a,b){if(!a||!b)return false;try{return stripHash(new URL(a,loc).href)===stripHash(new URL(b,loc).href)}catch(_){return stripHash(a)===stripHash(b)}}function isFirstPartyReelUrl(value){try{var url=new URL(value,loc);if(url.protocol!=="https:")return false;var host=url.hostname.toLowerCase();var supported=host==="instagram.com"||host.endsWith(".instagram.com")||host==="facebook.com"||host.endsWith(".facebook.com");return supported&&/\/reels?\//i.test(url.pathname)}catch(_){return false}}function isInlineMediaUrlClick(node,href){var slot=findInlineMediaSlot(node);if(!slot)return false;var slotUrl=readInlineMediaUrl(slot);if(slotUrl)return urlsMatch(href,slotUrl);return isFirstPartyReelUrl(href)}function findDataHref(start){for(var node=start;node&&node!==document.body;node=node.parentElement){if(node.getAttribute){var href=node.getAttribute("data-href")||node.getAttribute("data-url");if(href)return{href:href,node:node}}}return null}var nativeOpen=window.open;window.open=function(url){if(parent!==window&&typeof url==="string"&&/^https?:\/\//.test(url)){parent.postMessage({type:"ecto:usercontent-link-click",href:url},"*");return null}return nativeOpen?nativeOpen.apply(window,arguments):null};document.addEventListener("click",function(e){var target=e.target instanceof Element?e.target:null;if(!target)return;if(parent===window)return;var a=target.closest?target.closest("a[href]"):null;if(a&&a.href&&/^https?:\/\//.test(a.href)&&a.href.replace(/#.*$/,"")!==loc){if(isInlineMediaUrlClick(a,a.href))return;var productId=extractProductId(target)||extractProductId(a);if(productId){e.preventDefault();parent.postMessage({type:"ecto-artifact-link-click",productId:productId},"*");return}e.preventDefault();parent.postMessage({type:"ecto:usercontent-link-click",href:a.href},"*");return}var dataHref=findDataHref(target);if(dataHref&&/^https?:\/\//.test(dataHref.href)&&dataHref.href.replace(/#.*$/,"")!==loc){if(isInlineMediaUrlClick(dataHref.node,dataHref.href))return;e.preventDefault();parent.postMessage({type:"ecto:usercontent-link-click",href:dataHref.href},"*")}},true)})();</script><script>(function(){var FOCUS_TYPE="ecto:artifact-focus-request";var CLOSE_TYPE="ecto:artifact-close-request";function focusArtifactDocument(){var body=document.body;if(!body)return;try{window.focus();}catch(e){}if(!body.hasAttribute("tabindex"))body.setAttribute("tabindex","-1");try{body.focus({preventScroll:true});}catch(e){try{body.focus();}catch(e2){}}}window.addEventListener("message",function(event){if(event.source!==window.parent)return;var data=event.data;if(!data||typeof data!=="object"||data.type!==FOCUS_TYPE)return;if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",focusArtifactDocument,{once:true});return;}focusArtifactDocument();});window.addEventListener("keydown",function(event){if(event.key!=="Escape")return;window.setTimeout(function(){if(event.defaultPrevented)return;window.parent.postMessage({type:CLOSE_TYPE},"*");},0);});})();</script>
</body></html>
Leave a Reply