// $(document).ready(function () {
// // To get the most commented posts
// var disqusPublicKey = "1gK0KABqNLANnjQPocoCIHrCPPiWkNkXanwRBOPF4XDu4NNCuoivLa25x2wZL5g9";
// var disqusShortname = "jetcomx";
// var mostCommentedArray = [];
//
// $('article').each(function () {
// var url = $(this).attr('data-disqus-url');
// mostCommentedArray.push('link:' + url);
// });
//
// $.ajax({
// type: 'GET',
// url: "https://disqus.com/api/3.0/threads/set.jsonp",
// data: { api_key: disqusPublicKey, forum : disqusShortname, thread : mostCommentedArray },
// cache: false,
// dataType: 'jsonp',
// success: function (result) {
// for (var i in result.response) {
// var countText = " comments";
// var count = result.response[i].posts;
// if (count === 1)
// countText = " comment";
// $('article[data-disqus-url="' + result.response[i].link + '"]').html('
' + count + countText + '
');
// }
// }
// });
// });