-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (48 loc) · 1.09 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
<!--
Copyright (c) 2018 ml5
This software is released under the MIT License.
https://opensource.org/licenses/MIT
-->
<html>
<head>
<meta charset="UTF-8">
<title>Live Emoji Keyboard</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/addons/p5.dom.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js" type="text/javascript"></script>
<style>
body {
font-family: Tahoma;
text-align:center;
}
button {
margin: 6px 6px 6px 0;
padding: 4px;
font-size: 14px;
}
video {
width: 300;
height: 300;
}
p {
display: inline;
font-size: 16px;
}
.emoji {
font-size: 24px;
}
textarea {
font-size: 50px;
}
</style>
</head>
<body>
<h2>Live Emoji Keyboard</h2>
<div id="videoContainer"></div>
<button id="typeEmoji">CONVERT</button><br><br><br>
<div class="textareaWraper">
<textarea name="message" id="message" rows="3" cols="30"></textarea>
</div>
<script src="sketch.js"></script>
</body>
</html>