Code tích hợp Live Chat Facebook cho web trên máy tính và mobile
ITZ sẽ giúp bạn thêm Live Chat Facebook vào web đơn giản nhất, Facebook Messenger cho website hiển thị tốt trên Mobile, iPad và PC, tự động mở ứng dụng Facebook Messenger khi chat trên web vào bằng thiết bị di động
<style type=”text/css”>
.thing, .thing .circle, .magnet {
border-radius: 50%;
width: 62px;
height: 62px;
}
.thing .circle, .magnet-zone {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000;
perspective: 1000;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.explain {
opacity: 0.5;
position: absolute;
left: 0;
right: 0;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.messenger {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}
.messenger:before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
content: ”;
opacity: 0;
background: -webkit-gradient(linear, 0 0, 0 100%, color-stop(0.8, transparent), to(rgba(0, 0, 0, 0.25)));
background: -webkit-linear-gradient(transparent 80%, rgba(0, 0, 0, 0.25) 100%);
background: linear-gradient(transparent 80%, rgba(0, 0, 0, 0.25) 100%);
-webkit-transition: opacity 300ms ease-in-out;
transition: opacity 300ms ease-in-out;
}
* {
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: transparent;
/* For some Androids */
}
.thing {
position: absolute;
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
margin: 0px;
cursor: pointer;
right: -65px;
position: fixed;
top: 130px;
z-index: 998;
}
.fbmessenger:active .thing,.fbmessenger:active .thing .circle,.fbmessenger:active .magnet {
border-radius: 50%;
width: 55px;
height: 55px;
}
.fbmessenger:active ._2pon {
height: 15px;
width: 15px;
}
.fbmessenger:active ._2poo {
background: red;
padding-left: 5px;
color: #fff;
font-weight: bold;
font-size: 10px;
border-radius: 50%;
}
#android, #ios, #computer{ display: none;}
.thing .circle {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #888;
background-image: url(Link_Ảnh);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
-webkit-transition: -webkit-transform 50ms linear;
transition: transform 50ms linear;
}
.thing.edge {
-webkit-transition: all 400ms cubic-bezier(0.175, 0.885, 0.345, 1.1);
transition: all 400ms cubic-bezier(0.175, 0.885, 0.345, 1.1);
}
._1ht1 ._4ld_ {
bottom: -1px;
right: -1px;
}
._4ld_ {
top: -2px;
position: absolute;
left: 0px;
}
._2pom {
height: 18px;
width: 18px;
}
._2poo {
background: red;
padding-left: 5px;
color: #fff;
font-weight: bold;
font-size: 12px;
border-radius: 50%;
}
._2pon {
height: 18px;
width: 18px;
}
.magnet-zone {
pointer-events: none;
-webkit-transition: -webkit-transform 400ms cubic-bezier(0.175, 0.885, 0.145, 1.22);
transition: transform 400ms cubic-bezier(0.175, 0.885, 0.145, 1.22);
}
.magnet-zone {
position: absolute;
text-align: center;
bottom: 10px;
padding: 10px 20px;
left: 50%;
-webkit-transform: translate(-50%, 100%) translateZ(0);
transform: translate(-50%, 100%) translateZ(0);
}
.magnet-zone.overlap .magnet {
-webkit-transform: scale(1.08) translateZ(0);
transform: scale(1.08) translateZ(0);
}
.touching .circle {
-webkit-transform: scale(0.9) translateZ(0);
transform: scale(0.9) translateZ(0);
}
.moving .container:before {
opacity: 1;
}
.moving .magnet-zone {
-webkit-transform: translate(-50%, 0) translateZ(0);
transform: translate(-50%, 0) translateZ(0);
}
.magnet-zone:after {
pointer-events: none;
content: ‘