-
Notifications
You must be signed in to change notification settings - Fork 0
/
7-point.html
212 lines (198 loc) · 9.28 KB
/
7-point.html
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
<!--
Copyright (c) 2020, Dmytro Yeroshkin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following
disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the <organization> nor the names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<script src="js/jquery-3.6.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/generators.js"></script>
<script src="js/file_ops.js"></script>
<script src="js/jquery-ui.min.js"></script>
<title>7-Point Story Structure Organizer</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/jquery-ui.min.css">
<style>
table.table-borderless tr td,
table.table-borderless tr th {
border-right: 1px solid black;
border-left: 1px solid black
}
:root {
--BLANK: None;
--HOOK: #d9eaca;
--TP1: #bfe89d;
--PP1: #cadbfe;
--MID: #dce6fd;
--PP2: #cadbfe;
--TP2: #e6dafe;
--RES: #cfbbfe;
}
</style>
<!-- <script>-->
<!-- $(function () {-->
<!-- $("#tblOutline tbody").sortable();-->
<!-- //$("#tblOutline tbody").disableSelection();-->
<!-- })-->
<!-- </script>-->
</head>
<body onload="startPlotGenerator()">
<div class="container-fluid">
<ul class="nav nav-tabs" role="tablist" id="7point">
<li class="nav-item">
<a class="nav-link active" id="generator-tab" data-toggle="tab" href="#generator" role="tab"
aria-controls="generator">Plot Line Generator</a>
</li>
<li class="nav-item">
<a class="nav-link" id="table-tab" data-toggle="tab" href="#table" role="tab"
aria-controls="table">Table of Plot Lines</a>
</li>
<li class="nav-item">
<a class="nav-link" id="weave-tab" data-toggle="tab" href="#weave" role="tab"
aria-controls="weave" onclick="startOutlineGenerator()">Outline Generator</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" id="outline-tab" data-toggle="tab" href="#outline" role="tab"
aria-controls="outline" onclick="makeOutline()">Outline</a>
</li>
</ul>
<div class="tab-content" id="7pointContent">
<div class="tab-pane fade show active" id="generator" role="tabpanel" aria-labelledby="generator-tab">
<div class="container">
<div class="row" id="help">
<div class="col-12 col-md-10 offset-md-1 col-lg-8 offset-lg-2">
<p>
The prompts below will guide you through generating plot threads using the 7-point plot
structure. The generated table is always available in the "Table of Plot Lines" tab above.
Once you have generated all the plot lines, you can use the "Outline Generator" tab to order
the various bits into a more complete outline.
</p>
<p>
You can press [ENTER] to submit, or [SHIFT]+[ENTER] to add a new line.
</p>
</div>
</div>
<div class="row" id="entry">
<div class="col-12 col-md-8 offset-md-2 col-lg-6 offset-lg-3">
<h1 id="full">
ENTRY NAME
</h1>
</div>
</div>
<hr>
<div class="row">
<div class="col-12 col-md-6 col-lg-4">
<label for="plotItem" id="prompt">
PROMPT
</label>
</div>
<div class="col-12 col-md-6 col-lg-4 offset-lg-1">
<textarea id="plotItem" name="plotItem" rows="5" cols="50" autofocus
onkeypress="textArea(event)"></textarea>
<br>
<input type="button" class="btn btn-primary" value="Submit" onclick="nextPlotGenerator()">
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="table" role="tabpanel" aria-labelledby="table-tab">
<table id="tbl7point" class="table table-borderless"
style="border: 1px solid black; margin-top:5px; table-layout: fixed">
<thead class="thead-dark">
<tr id="HEADER">
<th scope="col">Plot Point</th>
</tr>
</thead>
<tbody>
<tr id="HOOK" style="background: var(--HOOK)">
<th scope="row">Hook</th>
</tr>
<tr id="TP1" style="background: var(--TP1)">
<th scope="row">Turning Point 1</th>
</tr>
<tr id="PP1" style="background: var(--PP1)">
<th scope="row">Pinch Point 1</th>
</tr>
<tr id="MID" style="background: var(--MID)">
<th scope="row">Midpoint</th>
</tr>
<tr id="PP2" style="background: var(--PP2)">
<th scope="row">Pinch Point 2</th>
</tr>
<tr id="TP2" style="background: var(--TP2)">
<th scope="row">Turning Point 2</th>
</tr>
<tr id="RES" style="background: var(--RES)">
<th scope="row">Resolution</th>
</tr>
<tr id="EDIT">
<th scope="row">Edit</th>
</tr>
</tbody>
</table>
<button class="btn btn-success" onclick="downloadTableAsTSV('tbl7point', 'plot_lines.csv')">
Download
</button>
</div>
<div class="tab-pane fade" id="weave" role="tabpanel" aria-labelledby="weave-tab">
<table id="tblNext" class="table table-borderless" style="border: 1px solid black; table-layout: fixed">
</table>
<div class="container">
<div class="row">
<input type="button" class="btn btn-primary" value="Next Item" onclick="submitOutlineGenerator()">
<input type="button" class="btn btn-danger pull-right" style="margin-right: 0; margin-left: auto"
value="Reset Outline" onclick="clearOutline()">
</div>
</div>
</div>
<div class="tab-pane fade" id="outline" role="tabpanel" aria-labelledby="outline-tab">
<table id="tblOutline" class="table table-bordered table-striped"
style="border: 1px solid black; table-layout: fixed">
</table>
<button class="btn btn-success" onclick="downloadTableAsTSV('tblOutline', 'outline.csv')">
Download
</button>
</div>
</div>
</div>
<hr>
<hr>
<div class="container" id="fops">
<div class="text-center">
<h4>Save/Load Operations</h4>
</div>
<hr>
<div class="row">
<div class="col-12 col-md-4">
<button class="btn btn-info mb-3" onclick="exportJSON('plotting.json')">Save work as JSON
</button>
</div>
<div class="col-12 col-md-8 col-lg-7 offset-lg-1">
<div class="input-group mb-3">
<div class="custom-file">
<input type="file" class="custom-file-input" id="loadJSON" aria-describedby="loadJSON"
onchange="loadJSON('loadJSON')">
<label class="custom-file-label" for="loadJSON">Select a JSON file to load</label>
</div>
</div>
</div>
</div>
</div>
</body>
</html>