‘;pour(soit i=0; i
‘;return tempHtml;} else{return ”;}}fonction userPrefSmallCardBinding(data,pos, wdgtName){wdgtName = wdgtName.split(“https://www.livehindustan.com/”);wdgtName = wdgtName[1];var obj2 = {‘id’ : data.nid, ‘name’ : “ch_story”+wdgtName,’creative’ : ‘https://www.livehindustan.com’ + data.field_url[0].value, ‘position’ : pos+1};let cleantitle = data.field_short_headline[0].value.replace(/[‘]/g, “”);var petitCart=”‘+’
‘+’
‘+’
‘+titre propre+’
‘+’‘+getDateInFormat(data.changed)+’‘+’
‘+’‘;return smallCart;}function getDateInFormat(mis à jour){try{let date = new Date(mis à jour);var mois = [“Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec”];let dateTimeString = getDayOfWeek(date) + “, “+ date.getDate() + ” ” + mois[date.getMonth()] + ” ” + date.getFullYear() + ” ” + formatAMPM(date);return dateTimeString;} catch(err){return ”;}}function getDayOfWeek(date) {const dayOfWeek = new Date(date).getDay( ); return isNaN(dayOfWeek) ? nul : [‘Sun’, ‘Mon’, ‘Tue’, ‘Wed’, ‘Thu’, ‘Fri’, ‘Sat’][dayOfWeek];}fonction formatAMPM(date) {var heures = date.getHours();var minutes = date.getMinutes();var ampm = heures >= 12 ? ‘PM’ : ‘AM’;heures = heures % 12;heures = heures ? heures : 12;minutes = minutes 2) {startIndex = 0;}var xhr = new XMLHttpRequest();xhr.timeout = 800;xhr.onreadystatechange = function() {if (this.readyState == 4 && this.status = = 200) {let data = JSON.parse(this.responseText);if(data.items){data = data.items[0].stories;} else{data = data.response;}let dakzarhtml=”
‘+nomwi+’
‘+’
‘+’
‘+’
‘+cleanTitleText(données[i].field_short_headline[0].valeur)+’
‘+’
‘+”;}dakzarhtml += ‘
‘;dakzarhtml += ‘
‘;if(document.getElementById(“dak-zar-” + stid)){document.getElementById(“dak-zar-” + stid).innerHTML = dakzarhtml;}}};xhr.open(“GET”, api , true);xhr.send();if(scrollPramukhHandler){window.removeEventListener(‘scroll’, pramukhKhabreBind);}}function redirectTo(url, prodId, prodName, pos, isTrackable) {if(isTrackable) {trackGadgetClick(prodId , prodName, url, pos);}window.open(url);}function trackGadgetClick(id, prodName, prodUrl, pos) { const promotions = [{id: id,name: “You may be interested in”, position: pos, creative: “Electronics/Mobiles>”+ prodName}];dataLayer.push({‘event’: ‘promoClick’,’eventCategory’:’Affiliate Widget Events’,’eventAction’:’Promotion Click’,’eventLabel’:’Non_AMP’,’widgetName’: “Vous pourriez être intéressé in”,’pageType’ : “Story_Detail_page”,’pageUrl’ : window.location.href,’Affiliate Tracking ID’ : prodUrl.split(“https://www.livehindustan.com/”).pop().split (“?”)[0] || ”,’ecommerce’ : {‘promoClick’ : {‘promotions’ : promotions}}});}fonction techRelated(stid, mots-clés){var xhr = new XMLHttpRequest();xhr.timeout = 800;xhr.onreadystatechange = function() {if (this.readyState == 4 && this.status == 200) {let data = JSON.parse(this.responseText);if(data && data.items && data.items.length){let mTechRelHtml =”
‘;}}mTechRelHtml += ‘