- English
- हिन्दी
- ಕನ್ನಡ
- മലയാളം
- தமிழ்
- తెలుగు
Get Updates
Get notified on entertainment, celebrity news, and binge-worthy shows!
- Bollywood
- TV
- Movies
- Tamil
- Telugu
- Kannada
- Malayalam
- Trending
- Bigg Boss
-
- OTT
- Celebs
- Photos
- Toplisting
`;areSlot4.insertAdjacentHTML("afterend", adgNative);}}).catch(err=>{console.log("error loading templated id:",err);})}})} *//* Adgebra Ibn widget implementation */globalAdObj.affMatrix = 0;//Disable Across Refinaryrefiner_live = 0;// if (host1 == "hindi.oneindia.com") {// momagicFlag = 0;// }//Line Item New Code - StartsrssPromoNotification = 1;ioAppPromoNotification = 0;if("1" == dataOIApp) {if(/mobi|Android/i.test(navigator.userAgent)){window.addEventListener("DOMContentLoaded",function(){const containerMain = document.getElementById("containerMain");if (containerMain) {const previousDiv = containerMain.previousElementSibling;if (previousDiv) {previousDiv.remove();}}})globalAdObj = { gpt: 0, gam1: 1, gam2: 1, taboola: 0, gam3: 0, gam4: 0, gam5: 0, outstream: 0, cube: 0, refinery: 0, sticky: 0, vuukle: 0, performance: 0, anymind: 0, leaderboard: 0, rightrail: 0, mr1: 0, mr2: 0, rightsticky: 0, interstitial: 0, };globalAdObj.affMatrix = 0;vidvertoFlag = 0;affMatrix = 0;backfillorder=0loadRecomVideoFlag = nullrssPromoNotification = 0ioAppPromoNotification = 0bidexchangeEnabled = 0adChronixEnabled = 0}}var lineItemArr = [];var sub_array = [];var sub_array_refresh = [];var curHost = window.location.hostname;var today = new Date();var urlBurstP = today.getMinutes();var headers = new Headers();headers.append("Content-Type", "application/json");headers.append("cache-control", "max-age=0, no-cache, no-store, no-transform");var options = {headers: headers,};var refreshhost = window.location.hostname;if (refreshhost != "" && refreshhost != undefined) {var domainPartsrefresh = refreshhost.split(".");var domainmiddlerefresh = domainPartsrefresh[1];}var lineItemRefreshVal = "";var interstitialflag = 1; //New Changes Softtonicvar dmflag = 0; //New Changes For Video Flagvar apiUrl = "https://rss.oneindia.com/cms/oi-line-item-temp.json?v=" + urlBurstP;fetch(apiUrl).then((response) => {return response.json();}).then((data) => {if (data != undefined && data != "" && data != null) {var jsondata = Object.values(data["line_items"]);console.log(jsondata);var jsonLen = jsondata.length;for (j = 0; j < jsonLen; j++) {var webArr = jsondata[j]["websites"];if (webArr.includes(curHost) || webArr == "all") {if (webArr == "all") {lineItemRefreshVal = jsondata[j]["refresh"]["all"];} else {lineItemRefreshVal = jsondata[j]["refresh"][domainmiddlerefresh];}sub_array.push({ lineitem: jsondata[j]["line_item"], refreshval: lineItemRefreshVal });}}lineItemArr.push(sub_array);console.log(lineItemArr);}}).catch((err) => {// Do something for an error here});//Line Item New Code - Ends/*Inhouse Promotion Code Starts*/// Function to fetch data from the API and append dynamic divvar isBrave = 0;if (navigator.brave) {globalAdObj.gpt = 0;isBrave = 1;}if (window.location.search.indexOf("?backfill=1") > -1) {globalAdObj.gpt = 0;globalAdObj = { gpt: 0, gam1: 0, gam2: 0, taboola: 0, gam3: 0, gam4: 0, gam5: 0, outstream: 0, cube: 0, refinery: 0, sticky: 0, vuukle: 0, performance: 0, anymind: 0, leaderboard: 0, rightrail: 0, mr1: 0, mr2: 0, rightsticky: 0, interstitial: 0, };oi_ad_config_dynamic_slot = [];}async function fetchDataAndAppend() {return false;try {var passlang = "en";if (langParam) {passlang = langParam.toLowerCase();}let apiUrl;if (trackpagetype === "hometest") {apiUrl = `https://rss.oneindia.com/scripts/cms/getArticleDetails.php?type=backfill-cross-domain-latest-articles&language=${passlang}&limit=15&output=json`;} else {apiUrl = `https://rss.oneindia.com/scripts/cms/getArticleDetails.php?type=backfill-latest-articles&sitename=${host1}&limit=15&output=json`;}const response = await fetch(apiUrl, {method: "POST",mode: "cors", // This is important for CORSheaders: {"Content-Type": "application/json",},});if (!response.ok) {throw new Error("Failed to fetch data from the API");}const data = await response.json();const dynamicDiv = document.createElement("div");dynamicDiv.setAttribute("id", "latestContent");console.log(data);if (data.latest_content) {dynamicDiv.setAttribute("data-latest_content", JSON.stringify(data.latest_content));}if (data.paid_content) {dynamicDiv.setAttribute("data-paid_content", JSON.stringify(data.paid_content));}if (document.getElementById("footer")) {document.getElementById("footer").appendChild(dynamicDiv);} else {if (document.querySelector("footer")) {document.querySelector("footer").appendChild(dynamicDiv);}}} catch (error) {console.log("Error fetching data:", error);}}if (trackpagetype != "article") {if (globalAdObj.gpt == 0 || isBrave) {fetchDataAndAppend();} else {var paidexe = 0;window.addEventListener("scroll", function () {if (paidexe == 0) {paidexe = 1;fetchDataAndAppend();}});}}var inhousepromoObj = [{ no_articles: 2, slotID: "are-slot-leaderboard", className: "leaderboard970x90", utmsize: "970x90", slotArray: "ads728x90" },{ no_articles: 2, slotID: "are-slot-mr1", className: "mr300x600", utmsize: "300x600", slotArray: "ads300x250" },{ no_articles: 1, slotID: "are-slot-mr2", className: "mr300x250", utmsize: "300x250", slotArray: "ads300x250" },{ no_articles: 2, slotID: "are-slot-rightrail", className: "rightrail160x600", utmsize: "160x600", slotArray: "ads300x250" },{ no_articles: 1, slotID: "bottom-sticky", className: "bottomSticky", utmsize: "320x50", slotArray: "ads320x50" },];const ads300x250 = [{image: "https://images.goodreturns.in/images/axis-generic-300x250-1728885365711.png",link: "https://secure.traqkarr.com/click?pid=453&offer_id=1956&sub1=IMSGAXIAT453&sub2={Pass_clickid_here}",width: 300,height: 250,},{image: "https://images.goodreturns.in/images/hdfc-300x250-1728885365742.png",link: "https://secure.traqkarr.com/click?pid=453&offer_id=1253&sub1=IMSGHDFCG453&sub2={Pass_clickid_here}",width: 300,height: 250,},{image: "https://images.goodreturns.in/images/sbi-300x250-1728885365794.png",link: "https://secure.traqkarr.com/click?pid=453&offer_id=1252&sub1=IMSGSBICB453&sub2={Pass_clickid_here}",width: 300,height: 250,},];const ads320x50 = [{image: "https://images.goodreturns.in/images/axis-320x50-1728885477342.png",link: "https://secure.traqkarr.com/click?pid=453&offer_id=1956&sub1=IMSGAXIAU453&sub2={Pass_clickid_here}",width: 320,height: 50,},{image: "https://images.goodreturns.in/images/hdfc-320x50-1728885477348.png",link: "https://secure.traqkarr.com/click?pid=453&offer_id=1253&sub1=IMSGHDFCG453&sub2={Pass_clickid_here}",width: 320,height: 50,},{image: "https://images.goodreturns.in/images/sbi-320x50-1728885477375.png",link: "https://secure.traqkarr.com/click?pid=453&offer_id=1280&sub1=IMSGSBIIR453&sub2={Pass_clickid_here}",width: 320,height: 50,},];const ads728x90 = [{image: "https://images.goodreturns.in/images/axis-728-90-1728885438919.png",link: "https://secure.traqkarr.com/click?pid=453&offer_id=1956&sub1=IMSGAXIFK453&sub2={Pass_clickid_here}",width: 728,height: 90,},{image: "https://images.goodreturns.in/images/hdfc-728x90-1728885438937.png",link: "https://secure.traqkarr.com/click?pid=453&offer_id=1253&sub1=IMSGHDFCG453&sub2={Pass_clickid_here}",width: 728,height: 90,},{image: "https://images.goodreturns.in/images/sbi-728x90-1728885438968.png",link: "https://secure.traqkarr.com/click?pid=453&offer_id=1268&sub1=IMSGSBIPR453&sub2={Pass_clickid_here}",width: 728,height: 90,},];function getRandomAd(adsArray) {const randomIndex = Math.floor(Math.random() * adsArray.length);return adsArray[randomIndex];}function trackAdImpression(ad) {console.log("Cach Karo Impresssion Count");console.log(ad);}function handleAdClick(adLink, adWidth, adHeight) {//console.log("Cach Karo Click Count");//console.log(adWidth);}function appendAdToDiv(ad, divId) {const adDiv = document.getElementById(divId);if("boldsky" == domainmiddle){adDiv.innerHTML = `
`;}else{adDiv.innerHTML = `
`;}//trackAdImpression(ad);}function getAdsArrayBySlotArray(slotArray) {switch (slotArray) {case "ads300x250":return ads300x250;case "ads320x50":return ads320x50;case "ads728x90":return ads728x90;default:return [];}}function getInfoBySlotID(slotID) {const promo = inhousepromoObj.find((item) => item.slotID === slotID);return promo ? { no_articles: promo.no_articles, className: promo.className, utmsize: promo.utmsize, slotArray: promo.slotArray } : null;}var isAdScriptLoadedCommon = false;var isAdCalledCommon = false;function loadAdScriptCommon() {if (!isAdScriptLoadedCommon) {var script = document.createElement("script");script.setAttribute("data-cfasync", "false");script.async = true;script.src = "https://www.google.com/adsense/search/ads.js";document.head.appendChild(script);isAdScriptLoadedCommon = true;}}function afsAdCallCommon(containerId) {if (!isAdCalledCommon) {var reqUrl = "https://" + host1 + "/search/results.html";var pageOptions = {pubId: "partner-pub-6601380052549923",styleId: "9998292378",relatedSearchTargeting: "content",resultsPageBaseUrl: reqUrl,resultsPageQueryParam: "q",};var rsblock1common = {container: containerId,relatedSearches: 4,adLoadedCallback: function (containerName, adsLoaded, isExperimentVariant, callbackOptions) {console.log(callbackOptions);if (adsLoaded) {try {console.log("Ad is loaded");} catch (e) {console.log("Ad will not load here...");}} else {console.log("We can load another ad here...");}},};_googCsa("relatedsearch", pageOptions, rsblock1common);isAdCalledCommon = true;}}var displayedArticlesIndices = [];var hubFlag = 0;/* Backfill ad slot with articles */function shuffleArray(arr) {for (let i = arr.length - 1; i > 0; i--) {const j = Math.floor(Math.random() * (i + 1));[arr[i], arr[j]] = [arr[j], arr[i]]; // Swap elements}return arr;}function slicedArray(arr, startNum, endNum){return arr.slice(startNum, endNum);}function appendArticlesToAdSlot(articles, numOfArticlesToPlace, divId) {const adDiv = document.getElementById(divId);let innerHtml = ``;innerHtml += `
`articles.slice(0,numOfArticlesToPlace).forEach(article => {innerHtml += `
`});innerHtml += `
`adDiv.innerHTML = innerHtml;if("boldsky" == domainmiddle){}//trackAdImpression(ad);}async function fetchTrendingArticles(contentIds) {try{const res = await fetch('https://dmp.oneindia.com/api/trending-articles', {method: 'POST',headers: {'Content-Type': 'application/json'},body: JSON.stringify({site: window.location.hostname,content_ids: contentIds,limit: 25})})const {data} = await res.json();return data;}catch(err){console.error('Error:', err)}}let startArticle = 0;let endArticle = 3;function fillAdslotsWithArticles(articles,containerId){if(articles?.length){const shuffledArray = shuffleArray(articles);let slicedArr = slicedArray(shuffledArray,startArticle,endArticle);let trendingArticles = slicedArr.map((arr,index)=>({link:arr?.url,image:arr?.image,altText:arr?.heading,webp:arr?.webp}));appendArticlesToAdSlot(trendingArticles,3,containerId)startArticle = endArticle;endArticle += endArticle;if(endArticle > articles?.length) {startArticle = 0;endArticle = 3;}}}/* Backfill ad slot with articles */function generateBackfillAd(containerId, containerName = "",trend_articles = []) {if (domainmiddle == "boldsky") {if (containerId != "div-gpt-ad-1653012388909-0" && containerId != "are-slot-rightrail") {var pattern = /are-slot-\d+/;var cname, numArticles, utmsize,slotarray;var container = document.getElementById(containerId);if (pattern.test(containerId)) {cname = "mr300x250";numArticles = 1;utmsize = "300x250";slotarray = "ads300x250";} else {const info = getInfoBySlotID(containerId);if (info) {cname = info.className;numArticles = info.no_articles;utmsize = info.utmsize;slotarray = info.slotArray;}}if (trackpagetype == "article") {if (containerId == "are-slot-mr1") {if (document.getElementById("cmscontent-right1")) {document.getElementById("cmscontent-right1").classList.remove("oirb-sticky");}}}if (containerId == "bottom-sticky") {if (document.getElementById("stickymaincon")) {document.getElementById("stickymaincon").style.display = "block";}/*if (document.getElementById('bottomAdWrapper')) { document.getElementById('bottomAdWrapper').style.display = "block"; }*/}container.innerHTML = "";if (container.classList.contains(cname)) {container.classList.remove(cname);}container.classList.add(cname);const adsArray = getAdsArrayBySlotArray(slotarray);let recStatus = sessionStorage.getItem("rec_status");if(window.location.search.indexOf("backfill=articles") > -1){if(trend_articles?.length < 6 || slotarray != "ads300x250" || gpt_flag != "false") {appendAdToDiv(getRandomAd(adsArray), containerId);}else{fillAdslotsWithArticles(trend_articles,containerId);}}else{appendAdToDiv(getRandomAd(adsArray), containerId);}} else {return false;}} else if (domainmiddle == "oneindia") {if (containerId != "div-gpt-ad-1653012388909-0" && containerId != "are-slot-rightrail") {var pattern = /are-slot-\d+/;var cname, numArticles, utmsize;var container = document.getElementById(containerId);if (pattern.test(containerId)) {cname = "mr300x250";numArticles = 1;utmsize = "300x250";slotarray = "ads300x250";} else {const info = getInfoBySlotID(containerId);if (info) {cname = info.className;numArticles = info.no_articles;utmsize = info.utmsize;slotarray = info.slotArray;}}if(trend_articles?.length < 6 || slotarray != "ads300x250" || gpt_flag != "false"){if (utmsize == "300x250") {if (document.getElementById(containerId)) {if (containerId == "are-slot-1") {container.innerHTML = "";document.getElementById(containerId).classList.remove("dynamic-slot");loadAdScriptCommon();(function (g, o) {(g[o] =g[o] ||function () {(g[o]["q"] = g[o]["q"] || []).push(arguments);}),(g[o]["t"] = 1 * new Date());})(window, "_googCsa");afsAdCallCommon(containerId);}}}}else{if(window.location.search.indexOf("backfill=articles") > -1){fillAdslotsWithArticles(trend_articles,containerId);}}}} else if (domainmiddle == "drivespark") {if (trackpagetype == "article") {if (containerId != "div-gpt-ad-1653012388909-0" && containerId != "are-slot-rightrail") {var pattern = /are-slot-\d+/;var cname, numArticles, utmsize;var container = document.getElementById(containerId);if (pattern.test(containerId)) {cname = "mr300x250";numArticles = 1;utmsize = "300x250";slotarray = "ads300x250";} else {const info = getInfoBySlotID(containerId);if (info) {cname = info.className;numArticles = info.no_articles;utmsize = info.utmsize;slotarray = info.slotArray;}}if(trend_articles?.length < 6 || slotarray != "ads300x250" || gpt_flag != "false"){if (utmsize == "300x250") {if (document.getElementById(containerId)) {container.innerHTML = "";document.getElementById(containerId).classList.remove("dynamic-slot");}}}else{if(window.location.search.indexOf("backfill=articles") > -1){fillAdslotsWithArticles(trend_articles,containerId);}}}}} else {if(gpt_flag != "false"){return false;}else{if (trackpagetype == "article") {var pattern = /are-slot-\d+/;var cname, numArticles, utmsize, slotarray;var container = document.getElementById(containerId);if (pattern.test(containerId)) {cname = "mr300x250";numArticles = 1;utmsize = "300x250";slotarray = "ads300x250";} else {const info = getInfoBySlotID(containerId);if (info) {cname = info.className;numArticles = info.no_articles;utmsize = info.utmsize;slotarray = info.slotArray;}}if(window.location.search.indexOf("backfill=articles") > -1){if(trend_articles?.length > 6 && slotarray == "ads300x250") {fillAdslotsWithArticles(trend_articles,containerId);}}}}}}function generateBackfillAd1(containerId) {return false;if (host1 != "tamil.oneindia.com") {if ((trackpagetype === "database" || trackpagetype === "home") && containerId === "are-slot-rightrail") {return;}}var latestContentDiv = document.getElementById("latestContent");var container = document.getElementById(containerId);if (latestContentDiv && container && latestContentDiv.hasAttribute("data-latest_content")) {if (latestContentDiv.getAttribute("data-latest_content")) {var pattern = /are-slot-\d+/;var cname, numArticles, utmsize;if (pattern.test(containerId)) {cname = "mr300x250";numArticles = 1;utmsize = "300x250";slotarray = "ads300x250";} else {const info = getInfoBySlotID(containerId);if (info) {cname = info.className;numArticles = info.no_articles;utmsize = info.utmsize;slotarray = info.slotArray;}}var promotedItem = {url: "https://www.oneindia.com/india/4-reasons-why-you-should-consider-a-personal-loan-for-urgent-financial-needs-3819489.html",aws_img: "https://imagesvs.oneindia.com/fit-in/300x169/img/2024/05/bajaj-finserv-1715159657.jpg",title: "4 Reasons Why You Should Consider a Personal Loan for Urgent Financial Needs",author: "",};var jsonData = JSON.parse(latestContentDiv.getAttribute("data-latest_content"));var articles = jsonData.content.slice();if (isBrave) {if (latestContentDiv && container && latestContentDiv.hasAttribute("data-paid_content")) {var paidcontent = latestContentDiv.getAttribute("data-paid_content");if (paidcontent) {var paidjsonData = JSON.parse(paidcontent);if (paidjsonData.content && paidjsonData.content.length >= numArticles) {jsonData.content = paidjsonData.content.concat(articles);}}}}if (jsonData.content && jsonData.content.length >= numArticles) {//jsonData.content.splice(0, 0, promotedItem);var articlesHTML = "";for (var i = 0; i < numArticles; i++) {var jsonArticles = jsonData.content.length;var randomIndex;do {randomIndex = Math.floor(Math.random() * jsonArticles);} while (displayedArticlesIndices.includes(randomIndex) && displayedArticlesIndices.length < jsonArticles);displayedArticlesIndices.push(randomIndex);var article = jsonData.content[randomIndex];var utmParam = "?utm_source=AdSlot" + utmsize + "&utm_medium=Display&utm_campaign=ArticlePromoUnfilled";var urlwithUtm = article.url + utmParam;articlesHTML +='
' +'
' +'
' +'
" +'
By ' +article.author +"
" +"
" +"
";}var adHTML = '
' + "
" + '';adHTML += articlesHTML;adHTML += "
";if (trackpagetype == "article") {if (containerId == "are-slot-mr1") {if (document.getElementById("cmscontent-right1")) {document.getElementById("cmscontent-right1").classList.remove("oirb-sticky");}}}if (containerId == "bottom-sticky") {if (document.getElementById("stickymaincon")) {document.getElementById("stickymaincon").style.display = "block";}/*if (document.getElementById('bottomAdWrapper')) { document.getElementById('bottomAdWrapper').style.display = "block"; }*/}container.innerHTML = "";if (container.classList.contains(cname)) {container.classList.remove(cname);}container.classList.add(cname);container.innerHTML = adHTML;}}}}function pingtoserverforSharetracker(sharetype, sharemedium) {if (document.getElementById("trackerShareimage")) {document.getElementById("trackerShareimage").remove();}if (sharetype == "social-share" && sharemedium == "whatsapp") {sharemedium = "whatsapp-share";} else if (sharetype == "bottom-sticky" && sharemedium == "whatsapp") {sharemedium = "whatsapp-join-us";}var triggerShareFlag = 0;if (triggerShareFlag == 0) {triggerShareFlag = 1;var currentHost = window.location.hostname;var rand_id = Math.floor(Date.now() + Math.random());if (/Mobi|Android/i.test(navigator.userAgent)) {var triggerDevice = "mobile"; //mobile/desktop} else {var triggerDevice = "desktop"; //mobile/desktop}if (trackpagetype) {var pagetype = trackpagetype;} else {var pagetype = "others";}if (sharetype && sharemedium) {var img = document.createElement("img");img.src = "https://" + currentHost + "/images/tracker.jpg?tracker=oi-tracker-cms&device=" + triggerDevice + "&type=oi-share-tracker&page=" + pagetype + "&eventtype=" + sharetype + "&eventmedium=" + sharemedium + "&uid=" + rand_id;img.setAttribute("id", "trackerShareimage");img.setAttribute("alt", "Share Tracker");img.setAttribute("width", 1);img.setAttribute("height", 1);img.style.display = "none";document.body.appendChild(img);}}}/*Inhouse Promotion Code Ends*//* Ad Blocker Code Starts */function setUserCookie(name, value, expires, path, domain, secure = true) {if (typeof fetchConsSts !== "undefined") {fetchConsSts().then(function (promVal) {console.log("Consent Value :" + promVal);if (promVal == 1 || promVal == 5) {var cookie = name + "=" + encodeURIComponent(value);if (expires) {var date = new Date();date.setTime(date.getTime() + expires * 60 * 60 * 1000);cookie += "; expires=" + date.toUTCString();}if (path) {cookie += "; path=" + path;}if (domain) {cookie += "; domain=" + domain;}if (secure) {cookie += ";Secure";}cookie += ";SameSite=None";cookie += ";Partitioned";document.cookie = cookie;}});}}function deleteUserCookie(name, path, domain) {if (getCookie(name)) document.cookie = name + "=" + (path ? ";path=" + path : "") + (domain ? ";domain=" + domain : "") + ";expires=Thu, 01-Jan-1970 00:00:01 GMT";}function checkUserCookie(cookie_name) {var location_details = getUserCookie(cookie_name);if (location_details == null || location_details == "") {return false;} else if (location_details != "") {return true;}}function getUserCookie(c_name) {var c_value = document.cookie;var c_start = c_value.indexOf(" " + c_name + "=");if (c_start == -1) {c_start = c_value.indexOf(c_name + "=");}if (c_start == -1) {c_value = null;} else {c_start = c_value.indexOf("=", c_start) + 1;var c_end = c_value.indexOf(";", c_start);if (c_end == -1) {c_end = c_value.length;}c_value = unescape(c_value.substring(c_start, c_end));}return c_value;}if (/Mobi|Android/i.test(navigator.userAgent)) {var dv = "Mobile";} else {var dv = "Desktop";}var adblockerflag = false;var host = window.location.hostname;function trackingAdBlocker(blockerFlag) {adblockerflag = blockerFlag;console.log("AdBlock Enabled Global: " + adblockerflag);var adblock_flag = getUserCookie("adblock_flag");if (adblock_flag == "" || adblock_flag == "undefined" || adblock_flag == null) {adblock_flag = 0;}if (blockerFlag) {/*if(host.indexOf('filmibeat')>'-1'){ var scriptadblock=document.createElement('script'); scriptadblock.src='https://servg1.net/o.js?uid=a32bdd40e639cb09a67162de'; scriptadblock.async='true'; document.head.appendChild(scriptadblock); }*/if (adblock_flag == 0) {if (document.getElementById("trackerimage")) {document.getElementById("trackerimage").remove();}var img = document.createElement("img");img.src = "https://" + host + "/images/tracker.jpg?tracker=oi-tracker-cms&adblockerenabled=true&device=" + dv;img.setAttribute("id", "trackerimage");document.head.appendChild(img);setUserCookie("adblock_flag", 1, 131400, "/", "", "");}} else {if (adblock_flag == 1) {if (document.getElementById("trackerimage")) {document.getElementById("trackerimage").remove();}var img = document.createElement("img");img.src = "https://" + host + "/images/tracker.jpg?tracker=oi-tracker-cms&adblockerenabled=false&device=" + dv;img.setAttribute("id", "trackerimage");document.head.appendChild(img);document.cookie = "adblock_flag=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";}}}var adBlockEnabled = false;async function detectAdBlock() {var googleAdUrl = "https://rss.oneindia.com/cms/oi-render-native-ad.js";try {await fetch(new Request(googleAdUrl)).then((response) => {if (!response.ok) {throw new Error("Network response was not ok");}return response;}).catch((_) => {adBlockEnabled = true;});} catch (e) {adBlockEnabled = true;}if (!adBlockEnabled) {let fakeAd = document.createElement("div");fakeAd.className = "textads banner-ads banner_ads ad-unit ad-zone ad-space adsbox";fakeAd.style.height = "1px";fakeAd.style.position = "absolute";fakeAd.style.top = "1px"; // Move it out of viewif (document.body) {document.body.appendChild(fakeAd);} else {document.head.appendChild(fakeAd);}let adBlocked = !fakeAd.offsetHeight;if (adBlocked) {adBlockEnabled = true;} else {adBlockEnabled = false;}console.log(`AdBlock Enabled: ${adBlockEnabled}`);trackingAdBlocker(adBlockEnabled);}}detectAdBlock();/*Ad Blocker Code Ends *//* function getUTMParams() { const params = new URLSearchParams(window.location.search); const utm_source = params.get("utm_source"); const utm_medium = params.get("utm_medium"); const utm_campaign = params.get("utm_campaign"); if (utm_source && utm_medium && utm_campaign) { return { utm_source, utm_medium, utm_campaign }; } return null; } */function getUTMParams(url) {const urlObj = new URL(url);const params = new URLSearchParams(urlObj.search);const utmParams = {};for (const [key, value] of params.entries()) {if (key.startsWith('utm_')) {utmParams[key] = value;}}return utmParams;}var triggerVdoAiFlag = 0;function pingtoserverforVDOAItracker() {if (document.getElementById("trackerVdoAiimage")) {document.getElementById("trackerVdoAiimage").remove();}if (triggerVdoAiFlag == 0) {triggerVdoAiFlag = 1;var currentHost = window.location.hostname;var rand_id = Math.floor(Date.now() + Math.random());if (/Mobi|Android/i.test(navigator.userAgent)) {var triggerDevice = "mobile"; //mobile/desktop} else {var triggerDevice = "desktop"; //mobile/desktop}var pagetype = trackpagetype; //Change accordingly home/index/article/photos/databasevar img = document.createElement("img");if (domainmiddle == "filmibeat") {img.src = "https://" + currentHost + "/images/tracker.jpg?tracker=oi-tracker-cms&device=" + triggerDevice + "&type=aniview&page=" + pagetype + "&eventcategory=aniview&eventaction=performance&eventlebel=request-created&uid=" + rand_id;} else {img.src = "https://" + currentHost + "/images/tracker.jpg?tracker=oi-tracker-cms&device=" + triggerDevice + "&type=vdoai&page=" + pagetype + "&eventcategory=vdoai&eventaction=performance&eventlebel=request-created&uid=" + rand_id;}img.setAttribute("id", "trackerVdoAiimage");img.setAttribute("alt", "VDO AI Tracker");img.setAttribute("width", 1);img.setAttribute("height", 1);img.style.display = "none";document.body.appendChild(img);}}var slno = 0;var defineBackup = 0;var backupslot = [];var _oiAllAdUnitsMobi = [{slotName: "/22637491760/oneindia_Mob__300x250",sizes: [[336, 280],[300, 250],],slotID: "div-gpt-ad-1693991938157-0",},{slotName: "/22637491760/oneindia__Mob_300x250_1",sizes: [[336, 280],[300, 250],],slotID: "div-gpt-ad-1694421448141-0",},{slotName: "/22637491760/oneindia__Mob_300x250_2",sizes: [[336, 280],[300, 250],],slotID: "div-gpt-ad-1694421624471-0",},{slotName: "/22637491760/oneindia__Mob_300x250_3",sizes: [[336, 280],[300, 250],],slotID: "div-gpt-ad-1694421751005-0",},];var _oiAllAdUnitsWeb = [{slotName: "/22637491760/oneindia_DSK_300x250",sizes: [[300, 250],[336, 280],],slotID: "div-gpt-ad-1693991634264-0",},{slotName: "/22637491760/oneindia_DSK_300x250_1",sizes: [[336, 280],[300, 250],],slotID: "div-gpt-ad-1694420712565-0",},{slotName: "/22637491760/oneindia_DSK_300x250_2",sizes: [[336, 280],[300, 250],],slotID: "div-gpt-ad-1694420792842-0",},{slotName: "/22637491760/oneindia_DSK_300x250_3",sizes: [[336, 280],[300, 250],],slotID: "div-gpt-ad-1694420876751-0",},];var _oiAllAdUnitsTop = [{slotName: "/22637491760/oneindia_DSK_728x90",sizes: [[728, 90],[468, 60],[970, 90],],slotID: "div-gpt-ad-1693991070316-0",},];var _oiAllAdUnitsBottom = [{ slotName: "/22637491760/oneindia_Mob_320x50", sizes: [[320, 50]], slotID: "div-gpt-ad-1693991813229-0" }];var slot_name = "";var slot_size = "";var slot_id = "";var slotArr = [];function refreshBackupSlot(idx, divId, slot_id) {return false;if (apsFlag != 2) {document.getElementById(divId).innerHTML = "";document.getElementById(divId).style.display = "block";if (document.getElementById(slot_id)) {//document.getElementById(slot_id).remove();} else {var tabDynamicDiv = document.createElement("div");tabDynamicDiv.id = slot_id;document.getElementById(divId).appendChild(tabDynamicDiv);}googletag.cmd.push(function () {console.log("Slot Refreshed..." + slot_id);googletag.pubads().refresh([backupslot[idx]]);});}}function defineBackupSlot(slot_name, slot_size, slot_id, divId, idx) {return false;//console.log(slot_name+"Slot Name &"+slot_size+" &Slot Size"+slot_id);if (apsFlag != 2) {if (document.getElementById(divId)) {if (slot_name != "" && slot_size != "" && slot_id != "") {var backuploaded = document.getElementById(divId).getAttribute("data-backuploaded");console.log(backuploaded + " : Backup Load");if (backuploaded == undefined || backuploaded == null) {document.getElementById(divId).innerHTML = "";document.getElementById(divId).style.display = "block";if (document.getElementById(slot_id)) {document.getElementById(slot_id).remove();}var tabDynamicDiv = document.createElement("div");tabDynamicDiv.id = slot_id;if (document.getElementById(divId)) {document.getElementById(divId).appendChild(tabDynamicDiv);googletag.cmd.push(function () {backupslot[idx] = googletag.defineSlot(slot_name, slot_size, slot_id).addService(googletag.pubads());googletag.pubads().setTargeting("host", location.hostname);googletag.pubads().setTargeting("curl", window.location.href);googletag.pubads().enableSingleRequest();googletag.pubads().enableAsyncRendering();googletag.pubads().setTargeting("domain", window.location.hostname);googletag.pubads().setTargeting("lang", langParam);googletag.enableServices();googletag.display(slot_id);googletag.pubads().refresh([backupslot[idx]]);document.getElementById(divId).setAttribute("data-backuploaded", 1);document.getElementById(divId).setAttribute("data-backupeid", idx);});}}}}}}function backupAdsGlobalTop(divId, zoneId, reviveId) {return false;//console.log(divId + " : Back up Top ad Called " + slno);if (document.getElementById(divId)) {//if(slotIdentity==undefined||slotIdentity=='MR'){var backuploaded = document.getElementById(divId).getAttribute("data-backuploaded");var backupeid = document.getElementById(divId).getAttribute("data-backupeid");var idx = 0;var topArrLen = _oiAllAdUnitsTop.length;if (backuploaded == undefined || backuploaded == null) {if (document.getElementById(divId).hasAttribute("data-elementid")) {if (idx < topArrLen) {slot_name = _oiAllAdUnitsTop[idx].slotName;slot_size = _oiAllAdUnitsTop[idx].sizes;slot_id = _oiAllAdUnitsTop[idx].slotID;defineBackupSlot(slot_name, slot_size, slot_id, divId, idx);}}} else {if (_oiAllAdUnitsTop[backupeid]) {var slid = _oiAllAdUnitsTop[backupeid].slotID;refreshBackupSlot(backupeid, divId, slid);}}}}function backupAdsGlobalBottom(divId, zoneId, reviveId) {return false;console.log("Bottom Ad to Backfill");if (document.getElementById(divId)) {//console.log(divId + " : Back up Bottom ad Called " + slno);//if(slotIdentity==undefined||slotIdentity=='MR'){var backuploaded = document.getElementById(divId).getAttribute("data-backuploaded");var backupeid = document.getElementById(divId).getAttribute("data-backupeid");var idx = 0;var bottomArrLen = _oiAllAdUnitsBottom.length;if (backuploaded == undefined || backuploaded == null) {if (document.getElementById(divId).classList.contains("bottomAdContainer")) {if (idx < bottomArrLen) {slot_name = _oiAllAdUnitsBottom[idx].slotName;slot_size = _oiAllAdUnitsBottom[idx].sizes;slot_id = _oiAllAdUnitsBottom[idx].slotID;defineBackupSlot(slot_name, slot_size, slot_id, divId, idx);}}} else {if (_oiAllAdUnitsBottom[backupeid]) {var slid = _oiAllAdUnitsBottom[backupeid].slotID;refreshBackupSlot(backupeid, divId, slid);}}}}function backupAdsGlobalMiddle(divId, zoneId, reviveId) {return false;if (document.getElementById(divId)) {//console.log(divId + " : Back up Middle ad Called " + slno);//if(slotIdentity==undefined||slotIdentity=='MR'){var backuploaded = document.getElementById(divId).getAttribute("data-backuploaded");var backupeid = document.getElementById(divId).getAttribute("data-backupeid");var idx = slno;if (/Mobi|Android/i.test(navigator.userAgent)) {var mobiArrLen = _oiAllAdUnitsMobi.length;if (backuploaded == undefined || backuploaded == null) {if (document.getElementById(divId).hasAttribute("data-elementid")) {if (idx < mobiArrLen) {slot_name = _oiAllAdUnitsMobi[idx].slotName;slot_size = _oiAllAdUnitsMobi[idx].sizes;slot_id = _oiAllAdUnitsMobi[idx].slotID;defineBackupSlot(slot_name, slot_size, slot_id, divId, idx);}}} else {if (_oiAllAdUnitsMobi[backupeid]) {var slid = _oiAllAdUnitsMobi[backupeid].slotID;refreshBackupSlot(backupeid, divId, slid);}}} else {var webArrLen = _oiAllAdUnitsWeb.length;if (backuploaded == undefined || backuploaded == null) {if (document.getElementById(divId).hasAttribute("data-elementid")) {if (idx < webArrLen) {slot_name = _oiAllAdUnitsWeb[idx].slotName;slot_size = _oiAllAdUnitsWeb[idx].sizes;slot_id = _oiAllAdUnitsWeb[idx].slotID;defineBackupSlot(slot_name, slot_size, slot_id, divId, idx);}}} else {if (_oiAllAdUnitsWeb[backupeid]) {var slid = _oiAllAdUnitsWeb[backupeid].slotID;refreshBackupSlot(backupeid, divId, slid);}}}slno++;}}function backupAdsReviveTaboola(divId, zoneId, reviveId) {return false;if (document.getElementById(divId)) {console.log(divId + " : Back up ad Called " + slno);//if(slotIdentity==undefined||slotIdentity=='MR'){var backuploaded = document.getElementById(divId).getAttribute("data-backuploaded");var backupeid = document.getElementById(divId).getAttribute("data-backupeid");var idx = slno;if (/Mobi|Android/i.test(navigator.userAgent)) {var mobiArrLen = _oiAllAdUnitsMobi.length;if (backuploaded == undefined || backuploaded == null) {if (document.getElementById(divId).hasAttribute("data-elementid")) {if (idx < mobiArrLen) {slot_name = _oiAllAdUnitsMobi[idx].slotName;slot_size = _oiAllAdUnitsMobi[idx].sizes;slot_id = _oiAllAdUnitsMobi[idx].slotID;defineBackupSlot(slot_name, slot_size, slot_id, divId, idx);}}} else {if (_oiAllAdUnitsMobi[backupeid]) {var slid = _oiAllAdUnitsMobi[backupeid].slotID;refreshBackupSlot(backupeid, divId, slid);}}} else {var webArrLen = _oiAllAdUnitsWeb.length;if (backuploaded == undefined || backuploaded == null) {if (document.getElementById(divId).hasAttribute("data-elementid")) {if (idx < webArrLen) {slot_name = _oiAllAdUnitsWeb[idx].slotName;slot_size = _oiAllAdUnitsWeb[idx].sizes;slot_id = _oiAllAdUnitsWeb[idx].slotID;defineBackupSlot(slot_name, slot_size, slot_id, divId, idx);}}} else {if (_oiAllAdUnitsWeb[backupeid]) {var slid = _oiAllAdUnitsWeb[backupeid].slotID;refreshBackupSlot(backupeid, divId, slid);}}}slno++;}}var dhConfigDetails = {userId: function () {var chars = "0123456789";var string_length = 26;var randomstring = "";for (var i = 0; i < string_length; i++) {var rnum = Math.floor(Math.random() * chars.length);randomstring += chars.substring(rnum, rnum + 1);}var ts = Math.round(new Date().getTime() / 1000);return randomstring + "_" + ts;},getUserTrackerId: function () {var userTrackerId;var userTrackerIdCookie = getUserCookie("dp_user_tracker");if (userTrackerIdCookie == "" || userTrackerIdCookie == "undefined" || userTrackerIdCookie == null) {userTrackerIdCookie = "";}if (userTrackerIdCookie != "") {userTrackerId = userTrackerIdCookie;} else {userTrackerId = dhConfigDetails.userId();var oi_tracker_cookie_lifespan = 87600; // 3650 * 24var url = window.location.href;url_arr = url.split("/");domain = url_arr[2];lang_arr = domain.split(".");var cookie_domain = "." + lang_arr[1] + "." + lang_arr[2];}return userTrackerId;},};var target_page_type = "article";if (document.querySelector("head") && document.querySelector("head").hasAttribute("data-content_type")) {target_page_type = document.querySelector("head").getAttribute("data-content_type");if (target_page_type == "videos") {target_page_type = "videos";} else if (target_page_type == "photos") {target_page_type = "photos";} else if (target_page_type == "database") {target_page_type = "database";} else if (target_page_type == "Photo Feature Article") {target_page_type = "article-pf";} else {target_page_type = "article";}}console.log(target_page_type);var target_words = [];var getUrlDetails = {cleanArray: function (item) {var tempArr = [];for (var i = 0; i < item.length; i++) {if (item[i] !== undefined && item[i] != "") {tempArr.push(item[i]);}}return tempArr;},createArrayFromUrl: function () {target_words = target_words.concat(window.location.hostname);var url_host = window.location.hostname.split(".");target_words = target_words.concat(url_host);var url_path = window.location.pathname.replace(".html", "").split("/");target_words = target_words.concat(url_path);var pathArrLen = url_path.length;var subUrlPath = url_path[pathArrLen - 1].split("-");target_words = target_words.concat(subUrlPath);target_words = getUrlDetails.cleanArray(target_words);},};getUrlDetails.createArrayFromUrl();console.log(target_words);var dynFlag = 0;function dynamicSlotExecute() {function dynamicSlotDefineRefresh(el) {console.log("Inside Dynamic Slot Define...");var defineStatus = slot[999]; //el.getAttribute('data-defined');if (typeof slot[999] === "undefined") {googletag.cmd.push(function () {oi_ad_config_dynamic_slot.forEach(function (config, idx) {var mapVal = config.mapping;var gptVal = config.gpt;if (gptVal) {slot[999] = googletag.defineSlot(config.slotName, config.sizes, config.slotID).addService(googletag.pubads());}});googletag.pubads().enableSingleRequest();googletag.pubads().enableAsyncRendering();for (const key in targetingParams) {const value = targetingParams[key];if (value !== "" && value !== undefined && value !== null) {googletag.pubads().setTargeting(key, value);}}googletag.enableServices();googletag.display("are-slot-dynamic");const elements = document.querySelectorAll(".dynamic-slot");// Add a data attribute to each elementelements.forEach((element, index) => {element.setAttribute("data-defined", "1");});});} else {googletag.pubads().refresh([slot[999]]);}}var pattern = /are-slot-\d+/;var divs = document.getElementsByTagName("div");var matchingDivs = [];for (var i = 0; i < divs.length; i++) {var div = divs[i];if (pattern.test(div.id)) {if (!div.innerHTML.trim()) {if (div.id == "are-slot-3" || div.id == "are-slot-6" || div.id == "are-slot-5") {div.classList.remove("oi-axt");div.classList.remove("dynamic-slot");} else {div.classList.add("dynamic-slot");div.classList.remove("oi-axt");div.setAttribute("data-refreshed", 0);matchingDivs.push(div);}}}}function handleScroll() {var elements = document.querySelectorAll(".dynamic-slot");elements.forEach(function (elem) {const observerdynamic = new IntersectionObserver((entries) => {entries.forEach((entry) => {var adDiv = '';var adid = "are-slot-dynamic";var elemid = entry.target.getAttribute("id");if("www.oneindia.com" == window.location.hostname){if (elemid != "are-slot-6" && elemid != "are-slot-3" && elemid != "are-slot-5") {if (entry.isIntersecting && entry.intersectionRatio >= 0.5) {var isRefreshed = entry.target.getAttribute("data-refreshed");entry.target.classList.add("in-viewport");entry.target.classList.remove("out-viewport"); // Remove the class or do something elseif (isRefreshed == 0) {// Add a class or do something elseentry.target.innerHTML = adDiv;entry.target.style.display = "block";dynamicSlotDefineRefresh(entry.target);entry.target.setAttribute("data-refreshed", 1);entry.target.setAttribute("data-status", "true");}} else {entry.target.classList.add("out-viewport"); // Remove the class or do something elseentry.target.setAttribute("data-status", "false");entry.target.innerHTML = "";entry.target.setAttribute("data-refreshed", 0);}}}else{if (elemid != "are-slot-6" && elemid != "are-slot-3") {if (entry.isIntersecting && entry.intersectionRatio >= 0.5) {var isRefreshed = entry.target.getAttribute("data-refreshed");entry.target.classList.add("in-viewport");entry.target.classList.remove("out-viewport"); // Remove the class or do something elseif (isRefreshed == 0) {// Add a class or do something elseentry.target.innerHTML = adDiv;entry.target.style.display = "block";dynamicSlotDefineRefresh(entry.target);entry.target.setAttribute("data-refreshed", 1);entry.target.setAttribute("data-status", "true");}} else {entry.target.classList.add("out-viewport"); // Remove the class or do something elseentry.target.setAttribute("data-status", "false");entry.target.innerHTML = "";entry.target.setAttribute("data-refreshed", 0);}}}});},{ threshold: 0.5 });observerdynamic.observe(elem);});}if (desipearlseven == 0 && desipearleight == 0) {window.addEventListener("scroll", handleScroll);}}/*if(window.location.search.indexOf("gr=1") > -1){// Check if the element with id "home_page_top_widget_db_data_inc" existsvar homePageTopWidget = document.getElementById("home_page_top_widget_db_data_inc");if (homePageTopWidget) {// Define a function to fetch and update datavar getHomePageGrTopWidget = function() {// Use the Fetch API to make a GET requestfetch("/dynamic_html_includes/wap/widget/home_page_top_widget_db_data.html").then(response => response.text()).then(data => {// Update the innerHTML of the element with the fetched datahomePageTopWidget.innerHTML = data;}).catch(error => console.error("Error fetching data:", error));};// Call the function initiallygetHomePageGrTopWidget();// Set up an interval to call the function every 60000 milliseconds (1 minute)setInterval(getHomePageGrTopWidget, 60000);}}*/function setCookieCommon(name, value, expires, path, domain, secure = true) {if (typeof fetchConsSts !== "undefined") {fetchConsSts().then(function (promVal) {console.log("Consent Value :" + promVal);if (promVal == 1 || promVal == 5) {var cookie = name + "=" + encodeURIComponent(value);if (expires) {var date = new Date();date.setTime(date.getTime() + expires * 60 * 60 * 1000);cookie += "; expires=" + date.toUTCString();}if (path) {cookie += "; path=" + path;}if (domain) {cookie += "; domain=" + domain;}if (secure) {cookie += ";Secure";}cookie += ";SameSite=None";cookie += ";Partitioned";document.cookie = cookie;}});}}function getCookieCommon(name) {var cookies = document.cookie.split(";");for (var i = 0; i < cookies.length; i++) {var cookie = cookies[i].trim();if (cookie.startsWith(name + "=")) {return decodeURIComponent(cookie.substring(name.length + 1));}}return null;}function deleteCookieCommon(name) {setCookieCommon(name, "", -1, "/", "");}function globalAnchorClick() {if (document.querySelector(".oiHyperLink")) {console.log("OI - CMS - Anchor Click Executed");var redirectAnchorLink = (tlink, tparam) => {if (document.getElementById("globalanchor")) {document.getElementById("globalanchor").remove();}var link = document.createElement("a");if (tparam == "_blank") {link.target = "_blank";}link.id = "globalanchor";link.href = tlink;document.body.appendChild(link);document.getElementById("globalanchor").click();};const clickedElem = document.querySelectorAll(".oiHyperLink");clickedElem.forEach((el) => {el.addEventListener("click", function handleClick(event) {event.preventDefault();event.stopImmediatePropagation();var origin = el;var utmParam = "";var targetParam = "";var targetLink = "";if (origin.hasAttribute("data-uparam")) {utmParam = origin.getAttribute("data-uparam");}if (window.event.ctrlKey) {targetParam = "_blank";}if (origin.hasAttribute("target")) {targetParam = origin.getAttribute("target");}if (origin.hasAttribute("href")) {var targetLink = origin.getAttribute("href");if (targetLink != "" && targetLink != "#" && targetLink != "javascript:void(0);" && !targetLink.includes("javascript:")) {if (utmParam != "") {if (targetLink.indexOf("?") > "-1") {var targetLinkFinal = targetLink + "&" + utmParam;} else {if (utmParam.indexOf("?") > "-1") {var targetLinkFinal = targetLink + utmParam;} else {var targetLinkFinal = targetLink + "?" + utmParam;}}}redirectAnchorLink(targetLinkFinal, targetParam);}}});el.addEventListener("mousedown", function handleClick(event) {if (event.button === 1 || event.button === 0) {event.preventDefault();event.stopImmediatePropagation();var origin = el;var utmParam = "";var targetParam = "";var targetLink = "";if (origin.hasAttribute("data-uparam")) {utmParam = origin.getAttribute("data-uparam");}if (window.event.ctrlKey) {targetParam = "_blank";}if (origin.hasAttribute("target")) {targetParam = origin.getAttribute("target");}if (origin.hasAttribute("href")) {var targetLink = origin.getAttribute("href");if (targetLink != "" && targetLink != "#" && targetLink != "javascript:void(0);" && !targetLink.includes("javascript:")) {if (utmParam != "") {if (targetLink.indexOf("?") > "-1") {var targetLinkFinal = targetLink + "&" + utmParam;} else {if (utmParam.indexOf("?") > "-1") {var targetLinkFinal = targetLink + utmParam;} else {var targetLinkFinal = targetLink + "?" + utmParam;}}}redirectAnchorLink(targetLinkFinal, targetParam);}}}});});}}function setCookie(name, value, minutes) {const d = new Date();d.setTime(d.getTime() + (minutes * 60 * 1000));const expires = "expires=" + d.toUTCString();document.cookie = `${name}=${value};${expires};path=/`;}// Usage(function(){let count = getCookieCommon("ckUs_count");if (count === null) {count = 1; } else {count = parseInt(count, 10) + 1;}setCookie('ckUs_count', count, 10); // sets 'myCookie' for 10 minutes})()//MoMagic Codeif (domainmiddle == "oneindia") {if (trackpagetype == "home" || trackpagetype == "homepage") {momagicFlag = 0;}}if (domainmiddle == "drivespark") {if (/Mobi|Android/i.test(navigator.userAgent)) {momagicFlag = 1;}}let content_type = document.head?.dataset?.content_type;if(content_type == "discover"){if("oneindia" == domainmiddle){rssPromoNotification = 0;ioAppPromoNotification = 0;momagicFlag = 0}}if("1" == dataOIApp) {if(/mobi|Android/i.test(navigator.userAgent)){momagicFlag = 0;}}if (/Mobi|Android/i.test(navigator.userAgent)) {if (window.location.search.indexOf("utm_source=boost") > -1) {globalAdObj = { gpt: 1, gam1: 1, gam2: 1, gam3: 1, gam4: 1, gam5: 0, outstream: 0, cube: 0, refinery: 0, sticky: 0, vuukle: 0, performance: 0, anymind: 0, leaderboard: 0, rightrail: 0, mr1: 0, mr2: 0, rightsticky: 0, interstitial: 0, };globalAdObj.affMatrix = 0;momagicFlag= 0vidvertoFlag = 0;affMatrix = 0;backfillorder=0loadRecomVideoFlag = nullviroolFlag = 0;}}if (/Mobi|Android/i.test(navigator.userAgent)) {if (window.location.search.indexOf("utm_medium=CAMP123") > -1) {globalAdObj = { gpt: 0, gam1: 1, gam2: 1, gam3: 1, gam4: 0, gam5: 0, outstream: 0, cube: 0, refinery: 0, sticky: 0, vuukle: 0, performance: 0, anymind: 0, leaderboard: 0, rightrail: 0, mr1: 0, mr2: 0, rightsticky: 0, interstitial: 0, };globalAdObj.affMatrix = 0;momagicFlag= 0vidvertoFlag = 0;affMatrix = 0;backfillorder=0loadRecomVideoFlag = nullviroolFlag = 0;adslotvuukle = 0;adgNativeOcean = 0;prebidFlag = 0;apsFlag = 0;rssPromoNotification= 0;ioAppPromoNotification = 0readMoreEnableForNonLite = 0;let disable = 0window.addEventListener("scroll",function(){if(disable == 0) {disable =1;document.getElementById("are-slot-3")?.style.setProperty("display","none","important");document.getElementById("are-slot-5")?.style.setProperty("display","none","important");document.getElementById("are-slot-6")?.style.setProperty("display","none","important");document.getElementById("are-slot-7")?.style.setProperty("display","none","important");document.getElementById("are-slot-8")?.style.setProperty("display","none","important");}})}}if("www.filmibeat.com" == window.location.hostname){if("article" == trackpagetype){if(!(/Mobi|Android/i.test(navigator.userAgent))){globalAdObj.mr2 = 0;}}}console.log(globalAdObj);var trueReachLoad = false;var moMagicObj = {oneindia: "https://1437953666.rsc.cdn77.org/publisher/7ca85928-f5eb-11ec-83bf-afb6a6e8a7b0/truereachAdRender.js",drivespark: "https://1437953666.rsc.cdn77.org/publisher/460eb521-216f-11ef-b350-dd452b15e880/truereachAdRender.js",mykhel: "https://1437953666.rsc.cdn77.org/publisher/9864021f-69b2-11ee-afad-e75bb0c6e575/truereachAdRender.js",filmibeat: "https://1437953666.rsc.cdn77.org/publisher/dca36f8d-69a6-11ee-afad-1feb59fc7432/truereachAdRender.js",goodreturns: "https://1437953666.rsc.cdn77.org/publisher/65240bde-69a7-11ee-afad-01f404c59a40/truereachAdRender.js",};var moMagicHost = ["oneindia", "mykhel", "filmibeat", "goodreturns"];if (moMagicHost.includes(domainmiddle)) {if (promoArticle == 0) {if (/Mobi|Android/i.test(navigator.userAgent)) {if (momagicFlag === 1) {var screxe = 0;window.addEventListener("scroll", function () {if (screxe == 0) {screxe = 1;var scriptElement = document.createElement("script");scriptElement.async = true;scriptElement.type = "text/javascript";scriptElement.id = "interactive_js_adcode";scriptElement.src = moMagicObj[domainmiddle];scriptElement.onload = function () {trueReachLoad = true;};document.head.appendChild(scriptElement);}});}}}}//MoMagic Code//Login Module Dataasync function hash(value) {const hash = await window.crypto.subtle.digest("SHA-256", new TextEncoder().encode(value));return bytesToBase64(new Uint8Array(hash));}function bytesToBase64(bytes) {const binString = Array.from(bytes, (x) => String.fromCodePoint(x)).join("");return btoa(binString);}var userLoggedIn = 0;var userLoggedInId = localStorage.getItem("MSLUserId"); //getCookieCommon('MSLUserId');var userLoggedInDataJson = localStorage.getItem("MSLUserData"); //getCookieCommon('MSLUserData');var userLoggedEmail = "";var userLoginToken = "";var userLoggedGender = "";var userLoginAge = "";var userLoginName = "";if (userLoggedInId && userLoggedInDataJson) {userLoggedIn = 1;var userLoggedInParseData = JSON.parse(userLoggedInDataJson);userLoggedEmail = userLoggedInParseData.email ?? "";userLoginToken = userLoggedInParseData.login_token ?? "";userLoggedGender = userLoggedInParseData.gender ?? "";userLoginAge = userLoggedInParseData.age ?? "";userLoginName = userLoggedInParseData.name ?? "";if (userLoggedEmail) {userLoggedEmail = userLoggedEmail;}if (userLoginToken) {userLoginToken = userLoginToken;}}console.log("User Login Flag : " + userLoggedIn);console.log(userLoggedEmail);console.log("User Login Token : " + userLoginToken);var userSegmentDataJson = localStorage.getItem("user_segment");var userInterestSection = "";var userInterestSectionWeightage = "";if (userSegmentDataJson) {var userSegmentParseData = JSON.parse(userSegmentDataJson);userInterestSection = userSegmentParseData.targettedSection ?? "";userInterestSectionWeightage = userSegmentParseData.category ?? "";}function getMetaContent(name) {const metaTag = document.querySelector(`meta[name="${name}"]`);return metaTag ? metaTag.getAttribute("content") : "";}var interests = [];if (userInterestSection && userInterestSection.length > 0) {interests = userInterestSection.slice(0, 3);} else {const newsKeywords = getMetaContent("news_keywords");const keywords = getMetaContent("Keywords") || getMetaContent("keywords");if (newsKeywords) {interests = newsKeywords.split(",").map((keyword) => keyword.trim()).slice(0, 3);} else if (keywords) {interests = keywords.split(",").map((keyword) => keyword.trim()).slice(0, 3);}}var userlocation = localStorage.getItem("userlocation");var MSLuserdata = localStorage.getItem("MSLUserLoc");userlocation = userlocation ? userlocation : MSLuserdata;var userip = "";var usercon = "";var userstate = "";var usercity = "";if (userlocation) {var jdata = userlocation;jdata = JSON.parse(jdata);usercon = jdata.country_code;userip = jdata.ip;userstate = jdata.state;usercity = jdata.city;}const fpd = {user: {},device: {},};if (userLoggedGender) {fpd.user.gender = userLoggedGender;}if (interests.length > 0) {fpd.user.interests = interests;}if (userip) {fpd.device.ip = userip;}if (usercon || userstate || usercity) {fpd.device.geo = {}; // Initialize `geo` objectif (usercon) {fpd.device.geo.country = usercon;}if (userstate) {fpd.device.geo.region = userstate;}if (usercity) {fpd.device.geo.city = usercity;}}console.log(fpd);
- Home
- Notifications
- Notifications
- App
Home » Celebs » Ayan Mukerji
Director/Story Writer/Screenplay Writer
Biography: Ayan Mukherjee is an Indian film director, who is the son of Bengali film actor Deb Mukherjee. He is also the nephew of Joy Mukherjee and the first cousin of Kajol and Tanisha Mukherjee and second cousin of Rani Mukherjee. Ayaan first worked as an assistant to Ashutosh Gowariker, who is his brother in law, on the 2004 film, Swades, and later to Johar on Kabhi Alvida Naa Kehna. After taking a short break from filmmaking, Mukerji wrote the screenplay for Wake Up Sid and gave it to Johar who decided it should become a film. The film starred Ranbir Kapoor and Konkona Sen Sharma in lead roles and went on to become a commercial and critical success.
Read More
- Overview
- Biography
- Movies
Ayan Mukerji Movies
Movie | Director | Release Date |
| Ayan Mukerji | 14 Aug 2025 |
| Ayan Mukerji | Sep 2023 |
Bollywood Brahmastra: Part One – Shiva as Screenplay Writer | Ayan Mukerji | 09 Sep 2022 |
Ayan Mukerji: Age, Net Worth, Movies, Family, and Personal Details
Ayan Mukerji |
Name | Ayan Mukerji |
Profession(s) | |
Date Of Birth | 15 Aug 1983 |
Age | 42 |
Birth Place | Kolkata |
Current Residence | |
Religion | |
Nationality | |
Height | |
Zodiac Sign | |
Hobbies | |
Ayan Mukerji Net Worth |
Net Worth | |
Frequently Asked Questions (FAQs) About Ayan Mukerji
-
What is Ayan Mukerji's age?
The age of Ayan Mukerji in the 2025 was 42.
-
Where was the Ayan Mukerji born?
The Ayan Mukerji's was born in Kolkata.
-
What is the Ayan Mukerji date of birth?
The DOB for Ayan Mukerji was 15 Aug 1983.
-
What is Ayan Mukerji's latest movie?
The most recent movies for Ayan Mukerji is Brahmastra 2.
-
What are Ayan Mukerji upcoming movies?
War 2 were Ayan Mukerji's upcoming films.
-
Who is the next director for Ayan Mukerji's next project?
Ayan Mukerji's next feature film with Ayan Mukerji.
Ayan Mukerji News
- KV Anand Had COVID-19 Complications, Faced Difficulty In Breathing: Reports
- KV Anand Quashes Rumours Of Teaming Up With Suriya For Ayan Sequel!
- Salman Khan steps into the shoes of Surya!
- Sushant Singh Rajput's Death Anniversary: BB 18 Winner Karan Veer Mehra Along ..
- Sunjay Kapur Funeral: Has Karisma Kapoor Ex's Body Been Brought To India? Here..
- Sushant Singh Rajput 5th Death Anniversary: Sister Shweta Singh Kirti’s Emotio..
Upcoming Movies
- Sitaare Zameen Par - 20 Jun 2025
- Panchayat Season 4 - 24 Jun 2025
- Nikita Roy And The Book Of Darkness - 27 Jun 2025
- Metro In Dino - 4 Jul 2025
- Maalik - 11 Jul 2025
- Bas Karo Aunty - 15 Jul 2025
- Saiyaara - 18 Jul 2025
- Raakh - 19 Jul 2025
- Param Sundari - 25 Jul 2025
- Luv Ranjan's Next - 1 Aug 2025
Latest Releases
- Rana Naidu Season 2 - 13 Jun 2025
- Gamerlog - 12 Jun 2025
- Lafangey - 6 Jun 2025
- Stolen - 4 Jun 2025
- Vellapanti - 30 May 2025
- Criminal Justice: A Family Matter - 29 May 2025
- Bhool Chuk Maaf - 23 May 2025
- Knock Knock Kaun Hai? - 22 May 2025
- Romeo S3 - 16 May 2025
- Very Parivarik Season 2 - 9 May 2025
Celeb Birthdays
-
-
-
-
-
-
-
Neil Patrick Harris Jun 15
Celebs In Spotlight
- Mouni Roy
- Emraan Hashmi
- Ajay Devgn
- Salman Khan
- Nitanshi Goel
- Shivangi Joshi
- Kriti Sanon
- Vicky Kaushal
Ayan Mukerji Videos
- BRAHMASTRAM Trailer - Telugu
- Sanju: Fans says,'it's illegal in India' as Rishi Kapoor wants Ranbir Kapoor Marriage
Latest Box Office Collections
- Chhaava - 805.25 Cr
- Raid 2 - 235.89 Cr
- Housefull 5 - 207.60 Cr
- Sky Force - 149.98 Cr
- Kesari Chapter 2 - 144.64 Cr
- Jaat - 118.72 Cr
- Bhool Chuk Maaf - 86.60 Cr
- Deva - 56.32 Cr
Settings
Clear Notifications
Notifications
Use the toggle to switch on notifications
-
Block for 8 hours
-
Block for 12 hours
-
Block for 24 hours
-
Don't block

Log in for Better Reading Experience!

Age
Select your Age Range
- Under 18
- 18 to 25
- 26 to 35
- 36 to 45
- 45 to 55
- 55+
${item.title}
`; }).join(''); document.querySelector("#article-shorts").innerHTML = ``; }) .catch(error => console.error('Error fetching JSON:', error));setTimeout(() => {var numLi = document.querySelectorAll(".fb-trending-list ul li").length;var totalWidth = (numLi - 2) * 290;document.querySelector(".trending-nextarrow").addEventListener("click", function (event) { event.preventDefault();document.querySelectorAll('.yt_vid').forEach(ele => { ele.contentWindow ? ele.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*') : ele.pause(); }); var pos = parseFloat(document.querySelector(".fb-trending-list ul").scrollLeft) + 290; document.querySelector(".fb-trending-list ul").scrollTo({ left: pos, behavior: 'smooth' });});document.querySelector(".trending-prevarrow").addEventListener("click", function (event) { event.preventDefault(); document.querySelectorAll('.yt_vid').forEach(ele => { ele.contentWindow ? ele.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*') : ele.pause(); }); var posleft = parseFloat(document.querySelector(".fb-trending-list ul").scrollLeft) - 290; document.querySelector(".fb-trending-list ul").scrollTo({ left: posleft, behavior: 'smooth' });});// Function to pause all shortsfunction pauseAllShorts() { document.querySelectorAll("#article-shorts .yt_vid").forEach(video => { if (video.tagName.toLowerCase() === "iframe" && video.contentWindow) { video.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', "*"); } else if (video.tagName.toLowerCase() === "video") { video.pause(); } });}// Function to toggle play/pausefunction toggleVideo(event, containerSelector, iframeSelector) { let target = event.target.closest(".v-over"); // Ensure click is inside `.v-over` if (!target) return; let index = target.getAttribute("data-index"); let videos = document.querySelectorAll(`${containerSelector} ${iframeSelector}`); let videoElement = videos[index]; if (!videoElement) return; // Ensure the element exists // If it's a YouTube iframe if (videoElement.tagName === "IFRAME" && videoElement.contentWindow) { if (target.classList.contains("v-overH")) { // Pause YouTube video videoElement.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', "*"); target.classList.remove("v-overH"); } else { //pauseAllVideos(); pauseAllShorts(); videoElement.onload = () => { videoElement.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', "*"); }; videoElement.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', "*"); document.querySelectorAll(`${containerSelector} .v-overH`).forEach(el => el.classList.remove("v-overH")); target.classList.add("v-overH"); } } // If it's an HTML5