Fashion Designer Michael Halpern’s Indian connect – brunch characteristic – Hindustan Times
“;
forYouknowledge += “”;
forYouknowledge += “”;
forYouknowledge += “”;
depend++;
if (i === 7)
});
forYouApiResponse=forYouknowledge;
$(forutxt).html(‘Recommended for you’);
$(foruContent).html(forYouknowledge);
}
}
});
}
else if(forYouApiResponse!=”)
$(forutxt).html(‘Recommended for you’);
$(foruContent).html(forYouApiResponse);
}
operate getUserData(){
$.ajax({
url:”https://www.hindustantimes.com/newsletter/get-active-subscription?usertoken=”+user_token,
kind:”GET”,
dataType:”json”,
success: operate(res)
});
}
operate postUserData(payLoad, elm){
var msgelm=$(elm).dad and mom(“.subscribe-update”).nextAll(“#thankumsg”);
$.ajax();
}
operate captchverification(captchaResponse)
operate subscribeNewsletter(inputText)
activeElm=inputText;
var mailformat = /^w+([.-]?w+)*@w+([.-]?w+)*(.w2,three)+$/;
if(inputText.val().match(mailformat))
inputText.focus();
e mail=inputText.val();
$(“#captcha-div”).addClass(“block”);
$(“body”).css(“overflow”,”hidden”);
return true;
else
alert(“You have entered an invalid email address!”);
inputText.focus();
return false;
//DFP Ads
var $dfpRightAd1 = $(‘.dfp-rightAd1-‘ + storyUuid);
var $dfpRightAd2 = $(‘.dfp-rightAd2-‘ + storyUuid);
var $dfpRightAd3 = $(‘.dfp-rightAd3-‘ + storyUuid);
var $dfpRightAd4 = $(‘.dfp-rightAd4-‘ + storyUuid);
var $dfpRightAd5 = $(‘.dfp-rightAd5-‘ + storyUuid);
var $dfpStoryAd1 = $(‘.dfp-storyAd1-‘ + storyUuid);
var $dfpStoryAd2 = $(‘.dfp-storyAd2-‘ + storyUuid);
var $dfpStoryAd3 = $(‘.dfp-storyAd3-‘ + storyUuid);
var $dfpStoryAd4 = $(‘.dfp-storyAd4-‘ + storyUuid);
var $dfpStoryAd5 = $(‘.dfp-storyAd5-‘ + storyUuid);
var $centerAd = $(‘.centerAd-‘ + storyUuid);
getPersonlizeData(”);
displayAd($dfpRightAd1,’/1055314/HT_StoryPages_300x250_Top’,[[300, 250], [300, 600]]);
displayAd($dfpRightAd2,’/3106570/HT_Desk_Story_BS_Multisize’,[‘fluid’, [300, 100]]);
var rightMiddleScrollHandler = operate ()
$(window).on(“scroll”, rightMiddleScrollHandler);
var rightTabRepTopScrollHandler = operate ()
if ($dfpRightAd4.isInViewport())
displayAd($dfpRightAd4, ‘/1055314/HT_Desk_Story_TabRep_Top_Multisize’, [[300, 250], [300, 600]]);
$(window).off(“scroll”, rightTabRepTopScrollHandler);
$(window).on(“scroll”, rightTabRepTopScrollHandler);
var rightTabRepBottomScrollHandler = operate ()
$(window).on(“scroll”, rightTabRepBottomScrollHandler);
var storyCenterScrollHandler = operate ()
$(window).on(“scroll”, storyCenterScrollHandler);
//Inline story adverts
var storyAd1ScrollHandler = operate ()
$(window).on(“scroll”, storyAd1ScrollHandler);
var storyAd2ScrollHandler = operate ()
$(window).on(“scroll”, storyAd2ScrollHandler);
var storyAd3ScrollHandler = operate ()
$(window).on(“scroll”, storyAd3ScrollHandler);
var storyAd4ScrollHandler = operate ()
$(window).on(“scroll”, storyAd4ScrollHandler);
var storyAd5ScrollHandler = operate ()
$(window).on(“scroll”, storyAd5ScrollHandler);
validateUser($(“#loggedin”),$(“#loggedout”));
if(user_token)
$(“#loggedin .subscribe-text”).html(“Subscribe to get our daily newsletter in your inbox”);
$(“#loginSub”).click on(operate());
else
operate ScrollMe(uuid)
operate InfiniteScroll() {
var nextURL = listUrl[urlCount];
var $container = $(‘.articles’).infiniteScroll();
$container.infiniteScroll(‘loadNextPage’);
$container.on(‘historical past.infiniteScroll’, operate(occasion, title, path)
var currentID = “article_” + getStoryIdByUrl(‘https://www.hindustantimes.com/brunch/style-designer-michael-halpern-s-indian-connect/story-IggzG6IHoUEOUx169qhfvL.html’);
var articleID = “article_” + getStoryIdByUrl(path);
doc.title = title;
var temp = path.substitute(‘.html’, ”).cut up(‘-‘);
temp = temp.reverse();
var forNid = temp[0].trim();
$(‘#ulInfinite li’).removeClass(“active”);
$(‘#story_’ + forNid).addClass(“active”);
var n = gatag.consists of(articleID, zero);
if(n==false)
window.snowplow(“trackPageView”, title);
window.snowplow(‘resetPagePing’);
if (typeof COMSCORE != ‘undefined’
&& typeof COMSCORE.beacon !== ‘undefined’)
);
$container.on(‘load.infiniteScroll’, operate(occasion, response, path) );
var counter = 1;
var uuid;
$container.on(‘append.infiniteScroll’, operate(occasion, response, path, objects)
uuid= $(objects).discover(‘.get-uuid’).val();
var elmLogin=$(objects).discover(‘#loggedin’);
var elmLogout=$(objects).discover(‘#loggedout’);
getPersonlizeData(objects);
validateUser(elmLogin,elmLogout);
if(user_token)
getUserData();
$(elmLogin).discover(“.subscribe-text”).html(“Subscribe to get our daily newsletter in your inbox”);
$(objects).discover(“#loginSub”).click on(operate()
var udata=JSON.stringify(
“domain”: “HT”,
“userToken”: user_token,
“googleCaptcha”: “string”,
“subscriptionTypes”: [
“daily”
]
);
postUserData(udata, this);
);
else
var $dfpRightAd1ES = $(objects).discover(‘.dfp-rightAd1-‘+uuid);
var $dfpRightAd3ES = $(objects).discover(‘.dfp-rightAd3-‘+uuid);
var $dfpRightAd4ES = $(objects).discover(‘.dfp-rightAd4-‘+uuid);
var $dfpRightAd5ES = $(objects).discover(‘.dfp-rightAd5-‘+uuid);
var $centerAdES = $(objects).discover(‘.centerAd-‘ + uuid);
var $dfpStoryAd1ES = $(‘.dfp-storyAd1-‘ + uuid);
var $dfpStoryAd2ES = $(‘.dfp-storyAd2-‘ + uuid);
var $dfpStoryAd3ES = $(‘.dfp-storyAd3-‘ + uuid);
var $dfpStoryAd4ES = $(‘.dfp-storyAd4-‘ + uuid);
var $dfpStoryAd5ES = $(‘.dfp-storyAd5-‘ + uuid);
var isVideoExists = $(objects).discover(‘.video-js’);
var isVideo=false;
if (isVideoExists.size > zero)
isVideo=true;
var rightESTopScrollHandler = operate ()
if ($dfpRightAd1ES.isInViewport())
$(window).on(“scroll”, rightESTopScrollHandler);
var rightESMiddleScrollHandler = operate ()
$(window).on(“scroll”, rightESMiddleScrollHandler);
var rightESTabRepTopScrollHandler = operate ()
$(window).on(“scroll”, rightESTabRepTopScrollHandler);
var rightESTabRepBottomScrollHandler = operate ()
if ($dfpRightAd5ES.isInViewport())
displayAd($dfpRightAd5ES, rightAdList[3].advert, rightAdList[3].adsizes);
$(window).off(“scroll”, rightESTabRepBottomScrollHandler);
$(window).on(“scroll”, rightESTabRepBottomScrollHandler);
var storyCenterScrollHandler = operate ()
if ($centerAdES.isInViewport())
displayAd($centerAdES, ‘/1055314/HT_Desk_Story_ES_Top_728x90’, [728, 90]);
$(window).off(“scroll”, storyCenterScrollHandler);
$(window).on(“scroll”, storyCenterScrollHandler);
//Story Inline adverts
var storyESAd1ScrollHandler = operate ()
if ($dfpStoryAd1ES.isInViewport())
displayAd($dfpStoryAd1ES, storyAdList[0].ad2, [728, 90]);
$(window).off(“scroll”, storyESAd1ScrollHandler);
$(window).on(“scroll”, storyESAd1ScrollHandler);
var storyESAd2ScrollHandler = operate ()
$(window).on(“scroll”, storyESAd2ScrollHandler);
var storyESAd3ScrollHandler = operate ()
if ($dfpStoryAd3ES.isInViewport())
$(window).on(“scroll”, storyESAd3ScrollHandler);
var storyESAd4ScrollHandler = operate ()
$(window).on(“scroll”, storyESAd4ScrollHandler);
var storyESAd5ScrollHandler = operate ()
if ($dfpStoryAd5ES.isInViewport())
displayAd($dfpStoryAd5ES, storyAdList[4].advert, [728, 90]);
$(window).off(“scroll”, storyESAd5ScrollHandler);
$(window).on(“scroll”, storyESAd5ScrollHandler);
counter++;
if (urlCount = n && o = n ? t.play() : t.pause()) : console.log(“iOS”)
)
});
}
}
else if(isVideo)
$(objects).discover(“div[id^=’right-swiper-‘]”).every(operate(i, e)
var swipID = $(e).attr(“id”);
var storySwiper = new Swiper(‘#’ + swipID, );
);
var ind = zero;
$(objects).discover(‘.learn-extra’).every(operate(ind, obj) );
$(objects).discover(‘img.lazy’).every(operate(i, e)
$(e).lazyload(
impact : “fadeIn”,
effectTime : 20,
threshold : 200,
failurelimit : zero
);
);
//getSeoContent(objects);
});
}
var reqOpen = true;
$(doc).bind(“scroll”,operate() {
var viewport = ;
viewport.backside = viewport.prime + $(doc).top();
lastScrollTop = viewport.prime;
var bot = viewport.backside – $(doc).top();
if (viewport.prime > 200 && (showInfinite)) else if (bot