-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment.js
25 lines (25 loc) · 863 Bytes
/
comment.js
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
---
layout: null
---
'use strict';
{
const page = document.body.querySelector('article.post-text').parentElement;
page.appendChild(document.createElement('hr'));
const element = document.createElement('div');
element.id = 'comments';
page.appendChild(element);
window.Comment = new Valine({
av: AV,
el: '#comments',
app_id: '{{ site.valine.appid }}',
app_key: '{{ site.valine.appkey }}',
placeholder: '{{ site.valine.placeholder }}',
recordIP: '{{ site.valine.recordIP }}',
enableQQ: '{{ site.valine.enableQQ }}',
pageSize: {% if site.valine.pageSize %}{{ site.valine.pageSize }} {% else %} 10{% endif %},
avatar: 'retro',
serverURLs: 'https://' + '{{ site.valine.appid }}'.substring(0, 8) + '.api.lncldglobal.com'
});
loadScript('//apis.google.com/js/api:client.js');
loadScript('{{ site.alternateurl }}/assets/js/google.js');
}