mirror of https://github.com/jkjoy/sunpeiwen.git
26 lines
756 B
Plaintext
26 lines
756 B
Plaintext
script.
|
|
function loadLivere () {
|
|
if (typeof LivereTower === 'object') {
|
|
window.LivereTower.init()
|
|
}
|
|
else {
|
|
(function(d, s) {
|
|
var j, e = d.getElementsByTagName(s)[0];
|
|
if (typeof LivereTower === 'function') { return; }
|
|
j = d.createElement(s);
|
|
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
|
|
j.async = true;
|
|
e.parentNode.insertBefore(j, e);
|
|
})(document, 'script');
|
|
}
|
|
}
|
|
|
|
if ('!{theme.comments.use[0]}' === 'Livere' || !!{theme.comments.lazyload}) {
|
|
if (!{theme.comments.lazyload}) btf.loadComment(document.getElementById('lv-container'), loadLivere)
|
|
else loadLivere()
|
|
}
|
|
else {
|
|
function loadOtherComment () {
|
|
loadLivere()
|
|
}
|
|
} |