Skip to content

Commit 4f3ccce

Browse files
authored
Merge pull request #106 from xdorro/tuananh
Tuananh
2 parents cbe9ba8 + 3687205 commit 4f3ccce

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server:
2-
port: 8080
2+
port: 80
33
compression:
44
enabled: true
55

src/main/resources/static/assets/css/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/templates/layouts/frontend/layout.html

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,21 +210,30 @@ <h5 class="modal-title fw-bold">Delivery Address</h5>
210210
<!-- Messenger Plugin chat Code -->
211211
<div id="fb-root"></div>
212212

213+
<!-- Your Plugin chat code -->
214+
<div id="fb-customer-chat" class="fb-customerchat">
215+
</div>
216+
217+
<script>
218+
var chatbox = document.getElementById('fb-customer-chat');
219+
chatbox.setAttribute("page_id", "108630538586888");
220+
chatbox.setAttribute("attribution", "biz_inbox");
221+
</script>
222+
223+
<!-- Your SDK code -->
213224
<script>
214225
window.fbAsyncInit = function() {
215226
FB.init({
216-
appId : '421915352902277',
217-
xfbml : true,
218-
version : 'v14.0'
227+
xfbml : true,
228+
version : 'v14.0'
219229
});
220-
FB.AppEvents.logPageView();
221230
};
222231

223-
(function(d, s, id){
232+
(function(d, s, id) {
224233
var js, fjs = d.getElementsByTagName(s)[0];
225-
if (d.getElementById(id)) {return;}
234+
if (d.getElementById(id)) return;
226235
js = d.createElement(s); js.id = id;
227-
js.src = "//connect.facebook.net/en_US/sdk.js";
236+
js.src = 'https://connect.facebook.net/vi_VN/sdk/xfbml.customerchat.js';
228237
fjs.parentNode.insertBefore(js, fjs);
229238
}(document, 'script', 'facebook-jssdk'));
230239
</script>

0 commit comments

Comments
 (0)