-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
325 lines (292 loc) · 15 KB
/
Copy pathindex.html
File metadata and controls
325 lines (292 loc) · 15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
<!--
Copyright (c) 2026 Barclay Software
This Source Code Form is subject to the terms of the Barclay
Public License, v. 1.0. If a copy of the License was not
distributed with this file, You can obtain one at
https://scriptwriterpro.pages.dev/support/license.
This file may not be used to identify Modifications or Larger
Works under the name "ScriptWriter Pro" without prior written
permission, except as permitted under Section 4.2(b) of the
License. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scriptwriter Pro</title>
<link rel="stylesheet" href="styles.min.css">
<style id="dynamicPageSize">@page{ size:8.5in 11in; margin:0; }</style>
<link rel="icon" href="https://scriptwriterpro.pages.dev/assets/icon.svg">
<link rel="stylesheet" href="https://scriptwriterpro.pages.dev/assets/global.css">
</head>
<body>
<!-- Shown instead of the app on small screens — see the @media rule in
styles.css. A precise-page-layout editor with dropdown menus and a
contenteditable canvas isn't realistically usable on a phone, so we
block it outright rather than offer a broken experience. -->
<div class="mobile-blocker">
<div class="mobile-blocker-inner">
<div class="mobile-blocker-icon">🖥️</div>
<h1>Desktop Only</h1>
<p>Scriptwriter Pro needs a larger screen to work properly — the page-accurate
layout, menus, and formatting tools aren't usable on a phone-sized
display.</p>
<p>Please open this on a tablet, laptop, or desktop computer instead.</p>
</div>
</div>
<!-- ============ TOP MENU BAR ============ -->
<header class="topbar">
<div class="brand">
<span><img src="https://scriptwriterpro.pages.dev/assets/icon.svg" height="25" style="padding-top: 5px;"></span><span class="brand-name">Scriptwriter Pro</span>
</div>
<nav class="menu" id="menuBar">
<div class="menu-item" data-menu="file">
File
<div class="menu-dropdown">
<button data-action="new-project">New Screenplay<kbd>Ctrl+Alt+N</kbd></button>
<button data-action="open-file">Open File…<kbd>Ctrl+O</kbd></button>
<div class="menu-sep"></div>
<button data-action="rename-project">Rename Project…</button>
<button data-action="browser-projects">Browse Saved Projects…</button>
<div class="menu-sep"></div>
<button data-action="save-file">Save<kbd>Ctrl+S</kbd></button>
<button data-action="save-browser">Save to Browser</button>
<div class="menu-sep"></div>
<button data-action="export-pdf">Export as PDF…<kbd>Ctrl+Shift+P</kbd></button>
<button data-action="print">Print (via Browser)<kbd>Ctrl+P</kbd></button>
<div class="menu-sep"></div>
<button data-action="export-fountain">Export as Fountain (.fountain)</button>
<button data-action="import-fountain">Import Fountain File…</button>
</div>
</div>
<div class="menu-item" data-menu="edit">
Edit
<div class="menu-dropdown">
<button data-action="undo">Undo<kbd>Ctrl+Z</kbd></button>
<button data-action="redo">Redo<kbd>Ctrl+Y</kbd></button>
<div class="menu-sep"></div>
<button data-action="find">Find & Replace<kbd>Ctrl+F</kbd></button>
<div class="menu-sep"></div>
<button data-action="toggle-smart-chars" id="smartCharsToggle">Smart Characters</button>
</div>
</div>
<div class="menu-item" data-menu="format">
Format
<div class="menu-dropdown">
<button data-action="set-type" data-type="scene-heading">Scene Heading<kbd>Ctrl+1</kbd></button>
<button data-action="set-type" data-type="action">Action<kbd>Ctrl+2</kbd></button>
<button data-action="set-type" data-type="character">Character<kbd>Ctrl+3</kbd></button>
<button data-action="set-type" data-type="parenthetical">Parenthetical<kbd>Ctrl+4</kbd></button>
<button data-action="set-type" data-type="dialogue">Dialogue<kbd>Ctrl+5</kbd></button>
<button data-action="set-type" data-type="transition">Transition<kbd>Ctrl+6</kbd></button>
<button data-action="set-type" data-type="shot">Shot<kbd>Ctrl+7</kbd></button>
<div class="menu-sep"></div>
<button data-action="set-type" data-type="sfx">SFX (Sound Effect)<kbd>Ctrl+8</kbd></button>
<button data-action="set-type" data-type="vfx">VFX (Visual Effect)<kbd>Ctrl+9</kbd></button>
<button data-action="set-type" data-type="subheader">Subheader (Subscene)<kbd>Ctrl+0</kbd></button>
<button data-action="set-type" data-type="montage">Montage</button>
<button data-action="set-type" data-type="general">General</button>
<div class="menu-sep"></div>
<button data-action="bold">Bold<kbd>Ctrl+B</kbd></button>
<button data-action="italic">Italic<kbd>Ctrl+I</kbd></button>
<button data-action="underline">Underline<kbd>Ctrl+U</kbd></button>
<div class="menu-sep"></div>
<button data-action="toggle-scene-numbers" id="sceneNumbersToggle">Use Scene Numbers</button>
<button data-action="toggle-dual">Dual Dialogue<kbd>Ctrl+Shift+D</kbd></button>
<button data-action="toggle-double-sided" id="doubleSidedToggle">Double-Sided Printout</button>
<button data-action="title-page">Title Page…</button>
<div class="menu-sep"></div>
<button data-action="set-page-size" data-size="letter" id="pagesize-letter">US Letter (8.5 × 11 in)</button>
<button data-action="set-page-size" data-size="legal" id="pagesize-legal">US Legal (8.5 × 14 in)</button>
<button data-action="set-page-size" data-size="a4" id="pagesize-a4">A4 (210 × 297 mm)</button>
<div class="menu-sep"></div>
<div id="fontMenuList"></div>
</div>
</div>
<div class="menu-item" data-menu="revisions">
Revisions
<div class="menu-dropdown">
<button data-action="revision-start" id="revStartBtn">Start Revision Tracking…</button>
<button data-action="revision-lock" id="revLockBtn" hidden>Lock Revision & Start Next Color…</button>
<div class="menu-sep"></div>
<button data-action="revision-history">Revision History…</button>
<button data-action="export-pdf-colors">Export PDF with Page Colors…</button>
<div class="menu-sep"></div>
<button data-action="revision-clear" id="revClearBtn" hidden>Stop & Clear Revision Tracking…</button>
</div>
</div>
<div class="menu-item" data-menu="view">
View
<div class="menu-dropdown">
<button data-action="zoom-in">Zoom In<kbd>Ctrl+=</kbd></button>
<button data-action="zoom-out">Zoom Out<kbd>Ctrl+-</kbd></button>
<button data-action="toggle-theme">Change UI Theme Mode</button>
<button data-action="toggle-nav">Toggle Scene Navigator</button>
</div>
</div>
<div class="menu-item" data-menu="help">
Help
<div class="menu-dropdown">
<button data-action="shortcuts">Keyboard Shortcuts</button>
<button data-action="docs">Documentation</button>
<div class="menu-sep"></div>
<button data-action="about">About Scriptwriter Pro</button>
</div>
</div>
</nav>
<div class="topbar-right">
<span class="project-name" id="projectNameLabel" data-action="rename-project" title="Click to rename this project">Untitled Screenplay</span>
<span class="save-indicator" id="saveIndicator">saved</span>
</div>
</header>
<!-- ============ MAIN LAYOUT ============ -->
<div class="workspace">
<!-- LEFT SIDEBAR -->
<aside class="sidebar" id="sidebar">
<div class="sidebar-tabs">
<button class="sidebar-tab active" data-panel="scenes">Scenes</button>
<button class="sidebar-tab" data-panel="characters">Cast</button>
</div>
<div class="sidebar-panel active" id="panel-scenes">
<ol class="scene-list" id="sceneList"></ol>
</div>
<div class="sidebar-panel" id="panel-characters">
<ul class="character-list" id="characterList"></ul>
</div>
</aside>
<!-- EDITOR -->
<main class="editor-area" id="editorArea">
<div class="editor-scroll" id="editorScroll">
<div class="manuscript" id="manuscript" tabindex="0"></div>
</div>
</main>
</div>
<!-- ============ STATUS BAR ============ -->
<footer class="statusbar">
<span id="statusType">Action</span>
<span class="statusbar-sep">•</span>
<span id="statusFont">JG Courier Screenwriter</span>
<span class="statusbar-sep">•</span>
<span id="statusPageSize">US Letter</span>
<span class="statusbar-sep">•</span>
<span id="statusPages">Page 1 of 1 (est.)</span>
<span class="statusbar-sep">•</span>
<span id="statusWords">0 words</span>
<span class="statusbar-sep">•</span>
<span id="statusRevision">White (no revisions)</span>
<div class="zoom-control">
<button data-action="zoom-out" title="Zoom out">−</button>
<span id="zoomLabel">100%</span>
<button data-action="zoom-in" title="Zoom in">+</button>
</div>
</footer>
<!-- ============ MODALS ============ -->
<div class="modal-overlay" id="modalOverlay"></div>
<div class="modal modal-narrow" id="modal-revision-lock">
<h2 id="revLockTitle">Start Revision Tracking</h2>
<p id="revLockNote" class="muted">From now on, anything you add or change will be tracked as the
<strong>Blue</strong> revision — shown with a colored page edge and a "*"
next to changed lines. Nothing is marked until you start.</p>
<label>Date <input type="text" id="rev-lock-date" placeholder="e.g. 7/29/26"></label>
<div class="modal-actions">
<button data-action="close-modal" class="btn-ghost">Cancel</button>
<button data-action="confirm-revision-lock" class="btn-primary" id="revLockConfirmBtn">Start Tracking</button>
</div>
</div>
<div class="modal" id="modal-revision-history">
<h2>Revision History</h2>
<p class="muted">Each entry is when a color was locked in — every page touched since the previous lock was printed in that color.</p>
<ul class="project-list" id="revisionHistoryList"></ul>
<div class="modal-actions">
<button data-action="close-modal" class="btn-ghost">Close</button>
</div>
</div>
<div class="modal modal-narrow" id="modal-rename">
<h2>Rename Project</h2>
<label>Project name <input type="text" id="rename-input" placeholder="Untitled Screenplay"></label>
<div class="modal-actions">
<button data-action="close-modal" class="btn-ghost">Cancel</button>
<button data-action="save-rename" class="btn-primary">Save</button>
</div>
</div>
<div class="modal" id="modal-titlepage">
<h2>Title Page</h2>
<label>Title <input type="text" id="tp-title" placeholder="THE LONG WAY HOME"></label>
<label>Credit <input type="text" id="tp-credit" placeholder="written by"></label>
<label>Author(s) <input type="text" id="tp-author" placeholder="Your Name"></label>
<label>Based on <input type="text" id="tp-source" placeholder="the novel by Jane Doe (optional)"></label>
<label>Contact info <textarea id="tp-contact" rows="3" placeholder="Name Phone Email"></textarea></label>
<label>Draft date <input type="text" id="tp-date" placeholder="July 2026"></label>
<label>Copyright notice <input type="text" id="tp-copyright" placeholder="Copyright © 2026 Your Name (optional)"></label>
<div class="modal-actions">
<button data-action="close-modal" class="btn-ghost">Cancel</button>
<button data-action="save-titlepage" class="btn-primary">Save</button>
</div>
</div>
<div class="modal" id="modal-projects">
<h2>Saved Projects (this browser)</h2>
<ul class="project-list" id="projectListModal"></ul>
<div class="modal-actions">
<button data-action="close-modal" class="btn-ghost">Close</button>
</div>
</div>
<div class="modal" id="modal-find">
<h2>Find & Replace</h2>
<label>Find <input type="text" id="find-input"></label>
<label>Replace with <input type="text" id="replace-input"></label>
<div class="find-results" id="findResults"></div>
<div class="modal-actions">
<button data-action="close-modal" class="btn-ghost">Close</button>
<button data-action="find-next" class="btn-ghost">Find Next</button>
<button data-action="replace-one" class="btn-ghost">Replace</button>
<button data-action="replace-all" class="btn-primary">Replace All</button>
</div>
</div>
<div class="modal" id="modal-shortcuts">
<h2>Keyboard Shortcuts</h2>
<table class="shortcut-table">
<tr><td><kbd>Tab</kbd></td><td>Cycle element type forward</td></tr>
<tr><td><kbd>Shift+Tab</kbd></td><td>Cycle element type backward</td></tr>
<tr><td><kbd>Enter</kbd></td><td>New element (smart type)</td></tr>
<tr><td><kbd>Ctrl+1..7</kbd></td><td>Set element type directly (core types)</td></tr>
<tr><td><kbd>Ctrl+8/9/0</kbd></td><td>Set element type: SFX / VFX / Subheader</td></tr>
<tr><td><kbd>Ctrl+Z</kbd></td><td>Undo</td></tr>
<tr><td><kbd>Ctrl+Y / Ctrl+Shift+Z</kbd></td><td>Redo</td></tr>
<tr><td><kbd>Ctrl+S</kbd></td><td>Save (download file)</td></tr>
<tr><td><kbd>Ctrl+O</kbd></td><td>Open file</td></tr>
<tr><td><kbd>Ctrl+Shift+P</kbd></td><td>Export PDF</td></tr>
<tr><td><kbd>Ctrl+P</kbd></td><td>Browser print</td></tr>
<tr><td><kbd>Ctrl+F</kbd></td><td>Find & Replace</td></tr>
<tr><td><kbd>Ctrl+B / I / U</kbd></td><td>Bold / Italic / Underline</td></tr>
<tr><td><kbd>Ctrl+Shift+D</kbd></td><td>Toggle Dual Dialogue (simultaneous speech) for the current exchange</td></tr>
<tr><td><kbd>(</kbd></td><td>Typed as the first character of Dialogue, auto-converts to a Parenthetical</td></tr>
<tr><td><kbd>" / ' / --</kbd></td><td>With Smart Characters on (Edit menu): become curly quotes / em dash as you type; Backspace right after undoes just that substitution</td></tr>
<tr><td><kbd>↑ / ↓</kbd></td><td>Autocomplete suggestion navigate, Enter/Tab to accept</td></tr>
</table>
<div class="modal-actions">
<button data-action="close-modal" class="btn-primary">Got it</button>
</div>
</div>
<div class="modal" id="modal-about">
<h2>About Scriptwriter Pro</h2>
<p><b>Version:</b> Alpha Testing 4-class</p>
<p>Scriptwriter Pro is a browser-based screenwriting application developed by Barclay Technologies for professionals, novices, and everyone in between.</p>
<div class="modal-actions">
<button data-action="close-modal" class="btn-primary">OK</button>
</div>
</div>
<div class="modal modal-narrow" id="modal-progress">
<h2 id="progressTitle">Working…</h2>
<div class="progress-bar"><div class="progress-fill" id="progressFill"></div></div>
<p id="progressNote" class="muted"></p>
</div>
<!-- Suggestion popup for autocomplete -->
<div id="autocompletePopup" class="autocomplete-popup" hidden></div>
<input type="file" id="fileInputProject" accept=".scriptwriterx,.screenplay,.json,application/json" hidden>
<input type="file" id="fileInputFountain" accept=".fountain,.txt" hidden>
<!-- ============ LIBRARIES (CDN, for PDF export) ============ -->
<script src="pdf-lib/pdf-lib.min.js"></script>
<script src="pdf-lib/fontkit.umd.min.js"></script>
<script src="app.min.js"></script>
</body>
</html>