-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathindex.html
199 lines (199 loc) · 8.21 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
<html lang="en">
<head>
<title>gifcast</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="lib/xtermjs/xterm.css" />
<script src="lib/xtermjs/xterm.js"></script>
<script src="lib/xtermjs/addon-canvas.js"></script>
<script src="lib/omggif.js"></script>
</head>
<body>
<!-- Add a spacer div so text doesn't overlap with "Fork me on GitHub" -->
<div style="width: 100px; height: 100px; float: right; display: inline-block"></div>
<a href="https://github.com/dstein64/gifcast">
<img style="position: absolute; top: 0; right: 0; border: 0; width: 149px; height: 149px;"
src="forkme_right_white_ffffff.png"
alt="Fork me on GitHub">
</a>
<h1>gifcast</h1>
<p>
Select an <a href="https://github.com/asciinema/asciinema">asciinema</a>
cast file, configure options, then click <em>Render</em> to generate an animated GIF.
</p>
<p>
The animated GIF can be saved by using your browser’s
<em>Save Image As...</em> functionality, invoked by right-clicking the image.
</p>
<details>
<summary><span class="summary">Details</span></summary>
<p>
Oversized images are scaled down to fit on the screen. Saving retains the full
resolution.
</p>
<p>
Browsers throttle background tabs, so be sure to keep this page in the foreground
during rendering to prevent a pause.
</p>
</details>
<details id="theme_grid_link">
<summary><span class="summary">Themes</span></summary>
<div id="theme_grid">
<!-- This grid is populated by main.js -->
</div>
</details>
<details id="font_examples_link">
<summary><span class="summary">Fonts</span></summary>
<table id="font_examples">
<!-- This table is populated by main.js -->
<tbody></tbody>
</table>
</details>
<form autocomplete="off">
<fieldset id="fieldset">
<table id="options">
<tr>
<td><label for="file_selector">file</label></td>
<td>
<input id="file_selector"
type="file"
accept="application/x-asciicast, .cast"
value="">
</td>
</tr>
<tr>
<td>
<a class="tooltip">
size
<span>
A larger selected <em>size</em> will result in a higher-resolution GIF.
</span>
</a>
</td>
<td>
<select id="size">
<option value="10">extra small</option>
<option value="15">small</option>
<option value="20" selected="selected">medium</option>
<option value="25">large</option>
<option value="30">extra large</option>
</select>
</td>
</tr>
<tr><td><br></td></tr>
<tr>
<td>
<a class="tooltip">
contrast<br>gain
<span>Dynamically changes colors to increase contrast.</span>
</a>
</td>
<td>
<select id="contrast_gain">
<option value="1" selected="selected">none</option>
<option value="4.5">low</option><!-- Minimum for WCAG AA compliance -->
<option value="7">medium</option><!-- Minimum for WCAG AAA compliance -->
<option value="14">high</option>
<option value="21">full</option><!-- White on black or black on white -->
</select>
</td>
</tr>
<tr>
<td><label for="cursor">cursor</label></td>
<td>
<select id="cursor">
<option>bar</option>
<option selected="selected">block</option>
<option>none</option>
<option>underline</option>
</select>
</td>
</tr>
<tr>
<td><label for="font">font</label></td>
<td>
<select id="font" disabled>
<!-- This menu is populated by main.js -->
<!-- The initial 'monospace' default is deleted once the fonts are loaded -->
<option id="initial_font">monospace</option>
</select>
</td>
</tr>
<tr>
<td>
<a class="tooltip">
idle<br>limits
<span>
The minimum and maximum terminal inactivity durations, specified in
milliseconds (<em>empty</em> for no limit).
</span>
</a>
</td>
<td>
<input id="idle_limit_min" placeholder="min" type="number" min="0">
<input id="idle_limit_max" placeholder="max" type="number" min="0">
</td>
</tr>
<tr>
<td>
<a class="tooltip">
play<br>count
<span>
The number of times to play the recording (<em>empty</em> loops infinitely).
</span>
</a>
</td>
<td>
<input id="play_count" type="number" min="1">
</td>
</tr>
<tr>
<td><a class="tooltip">
shave
<span>
Specifies the number of cells to remove from each corresponding edge.
</span>
</a></td>
<td>
<table>
<tr>
<td rowspan="2">
<input id="shave_left" class="shave" type="number" value="0" min="0">
</td>
<td>
<input id="shave_top" class="shave" type="number" value="0" min="0">
</td>
<td rowspan="2">
<input id="shave_right" class="shave" type="number" value="0" min="0">
</td>
</tr>
<tr>
<td>
<input id="shave_bottom" class="shave" type="number" value="0" min="0">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><label for="theme">theme</label></td>
<td>
<select id="theme">
<!-- This menu is populated by main.js -->
</select>
</td>
</tr>
</table>
<br>
<button id="render_button" disabled>Render</button>
</fieldset>
</form>
<div id="loading">
<progress id="progress" max="100" value="0"></progress>
<span id="progress_text">0.0%</span>
</div>
<div id="modal"></div>
<script src="main.js"></script>
</body>
</html>