mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
add fbchat to website
This commit is contained in:
parent
556c6c6221
commit
46c1ac9956
@ -3,6 +3,7 @@
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body>
|
||||
{{partial "fbchat.html" .}}
|
||||
{{partial "search.html" .}}
|
||||
<div class="singlePage">
|
||||
<!-- Begin actual content -->
|
||||
|
||||
30
layouts/partials/fbchat.html
Normal file
30
layouts/partials/fbchat.html
Normal file
@ -0,0 +1,30 @@
|
||||
<!-- Messenger Chat Plugin Code -->
|
||||
<div id="fb-root"></div>
|
||||
|
||||
<!-- Your Chat Plugin code -->
|
||||
<div id="fb-customer-chat" class="fb-customerchat">
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var chatbox = document.getElementById('fb-customer-chat');
|
||||
chatbox.setAttribute("page_id", "102531519118286");
|
||||
chatbox.setAttribute("attribution", "biz_inbox");
|
||||
</script>
|
||||
|
||||
<!-- Your SDK code -->
|
||||
<script>
|
||||
window.fbAsyncInit = function() {
|
||||
FB.init({
|
||||
xfbml : true,
|
||||
version : 'v14.0'
|
||||
});
|
||||
};
|
||||
|
||||
(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js';
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user