Wish Team India Good Luck!
`;
if (getCookie("token")) {
disqusThread.classList.add('disqusHeight');
}
storyDisqusDivElm.appendChild(disqusThread);
if (storyDisqusDivElm.getElementsByClassName("LoadMoreDisqus").length == 0) {
disqusThread2 = document.createElement('div');
disqusThread2.id = 'LoadMoreDiscus';
disqusThread2.class = 'LoadMoreDisqus';
disqusThread2.innerHTML = '';
storyDisqusDivElm.appendChild(disqusThread2);
}
if (!disqusLoaded) {
if (getCookie("token")) {
getDisqusLoginInfo(storyId);
var disqusSignInbtn = document.querySelectorAll('.btnDisquss1');
for (var i = 0, len = disqusSignInbtn.length | 0; i ",
url: "https://accounts.hindustantimes.com/?type=plain&ref=ht",
logout: "https://accounts.hindustantimes.com/logout",
width: "40",
height: "40"
};
};
//console.log(disqus_config);
initDisqus();
}
} else {
window.DISQUS.reset({
reload: true,
config: function () {
this.page.identifier = storyId;
this.page.url = (window.location.origin) + storyURL;
this.page.title = (document.getElementById("headline_" + storyId)) ? (document.getElementById("headline_" + storyId).getAttribute("data-mob")) : "";;
}
});
}
//this will dynamically load the comment count
if (pageName != 'story') {
DISQUSWIDGETS.getCount({ reset: true });
}
}
window.onload = function () {
setTimeout(createDiscussThread("101707060743828"), 2000);
};
function setDisqusLoginInfo(data) {
userDisqusLoginInfo = data;
}
var thisStoryId = '';
var thisStoryUrl = '';
function openNewWindowWithDisqus(id, url) {
// Send GA Events
thisStoryId = id;
thisStoryUrl = url;
var createURL = "/disqus_comments/" + id + "-" + btoa(url);
var iframe = document.createElement('iframe');
iframe.src = createURL;
iframe.classList.add("disqusModel");
document.getElementById("disqusIframe").appendChild(iframe);
document.getElementById("subscribePopupBoxDisqus").style.display = "block";
if (document.getElementById("disqusSigninButton") && document.getElementById("disqusSecSigninButton" + id)) {
if (getCookie("token")) {
document.getElementById("disqusSigninButton").style.display = "none";
document.getElementById("disqusSecSigninButton" + id).style.display = "none";
} else {
document.getElementById("disqusSigninButton").style.display = "block";
document.getElementById("disqusSecSigninButton" + id).style.display = "inline-block";
}
}
}
function popitup(url, windowName) {
newwindow = window.open(url, windowName, 'height=200,width=150');
if (window.focus) { newwindow.focus() }
return false;
}