-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathscript.js
58 lines (39 loc) · 1.68 KB
/
script.js
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
const { demo, group, wait } = require("demokit");
const { br, type, paste, key, backspace } = require("demokit/keyboard");
const scene = require("demokit/scene");
const recording = require("demokit/recording");
const window = require("demokit/window");
const editor = require("demokit/window/code-editor");
const browser = require("demokit/window/browser");
const dialog = require("./dialog");
const comment = require("./comment");
const mouse = require("demokit/mouse");
const NotebookDemo = require("./notebook-demo");
const EndpointDemo = require("./endpoint-demo");
const EmbedDemo = require("./embed-demo");
const EndCredits = require("./end-credits");
const { link } = require("demokit/html");
module.exports = <demo>
<link rel = "stylesheet" href = "https://fonts.googleapis.com/css?family=Lato:400,400i|Roboto" />
<link rel = "stylesheet" href = "https://code.cdn.mozilla.net/fonts/fira.css" />
<wait.loaded font = "'Fira Sans'" />
<wait.loaded font = "Roboto" />
<scene width = { 1624 } height = { 868 } background = "rgba(0, 0, 0, 1)" />
<dialog id = "dialog"
contentRect = { { origin: { x: "center", y: "center" }, size: { width: 1624, height: 868 } } } />
<NotebookDemo.initialize/>
<EndpointDemo.initialize/>
<EmbedDemo.initialize/>
<wait delay = { 1000 } />
<mouse.move window = "dialog" selector = ".logo" dy = { 300 } />
<mouse.hide/>
<recording.start filePath = { "videos/video" } clickRegions = { true } />
<wait delay = { 2000 } />
<dialog.initial id = "dialog" />
<NotebookDemo />
<EndpointDemo />
<EmbedDemo />
<EndCredits/>
<wait delay = { 10000 } />
<recording.stop />
</demo>;