mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-17 06:09:50 +02:00
use quicktalk as comment API
This commit is contained in:
@ -21,6 +21,10 @@
|
||||
<link rel="stylesheet" type="text/css" href="<?=HTTP_ROOT?>/rst/font-awesome.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?=HTTP_ROOT?>/rst/afx.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?=HTTP_ROOT?>/assets/style.css" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://chat.iohub.dev/assets/quicktalk.css" />
|
||||
<script src="https://chat.iohub.dev/assets/quicktalk.js"> </script>
|
||||
|
||||
<script src="<?=HTTP_ROOT?>/rst/afx.js"> </script>
|
||||
<script src="<?=HTTP_ROOT?>/rst/gscripts/jquery-3.2.1.min.js"> </script>
|
||||
<script src="<?=HTTP_ROOT?>/assets/main.js"></script>
|
||||
@ -54,6 +58,15 @@
|
||||
hljs.highlightBlock(block);
|
||||
hljs.lineNumbersBlock(block);
|
||||
});
|
||||
// comment
|
||||
|
||||
var options = {
|
||||
target: "quick_talk_comment_thread",
|
||||
api_uri: "https://chat.iohub.dev/comment",
|
||||
uri: "<?=url?>",
|
||||
page: $("#desktop")[0]
|
||||
};
|
||||
new QuickTalk(options);
|
||||
});
|
||||
<?lua end ?>
|
||||
window.twttr = (function(d, s, id) {
|
||||
|
@ -52,44 +52,10 @@
|
||||
end
|
||||
echo("</ul>")
|
||||
end?>
|
||||
<h1 class = "commentsec"></h1>
|
||||
<div id="disqus_thread"></div>
|
||||
<script>
|
||||
|
||||
/**
|
||||
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
|
||||
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
|
||||
|
||||
var disqus_config = function () {
|
||||
this.page.url = "<?=url?>"; // Replace PAGE_URL with your page's canonical URL variable
|
||||
this.page.identifier = "<?=std.md5(url)?>"; // Replace PAGE_IDENTIFIER with your
|
||||
};
|
||||
|
||||
(function() { // DON'T EDIT BELOW THIS LINE
|
||||
var d = document, s = d.createElement('script');
|
||||
s.src = 'https://https-blog-lxsang-me.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
|
||||
<!--div class = "commentform">
|
||||
<div class = "inputbox">
|
||||
<div class = "label">Name:</div>
|
||||
<input data-class = "data" type = "text" name = "name" />
|
||||
</div>
|
||||
|
||||
<div class = "inputbox">
|
||||
<div class = "label">Email:</div>
|
||||
<input data-class = "data" type = "text" name = "email" />
|
||||
</div>
|
||||
|
||||
<textarea data-class = "data" name = "content"></textarea>
|
||||
<div class = "inputboxbt">
|
||||
<div data-id="status"></div>
|
||||
<button data-id = "send" >Comment</button>
|
||||
</div>
|
||||
</div-->
|
||||
<h1 class = "commentsec">Comments</h1>
|
||||
<div>
|
||||
The comment editor supports <b>Markdown</b> document format. Your email is necessary to notify you of further updates on the discussion. It will be hidden from the public.
|
||||
</div>
|
||||
<div id="quick_talk_comment_thread"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user