diff --git a/book.html b/book.html index 1763536..1801d53 100644 --- a/book.html +++ b/book.html @@ -106,6 +106,20 @@ +
+
+

Or film a screenplay you already have

+
+ Paste a screenplay for a chapter or a scene, in the usual layout: scene headings that start INT. or EXT., a character’s name in capitals on its own line, and what they say underneath. It is broken into camera shots with every spoken word kept exactly as written — the page will tell you if even one word differs. Pick the book above first. About $2 to break down a chapter; pictures and filming are priced afterwards. + +
+
+
+ +
+
+
+ @@ -401,6 +415,18 @@ function readFileB64(file) { location.href = "/trailer.html?run=" + encodeURIComponent(r.run.id); }); + document.getElementById("goscreenplay").addEventListener("click", async function () { + var btn = this, text = document.getElementById("screenplay").value; + if (!PICKED) { showMsg("msg", "Pick a manuscript first."); window.scrollTo(0, 0); return; } + if (text.trim().length < 200) { showMsg("msg", "Paste the screenplay first."); window.scrollTo(0, 0); return; } + btn.disabled = true; btn.textContent = "Starting…"; + var r = await api("import_screenplay", { book_id: PICKED, screenplay: text, + reuse_cast: document.getElementById("reusecast").checked }); + if (!r.ok) { btn.disabled = false; btn.textContent = "Turn it into shots"; + showMsg("msg", r.error || "That did not start."); window.scrollTo(0, 0); return; } + location.href = "/trailer.html?run=" + encodeURIComponent(r.run.id); + }); + loadBooks(); loadRuns(); })();