-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
154 lines (153 loc) · 4.54 KB
/
index.html
File metadata and controls
154 lines (153 loc) · 4.54 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<div>
<style>
@media all and (orientation:portrait)
{
.chatbot{
font-family: Helvetica, Arial, sans-serif;
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
right: 2%;
bottom: 2%;
width: 80vw; /* Full width */
height: 70vh; /* Full height */
overflow: hidden; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
color: snow;
padding:1%;
border-radius: 5px;
}
}
@media all and (orientation:landscape)
{
.chatbot{
font-family: Helvetica, Arial, sans-serif;
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
right: 2%;
bottom: 2%;
width: 20%; /* Full width */
height: 500px; /* Full height */
overflow: hidden; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
color: snow;
padding:1%;
border-radius: 5px;
}
}
.botImageContainer{
border-radius: 50%;
overflow: hidden;
width: 80px;
height: 80px;
border-style: solid;
background: #000;
float: left;
}
.botImage{
width: 250%;
background: #000;
}
.close_852{
color: red;
font-weight: 900;
margin:0;
border-radius: 50%;
position: absolute;
top:0px;
right:0px;
width: 25px;
height:25px;
text-align: center;
padding: 0;
}
#container_852
{
position: absolute;
bottom:5%;
width: 90%;
height: 20px;
}
#input_852
{
width: 90%;
height:100%;
}
#output_852
{
height: 65%;
overflow: auto;
font-size:14px;
width: 100%;
}
#messages_852
{
list-style: none;
margin: 0;
padding: 0;
}
#messages_852 li{
display:inline-block;
clear: both;
padding: 5px;
padding-left: 20px;
padding-right:20px;
border-radius: 30px;
width: auto;
max-width: 60%;
margin-bottom: 2px;
text-align: center;
margin-bottom: 10px;
}
.youChat_852{
background: #eee;
float: left;
color: #000;
}
.botChat_852
{
float: right;
background: #0084ff;
color: #fff;
}
#myBtn_852
{
width: 80px;
height: 80px;
border-radius: 50%;
position: fixed;
right: 2%;
bottom: 2%;
}
</style>
<button id="myBtn_852">ChatBot</button>
<div class='chatbot' id='chatbot'>
<button class="close_852" id="close_852">×</button>
<div class="botImageContainer">
<img class="botImage" id="botImage" src="http://ahrenfullstop.com/assets/images/botImg.png"/>
</div>
<br>
<h3 style="text-align: center;color: #fff;">What Can I help You With?</h3>
<br><br>
<!--<p>Suggestions to ask for:</p>
<ul>
<li>A contact <strong>email</strong></li>
<li>a <strong>link</strong> to a special part of the site </li>
<li><strong>Why</strong> this site exists</li>
<li>Tell me your name</li>
</ul>-->
<div id="output_852">
<ul id="messages_852"></ul>
</div>
<div id="container_852">
<input type="text" id="input_852" onkeydown="isenter(event)" value="">
</div>
</div>
<!-- chatbot script
<script src="https://ahrenfullstop.com/chatbot.js"></script>-->
<script src="./chatbot.js"></script>
</div>