-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (75 loc) · 1.94 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
<!--
* Title: Matthew Loewen Chatbot
* Name: Matthew Loewen
* Date: 5/7/2018
* Description: This is a chatbot that knows all about Matthew Loewen and
* has been created to try and assist Matthew get a job.
-->
<!DOCTYPE html>
<html>
<head>
<title>Talk to Matt</title>
<!-- import our libraries + scripts-->
<script src="https://unpkg.com/rivescript@latest/dist/rivescript.min.js"></script>
<script src="libraries/p5.js"></script>
<script src="libraries/p5.dom.js"></script>
<script src="libraries/p5.speech.js"></script>
<script src="libraries/p5.sound.js"></script>
<script src="sketch.js"></script>
<!-- Add some styles to the page-->
<style>
#user_input {
min-width: 200px;
}
#submit {
margin-top: 10px;
display: block;
clear: left;
}
body {
text-align: center;
min-width: 450px;
}
button {
margin: auto;
}
#clear {
margin-top: 150px;
}
</style>
<!-- Clear the users text input on submit-->
<script>
//clears user input upon hitting submit
function clearValue() {
document.getElementById('user_input').value = '';
}
</script>
</head>
<body>
<!-- instructions -->
<h1>The Matthew Loewen Chatbot!</h1>
<p>Hello I know all about Matthew Loewen and what we has done with his life.</p>
<p>Ask me about his resume, what kind of person he is, his interests, etc.</p>
<p>Remember to turn your speakers on so you can hear me speak.</p>
<p>If you've found a bug please email Matthew at [email protected]</p>
<p>
<strong>Have fun!</strong>
</p>
<!-- form -->
<p>
Speak to me:
<input id="user_input" autofocus></input>
<button id="submit" onclick="clearValue();">submit</button>
</p>
<p>
reply:
<h4 id="output"></h4>
</p>
<h2 id="clear">More about me</h2>
<p> VIDEO DOCUMENTATION!
<a href="https://vimeo.com/268530193">HERE</a>
</p>
<p>I am a bot developed in rivescript. I use p5.js for some of my functoinality</p>
<p>For my voice I use p5.speech</p>
</body>
</html>