29 lines
No EOL
905 B
HTML
29 lines
No EOL
905 B
HTML
<div id="ovo_thread" class="mt-4 mb-4">
|
|
<div class="flex flex-col items-center">评论插件加载中 OvO</div>
|
|
</div>
|
|
<link rel="stylesheet" href="//unpkg.com/@ovojs/ovo/dist/style.css">
|
|
<script type="text/javascript">
|
|
(function () {
|
|
if (window.location.hostname == "localhost")
|
|
return;
|
|
|
|
const script = document.createElement('script');
|
|
script.type = 'text/javascript';
|
|
script.src = '//unpkg.com/@ovojs/ovo';
|
|
(document.getElementsByTagName('head')[0] ||
|
|
document.getElementsByTagName('body')[0])
|
|
.appendChild(script);
|
|
|
|
script.addEventListener('load', function () {
|
|
const target = document.getElementById('ovo_thread');
|
|
target.innerHTML = '';
|
|
new OvO({
|
|
target,
|
|
props: {
|
|
server: "{{ .Site.Params.ovo.server }}",
|
|
placeholder: "{{ .Site.Params.ovo.placeholder }}"
|
|
}
|
|
})
|
|
})
|
|
})();
|
|
</script> |