-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemo1.html
35 lines (26 loc) · 888 Bytes
/
demo1.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <script src="https://flexatar-generic-shared-files.s3.amazonaws.com/js/ftar_view.js"> </script> -->
<!-- <script src="https://flexatar-generic-shared-files.s3.amazonaws.com/js/ftar_lipsync.js"> </script> -->
<script src="/js/ftar_view.js"> </script>
<script src="/js/ftar_lipsync.js"> </script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flexatar Demo 1</title>
</head>
<body>
<script>
const flexatarLinksDict = {{.FtarList}};
const flexatarLink = Object.values(flexatarLinksDict)[0];
const token = "{{.Token}}";
FtarView.makeFlexatarCanvas(
token,
flexatarLink,
{width:240,height:320}
).then(ftarCanvas=>{
document.body.appendChild(ftarCanvas)
})
</script>
</body>
</html>