FastComments.com
Here you can edit and run the code snippet from our documentation.
Example Code Snippet "Widget Methods Example"
<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script> <div id="comment-count-methods"></div> <script> const widget = window.FastCommentsCommentCount(document.getElementById('comment-count-methods'), { tenantId: 'demo' }); // Update the widget to show a different page's count setTimeout(() => { widget.update({ tenantId: 'demo', urlId: 'different-page-id' }); }, 5000); // Destroy the widget after 10 seconds setTimeout(() => { widget.destroy(); }, 10000); </script>
Result