-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
268 lines (268 loc) · 8.56 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loose Ends</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: sans-serif;
font-size: 18px;
line-height: 1.5;
}
main {
display: flex;
flex-flow: row wrap;
}
main > * {
padding: 2rem;
}
h3 {
text-align: center;
margin-bottom: 1rem;
}
#transcript-container {
width: 60%;
}
#transcript {
height: 80vh;
overflow-y: scroll;
}
#dramatis-personae {
margin-bottom: 2rem;
text-align: center;
}
#dramatis-personae .char-name {
font-variant: small-caps;
}
#transcript .entry {
margin-bottom: 1.5rem;
}
#transcript .entry p {
width: 80%;
}
.system-text {
font-weight: bold;
}
.user-text {
background: #eee;
border: none;
font-family: inherit;
font-size: inherit;
resize: vertical;
width: 100%;
}
.user-text.empty {
font-style: italic;
}
#goals-container {
/*background: midnightblue;
color: white;*/
width: 40%;
}
.goals {
display: flex;
flex-flow: row wrap;
}
.goals-column {
width: 46%;
margin-left: 2%;
margin-right: 2%;
}
.goal {
background: #555;
color: white;
border-radius: 1rem;
font-size: 1rem;
margin-bottom: 1rem;
text-align: center;
}
.goal.suggested {
cursor: pointer;
opacity: 0.5;
}
.goal.suggested:hover {
opacity: 0.75;
}
.add-goal {
border: 4px dotted #ccc;
border-radius: 1rem;
color: #ccc;
cursor: pointer;
font-size: 3rem;
margin-bottom: 1rem;
text-align: center;
}
.goal-title {
font-size: 1.1rem;
font-weight: bold;
padding-top: 3px;
padding-bottom: 3px;
position: relative;
}
.delete-goal-button {
cursor: pointer;
position: absolute;
left: 0.5rem;
top: 0.25rem;
}
.goal-part {
background: #444;
line-height: 1.2;
padding: 3px 0.5rem;
}
.goal-part.complete {
background: darkgreen;
}
.goal-part.selected {
background: orange !important;
}
.goal-part.die {
background: darkred !important;
}
.goal-part:nth-child(odd) {
background: #555;
}
.goal-part.complete:nth-child(odd) {
background: forestgreen;
}
.goal-part:last-child {
border-bottom-left-radius: 1rem;
border-bottom-right-radius: 1rem;
}
#suggestions-container {
border-top: 1px dashed black;
padding-top: 1rem;
height: 5vh;
}
#suggestions {
align-items: center;
display: flex;
flex-flow: row wrap;
justify-content: center;
}
.suggestion {
border: 2px dotted black;
border-radius: 1rem;
cursor: pointer;
width: 30%;
margin-left: 1.5%;
margin-right: 1.5%;
line-height: 1.2;
padding: 0.5rem;
text-align: center;
}
.suggestion:hover {
background: orange;
}
#suggestions-more {
color: #555;
cursor: pointer;
font-size: 1rem;
font-style: italic;
margin-top: 1rem;
text-align: center;
}
.goal-composer-modal {
position: absolute;
top: 0;
left: 60%;
height: 100%;
width: 40%;
z-index: 100;
background-color: rgba(0,0,0,0.5);
}
.goal-composer {
background: white;
border-radius: 1rem;
margin: 0 auto;
margin-top: 1rem;
padding: 1rem;
width: 75%;
}
</style>
</head>
<body>
<main>
<div id="transcript-container">
<div id="transcript">
<div id="transcript-header">
<h3>Who is involved?</h3>
<div id="dramatis-personae"></div>
<h3>What has happened?</h3>
</div>
<div id="transcript-entries"></div>
<!--
<div class="entry">
<p class="system-text">Bella discussed research ideas with Anya</p>
<p class="user-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="entry">
<p class="system-text">Izzy discussed their shared value of curiosity with Bella</p>
<p class="user-text empty">Your description here...</p>
</div>
<div class="entry">
<p class="system-text">Flora publicly confronted Izzy about valuing curiosity over authority</p>
<p class="user-text">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.<br><br>Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</p>
</div>
-->
</div>
<div id="suggestions-container">
<h3 id="suggestions-header">What happens next?</h3>
<div id="suggestions">
<!--
<div class="suggestion selected"><strong>Bella</strong> argues about authority with <strong>Flora</strong></div>
<div class="suggestion"><strong>Nicole</strong> discusses authority with <strong>Flora</strong></div>
<div class="suggestion"><strong>Bella</strong> hangs out with <strong>Izzy</strong></div>
-->
</div>
<div id="suggestions-more">see more...</div>
</div>
</div>
<div id="goals-container">
<h3 id="goals-header">Where are we going?</h3>
<div id="goals">
<!--
<div class="goal">
<div class="goal-title">Righteous revenge</div>
<div class="goal-part complete"><strong>Flora</strong> harms <strong>Izzy</strong></div>
<div class="goal-part selected"><em>Someone</em> confronts <strong>Flora</strong></div>
<div class="goal-part"><strong>Flora</strong> harms <em>someone</em></div>
<div class="goal-part"><em>Someone</em> swears revenge on <strong>Flora</strong></div>
<div class="goal-part"><em>Someone</em> harms <strong>Flora</strong></div>
</div>
<div class="goal">
<div class="goal-title">Values conflict</div>
<div class="goal-part complete"><strong>Izzy</strong> does something motivated by <strong>curiosity</strong> that harms <strong>authority</strong></div>
<div class="goal-part complete"><strong>Flora</strong> confronts <strong>Izzy</strong> about the importance of <strong>authority</strong></div>
<div class="goal-part selected"><em>Someone</em> argues with <em>someone</em> about <strong>authority</strong></div>
<div class="goal-part"><em>Someone</em> who values <strong>authority</strong> enlists an <em>ally</em></div>
<div class="goal-part"><em>Someone</em> who values <strong>curiosity</strong> enlists an <em>ally</em></div>
<div class="goal-part">...</div>
</div>
<div class="goal" style="position:relative;top:-5rem;opacity:0.5">
<div class="goal-title">Values conflict</div>
<div class="goal-part"><em>Person A</em> does something motivated by <em>Value A</em> that harms <em>Value B</em></div>
<div class="goal-part"><em>Person B</em> confronts <em>Person A</em> about the importance of <em>Value B</em></div>
<div class="goal-part">...</div>
</div>
-->
</div>
</div>
<div id="goal-composer-modal"></div>
</main>
<script crossorigin src="https://unpkg.com/react@17/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
<script src="datascript-0.18.4.min.js"></script>
<script src="winnow/util.js"></script>
<script src="winnow/parser.js"></script>
<script src="winnow/compiler.js"></script>
<script src="winnow/runner.js"></script>
<script src="main.js"></script>
</body>
</html>