Remove the spliced duplicate, part 1 of 4
The page has carried a commented-out copy of its own tail since a bad patch spliced it in. It is inert, but 66KB of duplicated source in a file that gets patched regularly is a hazard worth removing. Deleted in parts because the patch API can only remove text by quoting all of it.
This commit is contained in:
parent
9f7114ddbb
commit
a24f8182f7
1 changed files with 0 additions and 23 deletions
23
script.html
23
script.html
|
|
@ -1665,29 +1665,6 @@ load();
|
||||||
a dollar sign before a quote is a substitution token to patch_git_file.
|
a dollar sign before a quote is a substitution token to patch_git_file.
|
||||||
It is commented out to the end of the file. The live copy is ABOVE.
|
It is commented out to the end of the file. The live copy is ABOVE.
|
||||||
|
|
||||||
+ '<div class="sub">' + videoSecondsOf(p) + ' seconds · ' + (p.segments || 4) + ' shots'
|
|
||||||
+ (modelFor(p) ? ' · ' + esc(modelFor(p).label) : '') + '</div></div>'
|
|
||||||
+ '<div class="sub">' + (canEditScript
|
|
||||||
? (used === 1 ? "1 rewrite" : used + " rewrites") + " so far"
|
|
||||||
: "Words approved") + '</div></div>';
|
|
||||||
|
|
||||||
// The whole piece, which is what was actually written - the shots below are
|
|
||||||
// cut from it. Older scripts predate the field, so fall back to the shot
|
|
||||||
// lines rather than showing an empty box.
|
|
||||||
var narrative = s.full_text
|
|
||||||
|| (s.segments || []).map(function (x) { return (x.line || "").trim(); }).join(" ").trim();
|
|
||||||
var stale = !!s.shots_stale;
|
|
||||||
var full = !narrative ? "" :
|
|
||||||
'<h2 class="sec">The whole piece</h2>'
|
|
||||||
+ (canEditScript
|
|
||||||
? '<div class="card"><div class="field">'
|
|
||||||
+ '<span class="hint">This is the script. The shots further down are cut from it, '
|
|
||||||
+ 'so change the words here and press Setup shots to divide them again.</span>'
|
|
||||||
+ '<textarea id="narr" style="min-height:260px">' + esc(narrative) + '</textarea></div>'
|
|
||||||
+ '<button type="button" class="btn ghost" id="savenarr">Save the words</button>'
|
|
||||||
+ '<span class="foot" style="margin-left:12px" id="narrnote"></span></div>'
|
|
||||||
: '<div class="full">' + esc(narrative) + '</div>');
|
|
||||||
|
|
||||||
// Cutting the narrative into shots. Explicit, because it speaks the whole
|
// Cutting the narrative into shots. Explicit, because it speaks the whole
|
||||||
// piece through ElevenLabs to find real word endings - about a cent, fifteen
|
// piece through ElevenLabs to find real word endings - about a cent, fifteen
|
||||||
// seconds, and it rewrites where every shot begins and ends. This used to
|
// seconds, and it rewrites where every shot begins and ends. This used to
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue