57 lines
2.1 KiB
Plaintext
Executable File
57 lines
2.1 KiB
Plaintext
Executable File
<div id="disqus_thread"></div>
|
|
|
|
<!-- add animation -->
|
|
<style>
|
|
.disqus_click_btn {
|
|
line-height: 30px;
|
|
margin: 0;
|
|
min-width: 50px;
|
|
padding: 0 14px;
|
|
display: inline-block;
|
|
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0;
|
|
overflow: hidden;
|
|
will-change: box-shadow;
|
|
transition: box-shadow .2s cubic-bezier(.4, 0, 1, 1), background-color .2s cubic-bezier(.4, 0, .2, 1), color .2s cubic-bezier(.4, 0, .2, 1);
|
|
outline: 0;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
border: 0;
|
|
background: rgba(158, 158, 158, .2);
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
|
|
color: #fff;
|
|
background-color: <%= theme.uiux.button_color %>;
|
|
text-shadow: 0
|
|
}
|
|
</style>
|
|
|
|
<div class="btn_click_load">
|
|
<button class="disqus_click_btn"><%= __('post.comments_load_button') %></button>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
var disqus_config = function () {
|
|
this.page.url = '<%= page.permalink %>'; // Replace PAGE_URL with your page's canonical URL variable
|
|
this.page.identifier = '<%= page.permalink %>'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
|
};
|
|
</script>
|
|
|
|
<script type="text/ls-javascript" id="disqus-lazy-load-script">
|
|
$('.btn_click_load').click(function() { //click to load comments
|
|
(function() { // DON'T EDIT BELOW THIS LINE
|
|
var d = document;
|
|
var s = d.createElement('script');
|
|
s.src = '//<%= theme.comment.shortname %>.disqus.com/embed.js';
|
|
s.setAttribute('data-timestamp', + new Date());
|
|
(d.head || d.body).appendChild(s);
|
|
})();
|
|
$('.btn_click_load').css('display','none');
|
|
});
|
|
</script>
|
|
|