Staff Writer: Top and Latest News, Videos and Photos about Staff Writer


Staff Writer: Latest News, Top News, Photos, Videos by Staff Writer -1) { setTimeout(function() { googletag.pubads().refresh([slot]); }, SECONDS_TO_WAIT_AFTER_VIEWABILITY * 1000); } }); googletag.pubads().enableSingleRequest(); googletag.pubads().disableInitialLoad(); googletag.enableServices(); }); } ]]>1)},!0)}},{}],5:[function(t,e,n){function r(t){}if(window.performance&&window.performance.timing&&window.performance.getEntriesByType){var o=t(“ee”),i=t(“handle”),a=t(13),s=t(12),c=”learResourceTimings”,f=”addEventListener”,u=”resourcetimingbufferfull”,d=”bstResource”,p=”resource”,l=”-start”,h=”-end”,m=”fn”+l,v=”fn”+h,w=”bstTimer”,g=”pushState”,y=t(“loader”);y.features.stn=!0,t(8),”addEventListener”in window&&t(6);var x=NREUM.o.EV;o.on(m,function(t,e){var n=t[0];n instanceof x&&(this.bstStart=y.now())}),o.on(v,function(t,e){var n=t[0];n instanceof x&&i(“bst”,[n,e,this.bstStart,y.now()])}),a.on(m,function(t,e,n){this.bstStart=y.now(),this.bstType=n}),a.on(v,function(t,e){i(w,[e,this.bstStart,y.now(),this.bstType])}),s.on(m,function(){this.bstStart=y.now()}),s.on(v,function(t,e){i(w,[e,this.bstStart,y.now(),”requestAnimationFrame”])}),o.on(g+l,function(t){this.time=y.now(),this.startPath=location.pathname+location.hash}),o.on(g+h,function(t){i(“bstHist”,[location.pathname+location.hash,this.startPath,this.time])}),f in window.performance&&(window.performance[“c”+c]?window.performance[f](u,function(t){i(d,[window.performance.getEntriesByType(p)]),window.performance[“c”+c]()},!1):window.performance[f](“webkit”+u,function(t){i(d,[window.performance.getEntriesByType(p)]),window.performance[“webkitC”+c]()},!1)),document[f](“scroll”,r,{passive:!0}),document[f](“keypress”,r,!1),document[f](“click”,r,!1)}},{}],6:[function(t,e,n){function r(t){for(var e=t;e&&!e.hasOwnProperty(u);)e=Object.getPrototypeOf(e);e&&o(e)}function o(t){s.inPlace(t,[u,d],”-“,i)}function i(t,e){return t[1]}var a=t(“ee”).get(“events”),s=t(“wrap-function”)(a,!0),c=t(“gos”),f=XMLHttpRequest,u=”addEventListener”,d=”removeEventListener”;e.exports=a,”getPrototypeOf”in Object?(r(document),r(window),r(f.prototype)):f.prototype.hasOwnProperty(u)&&(o(window),o(f.prototype)),a.on(u+”-start”,function(t,e){var n=t[1],r=c(n,”nr@wrapped”,function(){function t(){if(“function”==typeof n.handleEvent)return n.handleEvent.apply(n,arguments)}var e={object:t,”function”:n}[typeof n];return e?s(e,”fn-“,null,e.name||”anonymous”):n});this.wrapped=t[1]=r}),a.on(d+”-start”,function(t){t[1]=this.wrapped||t[1]})},{}],7:[function(t,e,n){function r(t,e,n){var r=t[e];”function”==typeof r&&(t[e]=function(){var t=i(arguments),e={};o.emit(n+”before-start”,[t],e);var a;e[m]&&e[m].dt&&(a=e[m].dt);var s=r.apply(this,t);return o.emit(n+”start”,[t,a],s),s.then(function(t){return o.emit(n+”end”,[null,t],s),t},function(t){throw o.emit(n+”end”,[t],s),t})})}var o=t(“ee”).get(“fetch”),i=t(26),a=t(25);e.exports=o;var s=window,c=”fetch-“,f=c+”body-“,u=[“arrayBuffer”,”blob”,”json”,”text”,”formData”],d=s.Request,p=s.Response,l=s.fetch,h=”prototype”,m=”nr@context”;d&&p&&l&&(a(u,function(t,e){r(d[h],e,f),r(p[h],e,f)}),r(s,”fetch”,c),o.on(c+”end”,function(t,e){var n=this;if(e){var r=e.headers.get(“content-length”);null!==r&&(n.rxSize=r),o.emit(c+”done”,[null,e],n)}else o.emit(c+”done”,[t],n)}))},{}],8:[function(t,e,n){var r=t(“ee”).get(“history”),o=t(“wrap-function”)(r);e.exports=r;var i=window.history&&window.history.constructor&&window.history.constructor.prototype,a=window.history;i&&i.pushState&&i.replaceState&&(a=i),o.inPlace(a,[“pushState”,”replaceState”],”-“)},{}],9:[function(t,e,n){function r(t){function e(){c.emit(“jsonp-end”,[],p),t.removeEventListener(“load”,e,!1),t.removeEventListener(“error”,n,!1)}function n(){c.emit(“jsonp-error”,[],p),c.emit(“jsonp-end”,[],p),t.removeEventListener(“load”,e,!1),t.removeEventListener(“error”,n,!1)}var r=t&&”string”==typeof t.nodeName&&”script”===t.nodeName.toLowerCase();if(r){var o=”function”==typeof t.addEventListener;if(o){var a=i(t.src);if(a){var u=s(a),d=”function”==typeof u.parent[u.key];if(d){var p={};f.inPlace(u.parent,[u.key],”cb-“,p),t.addEventListener(“load”,e,!1),t.addEventListener(“error”,n,!1),c.emit(“new-jsonp”,[t.src],p)}}}}}function o(){return”addEventListener”in window}function i(t){var e=t.match(u);return e?e[1]:null}function a(t,e){var n=t.match(p),r=n[1],o=n[3];return o?a(o,e[r]):e[r]}function s(t){var e=t.match(d);return e&&e.length>=3?{key:e[2],parent:a(e[1],window)}:{key:t,parent:window}}var c=t(“ee”).get(“jsonp”),f=t(“wrap-function”)(c);if(e.exports=c,o()){var u=/[?&](?:callback|cb)=([^&#]+)/,d=/(.*).([^.]+)/,p=/^(w+)(.|$)(.*)$/,l=[“appendChild”,”insertBefore”,”replaceChild”];Node&&Node.prototype&&Node.prototype.appendChild?f.inPlace(Node.prototype,l,”dom-“):(f.inPlace(HTMLElement.prototype,l,”dom-“),f.inPlace(HTMLHeadElement.prototype,l,”dom-“),f.inPlace(HTMLBodyElement.prototype,l,”dom-“)),c.on(“dom-start”,function(t){r(t[0])})}},{}],10:[function(t,e,n){var r=t(“ee”).get(“mutation”),o=t(“wrap-function”)(r),i=NREUM.o.MO;e.exports=r,i&&(window.MutationObserver=function(t){return this instanceof i?new i(o(t,”fn-“)):i.apply(this,arguments)},MutationObserver.prototype=i.prototype)},{}],11:[function(t,e,n){function r(t){var e=a.context(),n=s(t,”executor-“,e),r=new f(n);return a.context(r).getCtx=function(){return e},a.emit(“new-promise”,[r,e],e),r}function o(t,e){return e}var i=t(“wrap-function”),a=t(“ee”).get(“promise”),s=i(a),c=t(25),f=NREUM.o.PR;e.exports=a,f&&(window.Promise=r,[“all”,”race”].forEach(function(t){var e=f[t];f[t]=function(n){function r(t){return function(){a.emit(“propagate”,[null,!o],i),o=o||!t}}var o=!1;c(n,function(e,n){Promise.resolve(n).then(r(“all”===t),r(!1))});var i=e.apply(f,arguments),s=f.resolve(i);return s}}),[“resolve”,”reject”].forEach(function(t){var e=f[t];f[t]=function(t){var n=e.apply(f,arguments);return t!==n&&a.emit(“propagate”,[t,!0],n),n}}),f.prototype[“catch”]=function(t){return this.then(null,t)},f.prototype=Object.create(f.prototype,{constructor:{value:r}}),c(Object.getOwnPropertyNames(f),function(t,e){try{r[e]=f[e]}catch(n){}}),a.on(“executor-start”,function(t){t[0]=s(t[0],”resolve-“,this),t[1]=s(t[1],”resolve-“,this)}),a.on(“executor-err”,function(t,e,n){t[1](n)}),s.inPlace(f.prototype,[“then”],”then-“,o),a.on(“then-start”,function(t,e){this.promise=e,t[0]=s(t[0],”cb-“,this),t[1]=s(t[1],”cb-“,this)}),a.on(“then-end”,function(t,e,n){this.nextPromise=n;var r=this.promise;a.emit(“propagate”,[r,!0],n)}),a.on(“cb-end”,function(t,e,n){a.emit(“propagate”,[n,!0],this.nextPromise)}),a.on(“propagate”,function(t,e,n){this.getCtx&&!e||(this.getCtx=function(){if(t instanceof Promise)var e=a.context(t);return e&&e.getCtx?e.getCtx():this})}),r.toString=function(){return””+f})},{}],12:[function(t,e,n){var r=t(“ee”).get(“raf”),o=t(“wrap-function”)(r),i=”equestAnimationFrame”;e.exports=r,o.inPlace(window,[“r”+i,”mozR”+i,”webkitR”+i,”msR”+i],”raf-“),r.on(“raf-start”,function(t){t[0]=o(t[0],”fn-“)})},{}],13:[function(t,e,n){function r(t,e,n){t[0]=a(t[0],”fn-“,null,n)}function o(t,e,n){this.method=n,this.timerDuration=isNaN(t[1])?0:+t[1],t[0]=a(t[0],”fn-“,this,n)}var i=t(“ee”).get(“timer”),a=t(“wrap-function”)(i),s=”setTimeout”,c=”setInterval”,f=”clearTimeout”,u=”-start”,d=”-“;e.exports=i,a.inPlace(window,[s,”setImmediate”],s+d),a.inPlace(window,[c],c+d),a.inPlace(window,[f,”clearImmediate”],f+d),i.on(c+u,r),i.on(s+u,o)},{}],14:[function(t,e,n){function r(t,e){d.inPlace(e,[“onreadystatechange”],”fn-“,s)}function o(){var t=this,e=u.context(t);t.readyState>3&&!e.resolved&&(e.resolved=!0,u.emit(“xhr-resolved”,[],t)),d.inPlace(t,g,”fn-“,s)}function i(t){y.push(t),h&&(b?b.then(a):v?v(a):(E=-E,O.data=E))}function a(){for(var t=0;t34||h<10)||window.opera||t.addEventListener("progress",function(t){e.lastSize=t.loaded},!1)}),u.on("open-xhr-start",function(t){this.params={method:t[0]},o(this,t[1]),this.metrics={}}),u.on("open-xhr-end",function(t,e){"loader_config"in NREUM&&"xpid"in NREUM.loader_config&&this.sameOrigin&&e.setRequestHeader("X-NewRelic-ID",NREUM.loader_config.xpid);var n=f(this.parsedOrigin);n&&n.header&&(e.setRequestHeader("newrelic",n.header),this.dt=n)}),u.on("send-xhr-start",function(t,e){var n=this.metrics,r=t[0],o=this;if(n&&r){var i=m(r);i&&(n.txSize=i)}this.startTime=a.now(),this.listener=function(t){try{"abort"!==t.type||o.loadCaptureCalled||(o.params.aborted=!0),("load"!==t.type||o.called===o.totalCbs&&(o.onloadCalled||"function"!=typeof e.onload))&&o.end(e)}catch(n){try{u.emit("internal-error",[n])}catch(r){}}};for(var s=0;s

1?t[1]=i:t.push(i)}else t[0]&&t[0].headers&&(t[0].headers.append(“newrelic”,o),this.dt=r)}})}},{}],17:[function(t,e,n){var r={};e.exports=function(t){if(t in r)return r[t];var e=document.createElement(“a”),n=window.location,o={};e.href=t,o.port=e.port;var i=e.href.split(“://”);!o.port&&i[1]&&(o.port=i[1].split(“/”)[0].split(“@”).pop().split(“:”)[1]),o.port&&”0″!==o.port||(o.port=”https”===i[0]?”443″:”80″),o.hostname=e.hostname||n.hostname,o.pathname=e.pathname,o.protocol=i[0],”/”!==o.pathname.charAt(0)&&(o.pathname=”/”+o.pathname);var a=!e.protocol||”:”===e.protocol||e.protocol===n.protocol,s=e.hostname===document.domain&&e.port===n.port;return o.sameOrigin=a&&(!e.hostname||s),”/”===o.pathname&&(r[t]=o),o}},{}],18:[function(t,e,n){function r(t,e){var n=t.responseType;return”json”===n&&null!==e?e:”arraybuffer”===n||”blob”===n||”json”===n?o(t.response):”text”===n||””===n||void 0===n?o(t.responseText):void 0}var o=t(20);e.exports=r},{}],19:[function(t,e,n){function r(){}function o(t,e,n){return function(){return i(t,[f.now()].concat(s(arguments)),e?null:this,n),e?void 0:this}}var i=t(“handle”),a=t(25),s=t(26),c=t(“ee”).get(“tracer”),f=t(“loader”),u=NREUM;”undefined”==typeof window.newrelic&&(newrelic=u);var d=[“setPageViewName”,”setCustomAttribute”,”setErrorHandler”,”finished”,”addToTrace”,”inlineHit”,”addRelease”],p=”api-“,l=p+”ixn-“;a(d,function(t,e){u[e]=o(p+e,!0,”api”)}),u.addPageAction=o(p+”addPageAction”,!0),u.setCurrentRouteName=o(p+”routeName”,!0),e.exports=newrelic,u.interaction=function(){return(new r).get()};var h=r.prototype={createTracer:function(t,e){var n={},r=this,o=”function”==typeof e;return i(l+”tracer”,[f.now(),t,n],r),function(){if(c.emit((o?””:”no-“)+”fn-start”,[f.now(),r,o],n),o)try{return e.apply(this,arguments)}catch(t){throw c.emit(“fn-err”,[arguments,this,t],n),t}finally{c.emit(“fn-end”,[f.now()],n)}}}};a(“actionText,setName,setAttribute,save,ignore,onEnd,getContext,end,get”.split(“,”),function(t,e){h[e]=o(l+e)}),newrelic.noticeError=function(t,e){“string”==typeof t&&(t=new Error(t)),i(“err”,[t,f.now(),!1,e])}},{}],20:[function(t,e,n){e.exports=function(t){if(“string”==typeof t&&t.length)return t.length;if(“object”==typeof t){if(“undefined”!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&t.byteLength)return t.byteLength;if(“undefined”!=typeof Blob&&t instanceof Blob&&t.size)return t.size;if(!(“undefined”!=typeof FormData&&t instanceof FormData))try{return JSON.stringify(t).length}catch(e){return}}}},{}],21:[function(t,e,n){var r=0,o=navigator.userAgent.match(/Firefox[/s](d+.d+)/);o&&(r=+o[1]),e.exports=r},{}],22:[function(t,e,n){function r(t,e){var n=t.getEntries();n.forEach(function(t){“first-paint”===t.name?c(“timing”,[“fp”,Math.floor(t.startTime)]):”first-contentful-paint”===t.name&&c(“timing”,[“fcp”,Math.floor(t.startTime)])})}function o(t,e){var n=t.getEntries();n.length>0&&c(“lcp”,[n[n.length-1]])}function i(t){if(t instanceof u&&!p){var e,n=Math.round(t.timeStamp);e=n>1e12?Date.now()-n:f.now()-n,p=!0,c(“timing”,[“fi”,n,{type:t.type,fid:e}])}}if(!(“init”in NREUM&&”page_view_timing”in NREUM.init&&”enabled”in NREUM.init.page_view_timing&&NREUM.init.page_view_timing.enabled===!1)){var a,s,c=t(“handle”),f=t(“loader”),u=NREUM.o.EV;if(“PerformanceObserver”in window&&”function”==typeof window.PerformanceObserver){a=new PerformanceObserver(r),s=new PerformanceObserver(o);try{a.observe({entryTypes:[“paint”]}),s.observe({entryTypes:[“largest-contentful-paint”]})}catch(d){}}if(“addEventListener”in document){var p=!1,l=[“click”,”keydown”,”mousedown”,”pointerdown”,”touchstart”];l.forEach(function(t){document.addEventListener(t,i,!1)})}}},{}],23:[function(t,e,n){function r(){function t(){return e?15&e[n++]:16*Math.random()|0}var e=null,n=0,r=window.crypto||window.msCrypto;r&&r.getRandomValues&&(e=r.getRandomValues(new Uint8Array(31)));for(var o,i=”xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx”,a=””,s=0;s

Subscribe

Search

e-paper

New

Podcasts

New

Notifications

Newsletters

wsj

Copyright © HT Digital Streams Limited All rights reserved.

HomeLatest TrendingMy ReadsHTLS 2020Long ReadsPlain FactsPrimerCoronavirus Vaccine TrackerMarket DashboardPivot Or PerishMoney With Monika, Season 3Mint Money ConversationUS Presidential Election 2020Podcasts

Staff Writer

No Network

Server Issue

Internet Not Available

COVID-19
  • ‘+getFirstKey(el)+”+el[getFirstKey(el)]+”; }); } document.getElementById(“eclt-rsttbleflip”).style.display = “block”; document.getElementById(‘eclt-rsttbleflipdash’).innerHTML = flipText; } } } ]]>

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’) { cancelHtml = “Manage Subscription”; } } else if(purchaseSource.toLowerCase() == “android” && navigator.userAgent.match(/Android/i)) { var falback_url = ‘https://play.google.com/store/apps/details?id=com.htmedia.mint&referrer=lm/changeplan?token=’+token; 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’) { cancelHtml = “Manage Subscription”; } }else if(purchaseSource.toLowerCase() == “android” && navigator.userAgent.match(/Android/i)) { var falback_url = ‘https://play.google.com/store/apps/details?id=com.htmedia.mint&referrer=lm/changeplan?token=’+token; 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 = planData.plan.name; var planPrice = planData.amount; //var planInterval = planData.shipping_interval; var planInterval = planData.duration; var planUnit = planData.interval_unit; var nextBillingHtml = nextBillingDay ? ” “+ billingCycleText +” : “+nextBillingDay+” “+nextBillingMonth+” “+nextBillingYear+”” : “”; //var html = “Your Subscription Plan”+planName+” ₹”+planPrice+” / “+planInterval+” ” + nextBillingHtml + cancelHtml; var planDescName = getBundlePlanDesc(planData.plan.base_plans); if(!planDescName){ planDescName = planDescription+” “+planName; } if(planData.plan.plan_type.toLowerCase() == ‘bundle’){ if(signupSource == ‘P’) { var html = “Your Subscription Plan “+planDescName+ ” “+ nextBillingHtml ; } else { var html = “Your Subscription Plan “+planDescName +”: ₹”+planPrice + ” “+ nextBillingHtml ; } }else{ if(signupSource == ‘P’) { var html = “Your Subscription Plan “+planDescName+ ” “+ nextBillingHtml + cancelHtml; } else { var html = “Your Subscription Plan “+planDescName +”: ₹”+planPrice + ” “+ nextBillingHtml + cancelHtml; } } document.getElementById(‘userPlanSec’).innerHTML = html; } if(status == “cancelled”) { var renewHtml = “Renew your plan” document.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;igetBrandName(p)).join(‘+’); } /* function getBrandName(brandCode){ var brand = ”; switch(brandCode){ case ‘ht_p’: brand = ‘HT Print’ break; case ‘ht_d’: brand = ‘HT Digital’ break; case ‘lh_p’: brand = ‘HH Print’ break; case ‘lh_d’: brand = ‘HH Digital’ break; case ‘lm_p’: brand = ‘Mint Print’ break; case ‘lm_d’: brand = ‘Mint Digital’ break; case ‘lm_d_wsj’: brand = ‘LM DIGITAL WSJ’ break; default: brand = brandCode; } return brand; } */ function getBrandName(brandCode){ if(!publicationsObj) return brandCode; if(!publicationsObj.planName) return brandCode; if(!publicationsObj.planName[brandCode]) return brandCode; return publicationsObj.planName[brandCode]; } function fetchPublications(){ return fetch(‘/json/publications.json’) .then(resp=>resp.json()) .then(resp=> { console.log(‘resp’,resp) if(resp.success){ publicationsObj = resp.data; } }) .catch(err=> console.log(‘failed to fetch publicatons’,err)) /* var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { console.log(‘onreadystatechange pubications’,xhr) if (xhr.readyState === 4){ publicationsObj= JSON.parse(xhr.responseText); console.log(‘fetched publications’,publicationsObj) } } xhr.open(‘GET’, ‘http://accounts.hindustantimes.com/js/json/publications.json’); xhr.send(); */ } function getPlanNameByBasePlan(basePlan){ console.log(‘baseplan’,basePlan); if(!basePlan) return; return basePlan.map(plan=>replaceAll(getBrandName(publicationsObj.planNameEvent[plan])), ‘ ‘,’_’).join(‘;’) } //getUserData(); ]]>Source

Leave a Reply