2022-11-08 11:07:48 +01:00
|
|
|
<div id="ovo_thread" class="mt-4 mb-4">
|
2021-08-29 17:55:45 +02:00
|
|
|
<div class="flex flex-col items-center">评论插件加载中 OvO</div>
|
2021-07-19 08:36:50 +02:00
|
|
|
</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>
|