+planDescName +: ₹+planPrice + + nextBillingHtml + cancelHtml; document.getElementById(userPlanSec).innerHTML = html; if(status == cancelled) var renewHtml =Renew your plandocument.getElementById(userPlanSec).style.display = block; document.getElementById(userPlanSec).innerHTML = renewHtml; else document.getElementById(userPlanSec).style.display = block; document.getElementById(userPlanSec).innerHTML =Subscribe Now; hideOnPhonePe(); ; xhr.open(GET, /subscription/fetch/userinfo/+ window.getCookie(token)); xhr.send(); function hideOnPhonePe() var userAgent= navigator.userAgent; var objectsToHide= document.getElementsByClassName(hideOnPhonePe); if(userAgent.includes(phonepe-webview) && objectsToHide.length !=0 ) for(i=0;i

+planDescName+ + nextBillingHtml ; else var html =

+planDescName +: ₹+planPrice + + nextBillingHtml ; else planDescName = planDescription+ +planName; if(signupSource == P) var html =

+planDescName+ + nextBillingHtml + cancelHtml; else var html =

console.log(resp,resp) if(resp.success) publicationsObj = resp.data; ) .catch(err=

+ email; nerHTML = name[0]; if(plan && plan.subscriptions && plan.subscriptions.length

0) var planData = plan.subscriptions[0]; var status = planData.status; var purchaseSource = planData.source_device; var cancelHtml = ; var token = getCookie(token); if(status.indexOf(live) != -1) //cancelHtml =Cancel Plan; if(purchaseSource.toLowerCase() == web) if(signupSource != P && signupSource != K) cancelHtml =Manage Subscription; else if(purchaseSource.toLowerCase() == android && erAgent.match(/Android/i)) var falback_url = cancelHtml =Manage Subscription; if(status.indexOf(live) != -1 status.indexOf(non_renewing) != -1) document.getElementById(userPlanSec).style.display = block; if(status.indexOf(non_renewing) != -1) if(purchaseSource.toLowerCase() == web) if(signupSource != P && signupSource != K) cancelHtml =Manage Subscription; else if(purchaseSource.toLowerCase() == android && navigator.userAgent.match(/Android/i)) var falback_url = cancelHtml =Manage Subscription; var nextActivationDate = planData.current_term_ends_at; var nextBillingMonth = new Date(nextActivationDate).toDateString().split( )[1]; var nextBillingDay = new Date(nextActivationDate).getUTCDate(); var nextBillingYear = new Date(nextActivationDate).getFullYear(); var planDescription = planData.plan.description; var planName = ; var planPrice = planData.amount; //var planInterval = planData.shipping_interval; var planInterval = planData.duration; var planUnit = planData.interval_unit; var nextBillingHtml = nextBillingDay ?

You are now subscribed to our newsletters. In case you cant find any email from our side, please check the spam folder.

+planName+ ₹+planPrice+ / +planInterval+ + nextBillingHtml + cancelHtml; var planDescName = ;// getBundlePlanDesc(planData.plan.base_plans); /* if(planData.plan.plan_type.toLowerCase() != bundle) planDescName = planDescription+ +planName; */ if(planData.plan.plan_type.toLowerCase() == bundle) planDescName = getBundlePlanDesc(planData.plan.base_plans); if(signupSource == P) var html =

if(!return basePlan.map(plan=+ billingCycleText + : +nextBillingDay+ +nextBillingMonth+ +nextBillingYear+resp.json()) .then(resp=Log in to our website to save your bookmarks. Itll just take a moment.replaceAll(getBrandName(publicationsObj.planNameEvent[plan])),switch(brandCode) case ht_p: brand = HT Print break;case ht_d: brand = HT Digital break;default: brand = brandCode;basePlan) return;publicationsObj) return brandCode;) //getUserData();*/ function getBrandName(brandCode) if(!_).join(;case lh_p: brand = HH Print break;if(!publicationsObj) xhr.open(GET,console.log(failed to fetch publicatons,console.log(fetched publications,,case lm_p: brand = Mint Print break;

publicationsObj.planName[brandCode]) return brandCode;return publicationsObj.planName[brandCode];xhr) if (xhr.readyState === 4) publicationsObj= JSON.parse(xhr.responseText);return brand;xhr.onreadystatechange = function() console.log(onreadystatechange pubications,case lm_d_wsj: brand = LM DIGITAL WSJ break;publicationsObj.planName) return brandCode;xhr.send();function fetchPublications() return fetch(/json/publications.json) .then(resp=err)) /* var xhr = new XMLHttpRequest();if(!case lh_d: brand = HH Digital break;basePlan);/* function getBrandName(brandCode) var brand = ;*/ function getPlanNameByBasePlan(basePlan) console.log(baseplan,case lm_d: brand = Mint Digital break;getBrandName(p)).join(+).