forked from teeso/Chatbot-Widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
94 lines (71 loc) · 3.43 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
<html>
<head>
<title>Chatbot Widget</title>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Raleway:500&display=swap" rel="stylesheet">
<!--Import Font Awesome Icon Font-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
<!--Import materialize.css-->
<link rel="stylesheet" type="text/css" href="static/css/materialize.min.css">
<!--Main css-->
<link rel="stylesheet" type="text/css" href="static/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container">
<!-- Modal for rendering the charts, declare this if you want to render charts,
else you remove the modal -->
<div id="modal1" class="modal">
<canvas id="modal-chart"></canvas>
</div>
<!--chatbot widget -->
<div class="widget">
<div class="chat_header">
<!--Add the name of the bot here -->
<span class="chat_header_title">Sara</span>
<span class="dropdown-trigger" href='#' data-target='dropdown1'>
<i class="material-icons">
more_vert
</i>
</span>
<!-- Dropdown menu-->
<ul id='dropdown1' class='dropdown-content'>
<li><a href="#" id="clear">Clear</a></li>
<li><a href="#" id="restart">Restart</a></li>
<li><a href="#" id="close">Close</a></li>
</ul>
</div>
<!--Chatbot contents goes here -->
<div class="chats" id="chats">
<div class="clearfix"></div>
</div>
<!--keypad for user to type the message -->
<div class="keypad">
<textarea id="userInput" placeholder="Type a message..." class="usrInput"></textarea>
<div id="sendButton"><i class="fa fa-paper-plane" aria-hidden="true"></i></div>
</div>
</div>
<!--bot profile-->
<div class="profile_div" id="profile_div">
<img class="imgProfile" src="static/img/botAvatar.png" />
</div>
<!-- Bot pop-up intro -->
<div class="tap-target" data-target="profile_div">
<div class="tap-target-content">
<h5 class="white-text">Hey there 👋</h5>
<p class="white-text">I can help you get started with Rasa and answer your technical questions.</p>
</div>
</div>
</div>
<!--JavaScript at end of body for optimized loading-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="static/js/materialize.min.js"></script>
<!--Main Script -->
<script type="text/javascript" src="static/js/script.js"></script>
<!--Chart.js Script -->
<script type="text/javascript" src="static/js/chart.min.js"></script>
</body>
</html>