From 03052f7182c6ec1e2b8316c8d316fe5e66c77273 Mon Sep 17 00:00:00 2001 From: gator Date: Sat, 19 Sep 2026 15:33:35 +0000 Subject: [PATCH] The author can say what is wrong with a picture, and have it redrawn report_frame_fault existed in the worker and was on no page. --- trailer.html | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/trailer.html b/trailer.html index aeae94a..ca0fc62 100644 --- a/trailer.html +++ b/trailer.html @@ -50,6 +50,10 @@ .whoin .p input{width:100%;box-sizing:border-box;font:inherit;padding:5px 7px; border:1px solid var(--line);border-radius:6px;background:transparent;color:inherit} .whoin .p .go{margin-top:5px;font-size:12px;padding:3px 9px} + .ffault{display:flex;gap:8px;margin:0 0 10px} + .ffault input{flex:1;min-width:0;font:inherit;font-size:12px;padding:5px 8px; + border:1px solid var(--line);border-radius:6px;background:transparent;color:inherit} + .ffault .go{font-size:12px;padding:3px 10px;white-space:nowrap} .whole{border:1px solid var(--line);border-radius:10px;padding:12px;margin:0 0 18px} .whole h4{margin:0 0 4px;font-size:14px} .whole p{margin:0 0 8px;color:var(--muted);font-size:13px} @@ -224,7 +228,7 @@ if (String(PKG.look_state || "") && (Date.now() - (Date.parse(PKG.look_started || "") || 0)) < 15 * 60 * 1000) return true; return (PKG.shots || []).some(function (s) { - return s.writing || s.drawing || stillFilming(s); }); + return s.writing || s.drawing || s.fixing || stillFilming(s); }); } // Preparing the storyboard audio is work too. Without this the page stops @@ -845,6 +849,19 @@ }).join(""); } + // "That is not right" - about the PICTURE, in the author's own words. The + // picture is what the shot is filmed from, so a fault here is inherited by + // the film and cannot be fixed by filming again. + function frameFaultHtml(s) { + if (!s.opening_url || s.clip_url) return ""; + if (s.fixing || s.drawing) + return '

Redrawing this scene\u2019s pictures from your note\u2026

'; + return '
' + + '
'; + } + // WHO IS IN THIS SCENE, as they look in it. This is where an author changes // a hat, a dress, a cut lip - in words, about one person, in one scene - and // it holds from here on until they change it again. @@ -1017,6 +1034,7 @@ + (s.day ? ' · ' + esc(s.day) + '' : '') + '' + media + + frameFaultHtml(s) + whoInHtml(s) + '

' + esc(s.action || "") + '

' + (s.camera ? '

camera: ' + esc(s.camera) + '

' : '') @@ -1204,6 +1222,18 @@ z.classList.add("on"); return; } + if ((el = hit("data-ffgo"))) { + var fsid = el.getAttribute("data-ffgo"); + var fbox = document.getElementById("ff-" + fsid); + var fnote = fbox ? fbox.value.trim() : ""; + if (fnote.length < 4) { if (fbox) fbox.focus(); return; } + el.disabled = true; el.textContent = "working\u2026"; + r = await act("report_frame_fault", { draft_id: CUR, shot_id: fsid, note: fnote }); + if (r) { showMsg("msg", "Redrawing shot " + fsid + " from your note. It takes about a minute.", "ok"); + await refresh(); } + else { el.disabled = false; el.innerHTML = "Redraw · $0.16"; } + return; + } if ((el = hit("data-lookgo"))) { var pr = el.getAttribute("data-lookgo").split("|"); var box = document.getElementById("look-" + pr[0] + "-" + pr[1]);