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 '' + 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]);