feat(demo): update

0.2.5(deprecated)
SukkaW 7 years ago
parent e5c9f69099
commit 8925fc4ffc

@ -72,8 +72,8 @@
</head>
<body>
<a href="https://github.com/SukkaW/DisqusJS" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80"
viewBox="0 0 250 250" style="fill:#70B7FD; color:#fff; position: absolute; top: 0; border: 0; right: 0;"
<a href="https://github.com/SukkaW/DisqusJS" class="github-corner" aria-label="View source on GitHub"><svg width="80"
height="80" viewBox="0 0 250 250" style="fill:#70B7FD; color:#fff; position: absolute; top: 0; border: 0; right: 0;"
aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
@ -84,7 +84,7 @@
<div class="dsqjs-demo-descr">
<h1>DisqusJS Demo</h1>
<p>Disqus 替代方案 - 使用 Disqus API 渲染评论列表</p>
<p>如果您当前网络支持访问 DisqusDisqusJS 将会自动加载完整 DISQUS 模式。如果需要体验你可以 <a href="#" onclick="forceDisqusJS()">点击这里</a>
<p>如果您当前网络支持访问 DisqusDisqusJS 将会自动加载完整 DISQUS 模式。如果需要预览 DisqusJS 你可以 <a href="javascript:;" onclick="forceDisqusJS()">点击这里</a>
来强制使用 DisqusJS 的评论基础模式</p>
</div>
<div class="comment-container">
@ -103,7 +103,14 @@
};
</script>
<script>
console.log()
function forceDisqusJS() {
try {
localStorage.setItem('disqusjs_mode', 'dsqjs');
} catch (o) {
console.log("Failed to set localStorage item");
}
location.reload();
}
</script>
<script src="https://cdn.jsdelivr.net/npm/disqusjs@0.2.0/dist/disqus.js"></script>
</body>

Loading…
Cancel
Save