"Chat bot"
Bootstrap 3.3.0 Snippet by sumi9xm

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div id="Smallchat">
<div class="Layout Layout-open Layout-expand Layout-right" style="background-color: #3F51B5;color: rgb(255, 255, 255);opacity: 5;border-radius: 10px;">
<div class="Messenger_messenger">
<div class="Messenger_header" style="background-color: rgb(22, 46, 98); color: rgb(255, 255, 255);">
<h4 class="Messenger_prompt">How can we help you?</h4> <span class="chat_close_icon"><i class="fa fa-window-close" aria-hidden="true"></i></span> </div>
<div class="Messenger_content">
<div class="Messages_list">
<div class="bot-msg left-slide">
<span>Hello Sarah! How are you?</span>
</div>
<div class="user-msg right-slid">
<span>Sure, I am good</span>
</div>
<div class="boot-btn bounceIn">
<div class="ask-bubble">Good</div>
<div class="ask-bubble">Bad</div>
<div class="ask-bubble">Well</div>
</div>
</div>
</div>
</div>
</div>
<!--===============CHAT ON BUTTON STRART===============-->
<div class="chat_on"> <span class="chat_on_icon"><i class="fa fa-comments" aria-hidden="true"></i></span> </div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
/*===========================
CHAT BOOT MESSENGER
===========================*/
#Smallchat .Messages_list {
padding-top:15px;
}
.chat_close_icon {
cursor:pointer;
color: #fff;
font-size:16px;
position: absolute;
right: 12px;
z-index: 9;
}
.chat_on {
position: fixed;
z-index: 10;
width: 45px;
height: 45px;
right: 15px;
bottom:20px;
background-color: #8a57cf;
color: #fff;
border-radius: 50%;
text-align: center;
padding: 9px;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)!important;
cursor: pointer;
display: block;
}
.chat_on_icon{
color:#fff;
font-size:19px;
text-align:center;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CHAT BOOT MESSENGER////////////////////////
$(document).ready(function(){
$(".chat_on").click(function(){
$(".Layout").toggle();
$(".chat_on").hide(300);
});
$(".chat_close_icon").click(function(){
$(".Layout").hide();
$(".chat_on").show(300);
});
$(".ask-bubble").click(function(){
$('.boot-btn').hide();
$(".user-msg").addClass('open');
});
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: