-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
217 lines (188 loc) · 6.23 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
<!Doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="icon" href="assets/icon.png">
<title>Castaphone</title>
<meta property="og:title" content="Castaphone">
<meta name="description" content="Castaphone is an in-browser, dictaphone-like, screencast recorder.">
<meta property="og:description" content="Castaphone is an in-browser, dictaphone-like, screencast recorder.">
<meta property="og:url" content="https://defeo.lu/castaphone">
<meta property="og:image" content="https://defeo.lu/castaphone/assets/poster.png">
<meta name="twitter:card" content="summary">
<link rel="author" href="https://defeo.lu/">
<link rel="me" href="https://defeo.lu/">
<link rel="me" href="https://github.com/defeo">
<link rel="me" href="https://twitter.com/@luca_defeo">
<meta name="twitter:site" content="@luca_defeo">
<meta name="twitter:creator" content="@luca_defeo">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/sarah.css">
<link rel="stylesheet" href="assets/pompiere.css">
<style>
* { margin: 0; padding: 0; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
body { font-family: 'Pompiere', sans-serif; font-size: 10vmin; }
h1, h2 { font-family: 'SarahCaps'; line-height: 1.1; text-align: center; }
h1 { font-size: 220%; }
h3, h4, h5, h6 {text-align: center; }
main {
height: 100vh;
overflow-y: scroll;
scroll-snap-type: y mandatory;
scroll-behavior: smooth;
}
section {
height: 100vh;
scroll-snap-align: start;
display: flex;
flex-flow: column nowrap;
align-items: center;
justify-content: space-evenly;
position: relative;
}
section:nth-child(even) { background-color: #ffc3cd; color: #373737; }
section:nth-child(odd) { background-color: #45006c; color: white; }
section:nth-child(even) a { color: #3900d7; }
section:nth-child(odd) a { color: #ff7800; }
section:not(:last-child)::after {
content: "↓";
cursor: pointer;
position: absolute;
bottom: 0.5ex;
opacity: 0.1;
font-size: 60%;
transition: opacity 0.5s;
}
section:hover:not(:last-child)::after {
opacity: 0.5;
}
.logo { height: 1.1em; }
#watch {
text-align: center;
font-size: 60%;
margin-top: 1ex;
}
button {
font-family: inherit;
font-size: inherit;
color: inherit;
background: rgba(255,255,255,0.3);
padding: 0 8px;
margin: 0 8px;
cursor: pointer
}
button:hover {
background: rgba(255,255,255,0.5);
}
#hints {
font-size: 60%;
display: grid;
grid-template-columns: repeat(4, auto);
grid-column-gap: 6px;
transition: opacity 1s;
}
@media (max-width:150vh) {
#hints { grid-template-columns: repeat(2, auto); }
}
#hints div:nth-child(even) {
font-weight:bold;
padding-right: 10px;
}
pre {
font-size: 4vmin;
background-color: rgba(255,255,255,0.2);
padding: 10px;
}
.kw { color: #ff7800; }
</style>
<script type="module">
import {Castaphone} from "./castaphone.js";
let cast = new Castaphone();
document.querySelector("#launch").addEventListener('click', (e) => {
cast.run()
.then(() => {
cast.visualisation();
document.querySelector("#hints").style.opacity = '1';
})
.catch((err) => alert(err));
e.stopPropagation();
});
document.querySelector('main').addEventListener('click', (e) => {
e.currentTarget.scrollBy(0, window.innerHeight);
});
</script>
</head>
<body>
<main>
<section id="first">
<h1>Ca<img class="logo" src="assets/logo.png" alt="s"/>taphone</h1>
<div>
<h3>A dictaphone, a screencaster!</h3>
<p id="watch"><a href="#video">
<svg viewBox="-11 -11 22 22" style="height:1em;vertical-align:sub" xmlns="http://www.w3.org/2000/svg">
<circle fill="none" stroke="currentcolor" cx="0" cy="0" r="10"/>
<path fill="currentcolor" d="M -3.5,6.06 L 7,0 L -3.5,-6.06 Z"/>
</svg>
watch the video</a>
</p>
</div>
</section>
<section>
<h2>What for?</h2>
<ul>
<li>Slideshows with voiceover,</li>
<li>Screencasts, demos,</li>
<li>Recording anything, really!</li>
</ul>
</section>
<section>
<h2>Why a "dictaphone"?</h2>
<p><small>She sells sea shells by the seashore.<br>
The shells she sells are surely seashells.</br>
So if she sells shells on the seashore,</br>
I'm sure she sells seashore shells.</small></p>
</section>
<section>
<h3>Record, listen, thrash, record again</h3>
<p>Try it now!
<button id="launch">Launch
Castaphone</button></p>
<div id="hints" style="opacity:0;">
<div>Record <small>(dictaphone)</small></div><div>F1</div>
<div>Record <small>(continuous)</small></div><div>F2</div>
<div>Playback last</div><div>Ctrl+Space</div>
<div>Thrash last</div><div>Ctrl+Backspace</div>
<div>Recover last</div><div>Ctrl+Shift+Backspace</div>
<div>Download</div><div>Ctrl+S</div>
</div>
</section>
<section>
<h2>Make it yours</h2>
<p>Add Castaphone to any HTML page, no server needed!</p>
<pre><span class="kw">import</span> {Castaphone} <span class="kw">from</span> "./castaphone.js";
<span class="kw">let</span> cast = <span class="kw">new</span> Castaphone();</pre>
<p><small>Example app:</small> <a href="pdf">a PDF
recorder</a>
<small>based on
<a href="https://mozilla.github.io/pdf.js"
target="_blank"><img src="https://mozilla.github.io/pdf.js/images/logo.svg"
alt="PDF.js" style="height:.8em"></a></small></p>
</section>
<section>
<h2>Learn more</h2>
<h4>Read the docs, seek help, contribute:</h4>
<p><a href="https://github.com/defeo/castaphone">github.com/defeo/castaphone</a></p>
</section>
<section id="video">
<h2>Watch the video</h2>
<iframe
src="https://player.vimeo.com/video/398134164"
width="640" height="360" frameborder="0" allow="fullscreen" allowfullscreen
loading="lazy" sandbox="allow-scripts"></iframe>
</section>
</main>
</body>
</html>