ओटीटी प्लेटफॉर्म पर रिलीज़ होने वाली थी सलमान-आयुष की फिल्म 'अंतिम', जानें क्यों बदला गया फैसला

नई दिल्ली, जेएनएन। सिनेमाघर और डिजिटल प्लेटफॉर्म के बीच कॉम्पटीशन को लेकर अभिनेता सलमान खान का कहना है कि 'बड़े पर्दे पर फिल्म देखने के आनंद को कोई बदल नहीं सकता है। थिएटर की तुलना में लैपटॉप, आइपैड या छोटी स्क्रीन पर फिल्में देखने में ज्यादा मजा नहीं आता है। अगर आपको लगता है कि समार्टफोन सिनेमाहॉल का विकल्प हैं, तो यह सच नहीं है'।

सलमान ख़ान ने ये बात सोमवार को मुंबई में फिल्म 'अंतिम: द फाइनल ट्रूथ' के ट्रेलर लॉन्च के मौके पर कही। ट्रेलर लॉन्च इवेंट मुंबई में किया गया जहां फिल्म की पूरी स्टार कास्ट मौजूद थी। इवेंट में बताया कि पहले 'अंतिम' को डिजिटल प्लेटफॉर्म पर रिलीज करने की योजना थी। बाद में निर्माताओं ने उसे थिएटर में रिलीज करने का फैसला लिया। महेश मांजरेकर द्वारा निर्देशित 'अंतिम : द फाइनल ट्रूथ' साल 2018 में रिलीज मराठी फिल्म मुलशी पैटर्न की रीमेक है।
इस फिल्म में सलमान सख्त सिख पुलिस अधिकारी की भूमिका में हैं जिसका नाम राजवीर सिंह है। वहीं उनके बहनोई आयुष शर्मा गैंगस्टर की भूमिका में हैं। ये पहली बार है जब सलमान और आयुष साथ में स्क्रीन शेयर कर रहे हैं। फिल्म में सलमान खान के अपोजिट कोई अभिनेत्री नहीं है। इस बाबत 'दबंग' अभिनेता ने कहा कि यह किरदार अपने आप में संपूर्ण है। अगर आप इसमें रोमांस या गाना जोड़ दें तो किरदार हल्का हो जाएगा, जो हम नहीं चाहते थे। हालांकि हमने उसे लेकर थोड़ा सी शूटिंग भी की थी, लेकिन फिर हमने इसे फिल्म से अलग कर दिया।
एक्टर ने बताया यह किरदार बिना हीरोइन के ही खूबसूरत है। सिख किरदार निभाने को लेकर सलमान ने कहा कि वह हर किरदार को पूरी ईमानदारी के साथ निभाते हैं। आपको बता दें कि 'अंतिम' 26 नवंबर को सिनेमाघरों में रिलीज होगी। फिल्म का ट्रेलर रिलीज़ हो चुका है जिसे काफी अच्छी प्रतिक्रिया भी मिली है। ट्रेलर आयुष शर्मा के जन्मदिन वाले दिन रिलीज़ किया गया था।
View this post on InstagramA post shared by Salman Khan (@beingsalmankhan) function getAndroidVersion(ua) {ua = (ua || navigator.userAgent).toLowerCase(); var match = ua.match(/android\\s([0-9\\.]*)/);return match ? match[1] : false;}; var versions='4.2.2'; var versionArray=versions.split(',');var currentAndroidVersion=getAndroidVersion();if(versionArray.indexOf(currentAndroidVersion)!=-1){var blocks = document.getElementsByTagName('blockquote'); for(var i = 0; i < blocks.length; i++){blocks[i].innerHTML = '';}}DailyhuntDisclaimer: This story is auto-aggregated by a computer program and has not been created or edited by Dailyhunt. Publisher: Dainik Jagran related stories मनोरंजन सत्यमेव जयते 2 में दिखा जॉन का ऐंग्री अवतार, कार का इंजन दिया उखाड़ 34 min ago मनोरंजन इन दो बॉडीबिल्डर्स से अकेले टक्कर लेंगे सलमान खान, इस बार जीत पाना मुश्किल? 19 hrs ago Breaking Jagran Save Earth: रंग लाएगी धरती बचाने की मुहिम, पेरिस समझौते से आगे बढ़ने की आस 2 min ago विदेश कंगाल पाकिस्तान को सऊदी का सहारा: इमरान खान ने प्रिंस के आगे फैलाए हाथ, तीन अरब... 3 min ago भारत महाराष्ट्र: ठाणे में कोविड-19 के 128 नये मामले, छह और व्यक्तियों की... 3 min ago भारत ब्लॉग: चालीस फीसदी टिकट की घोषणा से क्या यूपी में लगेगी कांग्रेस की नैया पार?... 3 min ago होम भारत में पिछले 24 घंटे में कोरोना से हुई 585 मौतें, अकेले केरल में गई 482 की... 5 min ago दुनिया Sudan Coup: सूडान के सर्वोच्च जनरल बुरहान ने कहा- देश को गृहयुद्ध से बचाने के... 6 min ago browse by topics अंतरराष्ट्रीय लाइफस्टाइल खेल प्रौद्योगिकी मोटर view all topics Newspapers view all newspapers Terms & Conditions User Agreement Privacy Policy Content Policy Takedown Policy Grievance Support © 2021 DailyHunt Top @font-face {font-family:'dyLang'; src: url('https://m.dailyhunt.in/news/temp_daily/fonts/hi/notoRegular.ttf') format('truetype');font-weight:normal;font-style:normal;}

if (window.localStorage.hasOwnProperty('pageViews')){
var pvj = JSON.parse(window.localStorage.getItem('pageViews'));
var lastUrl = pvj["lastUrl"];
if (window.location.href.split('?')[0]!==lastUrl){
window.localStorage.setItem('pageViews', JSON.stringify({"lastUrl":window.location.href.split('?')[0],"count":JSON.parse(window.localStorage.getItem('pageViews'))["count"] + 1}));
}
}else{
window.localStorage.setItem('pageViews', JSON.stringify({"lastUrl":window.location.href.split('?')[0],"count":1}));
}

show2ndChunk();
// if(window.localStorage.hasOwnProperty("pageViews") && (Number(JSON.parse(window.localStorage.getItem('pageViews'))["count"]) = 0; i--) {
pair = querystring[i].split('=');
if(d(pair[0])!=''){
params[d(pair[0])] = d(pair[1] || '');
}
}
delete params.ps;
delete params.pn;
// var getparams=getAllParams(window.location.pathname);
// var params = Object.assign( params, getparams);


return Object.keys(params).length !== 0 ? params : false;
}



function serialize(obj) {
var str = [];
for(var p in obj)
if (obj.hasOwnProperty(p)) {
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
}
return str.join("&");
}

var paramObj = deparam();
paramObj && sessionStorage.setItem('gaParam', JSON.stringify(paramObj));

var gaSesParam = sessionStorage.getItem('gaParam');
if(gaSesParam){
var obj = JSON.parse(gaSesParam);
if(Object.keys(obj).length !== 0){
var serializeparam = serialize(obj);
newUrl = newUrl+'?'+serializeparam;
}
}

ga('create', 'UA-64780041-3', 'auto');
ga('set', 'page', newUrl);
ga('send', 'pageview');

ga('create', 'UA-139067481-1', 'auto', 'supplementTracker');
ga('supplementTracker.set', 'page', newUrl);
ga('supplementTracker.send', 'pageview');
})(ga);



var cookiePath = ';path=/';


// details page content logo parent reset
$(".details_data figure img.np_logo").parent("figure").css("background-color","#fff");

$(document).ready(function (e) {
$(".fnt_sel li").click(function() {
var thisEle = $(this).children().attr('id');
actions.setSingleCookie('fsize',thisEle);
$(this).children().addClass('active').parent().siblings().children().removeClass('active');
$("article").removeClass().addClass(thisEle);

$('#ftest').removeClass().addClass(thisEle);
});

$('#back-top a').click(function() {
$('body,html').animate({ scrollTop: 0 }, 800);
return false;
});

// click 2 top
$("#back-top").hide();
$(function () {
$(window).scroll(function (e) {
if ($(this).scrollTop() > 150) {
$('#back-top').fadeIn();
$("#sel_lang_scrl").animate({
top: "55px"
}, 100);
} else {
$('#back-top').fadeOut();
$("#sel_lang_scrl").animate({
top: "0"
}, 0);
}
});
});

//Clicking on the news link from the details left panel, cookie value will be store to track from which page it's going to article details page and redirecting to the article details page
$('.aside_newsListing').on('click', 'li a', function(e) { // code
e.preventDefault();
document.cookie="nextHeadPage="+($(this).attr('data-from'))+";path=/";
document.cookie="nextCountHead="+($(this).attr('data-count'))+";path=/";
//window.open(($(this).attr('href')),'_self');
window.location.href=($(this).attr('href'));
});
});

function shareOnFb(sUrl){
var s = getOS();
//var sUrl = encodeURIComponent(""+s);
//var sUrl = encodeURIComponent("https://m.dailyhunt.in/news/india/hindi/dainik+jagran-epaper-jagran/otiti+pletaphorm+par+rilij+hone+vali+thi+salaman+aayush+ki+philm+antim+jane+kyo+badala+gaya+phaisala-newsid-n327500382"+'?ss=fb&s='+s);
var title = encodeURIComponent("ओटीटी प्लेटफॉर्म पर रिलीज़ होने वाली थी सलमान-आयुष की फिल्म \'अंतिम\', जानें क्यों बदला गया फैसला - Dainik Jagran | DailyHunt", "UTF-8");
var photo = "https://assets-news-bcdn.dailyhunt.in/cmd/resize/400x400_80/fetchdata16/images/15/db/6e/15db6e0f0fc5d9639765a3f2cb0974ff7018b54d035755f3517776db44fdb865.jpg";
var textDes = "\u0928\u0908 \u0926\u093f\u0932\u094d\u0932\u0940, \u091c\u0947\u090f\u0928\u090f\u0928\u0964 \u0938\u093f\u0928\u0947\u092e\u093e\u0918\u0930 \u0914\u0930 \u0921\u093f\u091c\u093f\u091f\u0932 \u092a\u094d\u0932\u0947\u091f\u092b\u0949\u0930\u094d\u092e \u0915\u0947 \u092c\u0940\u091a \u0915\u0949\u092e\u094d\u092a\u091f\u0940\u0936\u0928 \u0915\u094b \u0932\u0947\u0915\u0930 \u0905\u092d\u093f\u0928\u0947\u0924\u093e \u0938\u0932\u092e\u093e\u0928 \u0916\u093e\u0928 \u0915\u093e \u0915\u0939\u0928\u093e \u0939\u0948 \u0915\u093f '\u092c\u0921\u093c\u0947 \u092a\u0930\u094d\u0926\u0947 \u092a\u0930 \u092b\u093f\u0932\u094d\u092e \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u0906\u0928\u0902\u0926 \u0915\u094b \u0915\u094b\u0908 \u092c\u0926\u0932 \u0928\u0939\u0940\u0902 \u0938\u0915\u0924\u093e \u0939\u0948\u0964 function getAndroidVersion(ua) {ua = (ua || navigator.userAgent).toLowerCase(); var match = ua.match(\/android\\\\s([0-9\\\\.]*)\/);return match ? match[1] : false;}; var versions='4.2.2'; var versionArray=versions.split(',');var currentAndroidVersion=getAndroidVersion();if(versionArray.indexOf(currentAndroidVersion)!=-1){var blocks = document.getElementsByTagName('blockquote'); for(var i = 0; i < blocks.length; i++){blocks[i].innerHTML = '';}}";
var des = encodeURIComponent(textDes, "UTF-8");
var url = "http://www.facebook.com/sharer/sharer.php?u="+sUrl+'?ss=fb&s='+s;
fb = window.open( url, "facebook", "status=1, height=600, width=800, toolbar=0,resizable=0");
fb.window.focus();
}

function shareOnFbD(){
var s = getOS();
//var sUrl = encodeURIComponent(""+'&s='+s);
var sUrl = encodeURIComponent("https://m.dailyhunt.in/news/india/hindi/dainik+jagran-epaper-jagran/otiti+pletaphorm+par+rilij+hone+vali+thi+salaman+aayush+ki+philm+antim+jane+kyo+badala+gaya+phaisala-newsid-n327500382"+'?ss=fb&s='+s)
var title = encodeURIComponent("ओटीटी प्लेटफॉर्म पर रिलीज़ होने वाली थी सलमान-आयुष की फिल्म \'अंतिम\', जानें क्यों बदला गया फैसला - Dainik Jagran | DailyHunt", "UTF-8");
var photo = "https://assets-news-bcdn.dailyhunt.in/cmd/resize/400x400_80/fetchdata16/images/15/db/6e/15db6e0f0fc5d9639765a3f2cb0974ff7018b54d035755f3517776db44fdb865.jpg";
var textDes = "\u0928\u0908 \u0926\u093f\u0932\u094d\u0932\u0940, \u091c\u0947\u090f\u0928\u090f\u0928\u0964 \u0938\u093f\u0928\u0947\u092e\u093e\u0918\u0930 \u0914\u0930 \u0921\u093f\u091c\u093f\u091f\u0932 \u092a\u094d\u0932\u0947\u091f\u092b\u0949\u0930\u094d\u092e \u0915\u0947 \u092c\u0940\u091a \u0915\u0949\u092e\u094d\u092a\u091f\u0940\u0936\u0928 \u0915\u094b \u0932\u0947\u0915\u0930 \u0905\u092d\u093f\u0928\u0947\u0924\u093e \u0938\u0932\u092e\u093e\u0928 \u0916\u093e\u0928 \u0915\u093e \u0915\u0939\u0928\u093e \u0939\u0948 \u0915\u093f '\u092c\u0921\u093c\u0947 \u092a\u0930\u094d\u0926\u0947 \u092a\u0930 \u092b\u093f\u0932\u094d\u092e \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u0906\u0928\u0902\u0926 \u0915\u094b \u0915\u094b\u0908 \u092c\u0926\u0932 \u0928\u0939\u0940\u0902 \u0938\u0915\u0924\u093e \u0939\u0948\u0964 function getAndroidVersion(ua) {ua = (ua || navigator.userAgent).toLowerCase(); var match = ua.match(\/android\\\\s([0-9\\\\.]*)\/);return match ? match[1] : false;}; var versions='4.2.2'; var versionArray=versions.split(',');var currentAndroidVersion=getAndroidVersion();if(versionArray.indexOf(currentAndroidVersion)!=-1){var blocks = document.getElementsByTagName('blockquote'); for(var i = 0; i < blocks.length; i++){blocks[i].innerHTML = '';}}";
var des = encodeURIComponent(textDes, "UTF-8");
var url = "http://www.facebook.com/sharer/sharer.php?s=100&t="+title+"&u="+sUrl+"&m2w";
//var url = "http://www.facebook.com/sharer/sharer.php?s=100&p[title]="+title+"&p[url]="+sUrl+"&p[summary]="+des+"&p[image][0]="+photo+"&m2w";
fb = window.open( url, "facebook", "status=1, height=600, width=800, toolbar=0,resizable=0");
fb.window.focus();
}


function shareOnTwitter(){
var s = getOS();
var sUrl = encodeURIComponent("http://dhunt.in/nEyap?ss=twt&s="+''+s);
var title = encodeURIComponent("ओटीटी प्लेटफॉर्म पर रिलीज़ होने वाली थी सलमान-आयुष की फिल्म \'अंतिम\', जानें क्यों बदला गया फैसला - Dainik Jagran | DailyHunt", "UTF-8");
var photo="https://assets-news-bcdn.dailyhunt.in/cmd/resize/400x400_80/fetchdata16/images/15/db/6e/15db6e0f0fc5d9639765a3f2cb0974ff7018b54d035755f3517776db44fdb865.jpg";
var url = "https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Flocalhost%3A8084%2Fexample%2Fnewhtml.html&text="+title+"&tw_p=tweetbutton&url="+sUrl;
tw = window.open( url, "twitter", "status=1, height=600, width=800, toolbar=0,resizable=0");
tw.window.focus();
}

// for windows desktop app open : start

/*var OS_Name = navigator.userAgent.toLowerCase();

if (OS_Name.indexOf("windows nt 10") !== -1 && !(window.location.href.indexOf("isuwpinternaldeeplink=true") > -1)) {

// If isuwpinternaldeeplink=true is there in url then don't execute the below code
$( window ).load(function() {
// Get saved data from sessionStorage
var data = sessionStorage.getItem('win_open');

if(data !== "yes")
{
var urlPath = $(location).attr('href');

// Save data to sessionStorage
sessionStorage.setItem('win_open', 'yes');

window.location.href = 'dailyhunt.dhlink://' + urlPath;
}
});

}*/
// for windows desktop app open : end


var actions = {
//key(key for post request)
myajax: function (key, country, itemBox, itemBox1) {
var mydata = key + '=' + country;
$.ajax({
url: 'ajax/getLang.php',
data: mydata,
error: function () {

},
dataType: 'json',
cache: true,
success: function (data) {
switch (key) {
case 'countryKey':
uiStructure.fabLang(data, itemBox);
break;
case 'groupEdtion':
uiStructure.groupSrt(data, itemBox, itemBox1);
break;
}
},
type: 'POST'
});
},

getCookieByName: function (cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') c = c.substring(1);
if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
}
return "";
},
cookieLangLst: function (langLst) {
var list =decodeURIComponent(langLst);
var langIds = list.split(',');
langIds.forEach(function (langIds) {
var langElement = '.secLangLst li a[data-lancode="' + langIds + '"]';
$(langElement).addClass('active');
});
},

addLanToCookie: function (getFavLang, flag) { /*flag for popup screen(if popup flag = 1)*/

var cookiLangLst = [];
$(getFavLang).each(function (index) {
cookiLangLst.push($(this).attr('data-lancode'));
});
document.cookie = "cookiLangLst=" + cookiLangLst +cookiePath;

if (flag == 1) { /*for popup */
var finalCookie = $("#postData input[name=lang]").val() + ',' + cookiLangLst;
$("#postData input[name=lang]").val(finalCookie);

$('#postData').submit();
$('.popup').addClass('DN');
}
},

rmvFrmLang : function(item){
var coLanLst = decodeURIComponent(actions.getCookieByName('cookiLangLst'));
var arLanlst = coLanLst.split(',');
if(arLanlst){
var i = arLanlst.indexOf(item);
if (i != -1) {
arLanlst.splice(i, 1);
document.cookie = "cookiLangLst=" + arLanlst.toString()+cookiePath;
}

}
},
setCookie : function(cookieName,item){
var favItems = actions.getCookieByName(cookieName);
if(favItems){
/*var tt = favItems.match(new RegExp("(?:^|,)"+item+"(?:,|$)"));*/
if(!favItems.match(new RegExp("(?:^|,)"+item+"(?:,|$)"))){
document.cookie = cookieName+'=' + favItems+','+item+cookiePath;
}
}
else{
document.cookie = cookieName+'=' + item+cookiePath;
}

},
//change font size for Details page : start
setSingleCookie:function(cookieName,item){
document.cookie = cookieName+'=' + item+cookiePath;
},
//change font size for Details page : end

removCook :function(cookieName,item){
var favItems = actions.getCookieByName(cookieName);
if(favItems){
var item = actions.removeValFrmCsv(favItems,item);
document.cookie = cookieName+'=' + item +cookiePath;
}

},

removeValFrmCsv : function(list, value, separator){
separator = separator || ",";
var values = list.split(separator);
for(var i = 0 ; i < values.length ; i++) {
if(values[i] == value) {
values.splice(i, 1);
return values.join(separator);
}
}
return list;
},

changeSettingLink: function(country,lang){
var logoLink = $('nav .LHS a.logo').attr('href');
var splitUrl = logoLink.split('/');
var language = lang.replace("active", "").trim();
var newUrl = splitUrl[0]+'//'+splitUrl[2]+'/news/'+country+'/'+language;

$('nav .LHS a.logo').attr('href',newUrl);
$('.site_nav li .icn_news').attr('href',newUrl);
$('.menu a.bk').attr('href',newUrl);
$('#setting .sett_ok').attr('href',newUrl);
},

slidePopUp: function (that, next) {
$(that).hide("slide", {
direction: "right"
}, 500, function () {
next.show("slide", {
direction: "left"
}, 700);
});
}
};



var uiStructure = {
fabLang: function (data, itemBox) {
itemBox.forEach(function (value, i) {
var langHtml = "";
data.row.forEach(function (lang) {
var htm = '' + lang.uniName + '';
langHtml += htm;
});
$(value).empty();
$(value).append(langHtml);
$('.primaryLang .english').addClass('active');
$('.secLangLst .english').parent('li').addClass('DN');
});

},

groupSrt: function (data, itemBox, itemBox1) {
var grpHtml = "";
var grpHtmlforLhs = "";
var i = 0;
data.row.forEach(function (gp) {
var htm = ' ' + gp.name.toLowerCase() + ' ';
grpHtml += htm;
if (i < 10) {
var htm2 = ' ' + gp.name.toLowerCase() + ' ';
grpHtmlforLhs += htm2;
i++;
}
});
if (itemBox) {
$(itemBox).empty();
$(itemBox).append(grpHtml);

}
if (itemBox1) {
$(itemBox1).empty();
$(itemBox1).append(grpHtmlforLhs);

}


}
};


function js_seo_url_string(str)
{
str = str.trim();
str = str.toLowerCase();
str = str.replace(" ", "-"); // Replaces all spaces with hyphens.
str = str.replace('/[!@#$%"\'&*:;?_+=\~\`\\,\.\(\)]/', '');
str = str.replace("---", "-");
str = str.replace("--", "-");

return str;
}

function getOS(){
var OSName="dux";
if (navigator.appVersion.indexOf("Win")!=-1) OSName="dw";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="dm";
if (/\bCrOS\b/.test(navigator.userAgent)) OSName="da";
// if (navigator.appVersion.indexOf("X11")!=-1) OSName="dux";
// if (navigator.appVersion.indexOf("Linux")!=-1) OSName="dux";
return OSName;
}

(function(){
var items = document.getElementsByClassName('rmX');
//console.log(items);
for(var i=0;i -1)) {
imgTag[idx].src = (imgTag[idx].src).replace("http", "https");;
}
}*/

// replace all http images to https : end


// google tag manager :start
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-559FW5');
// google tag manager : end

// Facebook Pixel Code : start
// !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
// n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
// n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
// t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
// document,'script','https://connect.facebook.net/en_US/fbevents.js');

// fbq('init', '1538542256397680');
// fbq('track', "PageView");
// Facebook Pixel Code : end

// Google Code for Remarketing Tag : start
/* */
// Google Code for Remarketing Tag : end

$(document).ready(function(){
var usrAgnt = navigator.userAgent;
var winStrPopUp = getCookie("winStrPop");
var winStrPopUpFlg = true;
if (winStrPopUp =='off') {
winStrPopUpFlg = false;
}

$(window).scroll(function(){
if (winStrPopUpFlg && $(this).scrollTop() > 150 && usrAgnt.indexOf("Edge") > -1) {
$(".win_details_pop").css({'display':'block'});
$("html").css({"height":"100%","overflow":"hidden"});
winStrPopUpFlg = false;
}
});
$(".btn_store_win, .btn_win_pop_close").click(function(){
$(".win_details_pop").css({'display':'none'});
$("html").css({"height":"auto","overflow":"auto"});
createCookie("winStrPop", 'off', 3600000 );
winStrPopUpFlg = false;
});
});

function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for(var i=0; i >4&15)+m.charAt(15&_);return f}function X(d){for(var _=Array(d.length>>2),m=0;m5]|=(255&d.charCodeAt(m/8))>>m%32&255);return _}function Y(d,_){d[_>>5]|=128>9>16)+(m>>16) -1;
var isWindows = ua.indexOf("windows") > -1;
var isIphone = ua.indexOf("iphone") > -1;
var cnam = getCookie("banner");

if(cnam != 'off' && (isAndroid || isWindows || isIphone)){
document.getElementsByClassName("bdy") && document.getElementsByClassName("bdy")[0].classList.add("bdybnr");
document.getElementById("smt_bnr") && (document.getElementById("smt_bnr").style.display = 'block');
}
}



function ajaxCall(url, data, divId) {
var xmlhttp;

if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}

xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == XMLHttpRequest.DONE ) {
if(xmlhttp.status == 200) {
// console.log("xmlhttp.responseText"+"ajax response");

document.getElementById(divId).innerHTML = JSON.parse(xmlhttp.responseText);
if(divId == "moreContentData")
twttr.widgets.load();
}
else if(xmlhttp.status == 400) {
//alert('There was an error 400')
}
else {
//alert('something else other than 200 was returned')
}
}
};

xmlhttp.open("POST", url, true);
xmlhttp.setRequestHeader("Content-type", "application/json");
xmlhttp.send(data);
}

function postAjax(url, pObj,cObj, callback) {
pObj.properties = cObj;
// console.log("======================");
pObj = removeEmptyProps(pObj);
// console.log("======================",pObj);
var params = JSON.stringify({records: [{value: btoa(unescape(encodeURIComponent(JSON.stringify(pObj))))}]});
var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
xhr.open('POST', url);
xhr.onreadystatechange = function() {
if (xhr.readyState>3 && xhr.status==200) { callback(xhr.responseText); }
};
// xhr.setRequestHeader('Content-Encoding', 'application/gzip');
//xhr.setRequestHeader('Content-Type', 'application/vnd.kafka.binary.v1+json');
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(params);
return xhr;
}
//console.log("ddddddddd",getCookie(clientId));

function ref(url) {
if(url==null || url=='' || typeof url == "undefined" ){
return;
}

var checkSwipe = "click";
//var checkSwipe = checkIfSwipe(url);
//console.log('{{action}}',checkSwipe && checkSwipe);

if (url.indexOf('-newsid-') >= 0 && url.indexOf('-epaper-') >= 0) {
var splitURl = url.split('-newsid-'),
idStr = splitURl[1],
otParams = splitURl[0],
params = {};

params.referrer = 'story_detail';
params.referrer_action = checkSwipe;
params.referrer_raw = "";
(idStr.indexOf('?') < 0) ? (params.id = idStr) : (params.referrer_id = idStr.split('?')[0]);
params.referrer_NpKey = otParams.split('-epaper-')[1].split('/')[0];

return params;
}

if (url.indexOf('-epaper-') >= 0 && url.indexOf('-newsid-') == -1) {
//console.log('Its NP landing Page')
var params = {};
params.referrer = 'category';
params.referrer_action = checkSwipe;
params.referrer_id = url.split('-epaper-')[1].split('/')[0];
params.referrer_raw = "";

if(url.indexOf('-updates-')){
subCat = url.split('-updates-')[0].split('/');
params.subCatName = subCat && subCat[subCat.length-1]
}

return params;
}

if (url.indexOf('-topics-') >= 0) {
//console.log('Its TP landing Page')
var params = {};
params.referrer = 'sub_topic';
params.referrer_action = checkSwipe;
params.referrer_id = url.split('-topics-')[1].split('/')[0];
referrerId = (window.location.href).split('-subtopics-')[1];
params.referrer_raw = "";

return params;
}

if (url.indexOf('navigation-menu') >= 0) {
var params = {};
params.referrer = 'menu';
params.referrer_action = checkSwipe && checkSwipe;
params.referrer_raw = "";
//console.log('Its navigation-menu Page')
return params;
}

if (url.indexOf('all-languages') >= 0) {
var params = {};
params.referrer = url;
params.referrer_action = checkSwipe;
params.referrer_raw = "";
//console.log('Its all-languages Page')
return params;
}

if(url.indexOf('.dailyhunt.in') >= 0 && url.indexOf('news') >= 0){
var params = {};
params.referrer = 'headlines';
params.referrer_action = checkSwipe;
params.referrer_raw = "";
params.referrer_id = 1;
return params;
}

if(url.indexOf('.dailyhunt.in') == 0 && url.indexOf('news') == 0){
var params = {};
params.referrer = url;
params.referrer_raw = "";
return params;
}
}








function getAllParams(url){

if ((url.indexOf('utm_source') >= 0) || (url.indexOf('utm_medium') >= 0) || (url.indexOf('partnerRef') >= 0) || (url.indexOf('puid') >= 0) || (url.indexOf('utm_campaign') >= 0)){
var params={};

params.app_id="DH_SYNDICATION";
var newUrl = new URL(url);


var utm_source = newUrl.searchParams.get("utm_source");
var utm_medium = newUrl.searchParams.get("utm_medium");
var utm_campaign=newUrl.searchParams.get("utm_campaign")
params.utm_source=utm_source;
params.utm_medium=utm_medium;
params.utm_campaign=utm_campaign;
params.utm_raw="&utm_source="+utm_source+"&utm_medium="+utm_medium+"&utm_campaign="+utm_campaign;
// params.partner_integration_type=utm_source+'_'+utm_medium;
params.partner_ref= getPartnerRef(url);
// params.puid= getPuid(url);
//params.user_type= checkOrganic(url);
var partner_type=getName(url);
params.partner_id=partner_type.partner_id;
params.partner_integration_type=partner_type.partner_integration_type;
params.event_attribution='syndication';
params.event_attribution_id=getEventId(url);
var sessionData=sessionSrc(url);

params.session_source=sessionData.sessionSource;
params.session_source_id=sessionData.sessionSourceId;


return params;
}
else if((url.indexOf('s') >= 0) && (url.indexOf('ss') >= 0)){
var params={};
params.app_id= appId(url);

var sessionData=sessionSrc(url);
params.session_source=sessionData.sessionSource;
params.session_source_id=sessionData.sessionSourceId;


return params;
} else {
var params={};
params.app_id= appId(url);
params.partner_integration_type='Dailyhunt';
params.partner_id='0';
params.session_source='organic';


return params;

}

}


function appId(url){
var appId="";
if(window.location.host!='m.dailyhunt.in'){
appId="DH_SYNDICATION";
}else{
appId="DH_WAP";
}
return appId;
}



// function getPuid (url){
// var id="";

// if((url.indexOf('puid') >= 0)){
// id=puid;
// }
// elseif{
// var my_array=document.cookie.split(",");
// for (i=0;i=my_array.length;i++) {
// var name=my_array[i].substr(0,my_array[i].indexOf(":"),my_array[i]);
// var value=my_array[i].substr(my_array[i].indexOf(":")+1);
// if(name==puid){

// }



// return id;

// }


function getPartnerRef(url){

var newUrl = new URL(url);
var newPartnerRef="";
newPartnerRef = newUrl.searchParams.get("partnerRef");

return newPartnerRef;
}

var apiData =[{"pk":3,"name":"default","imageFormat":"jpg","code":"def","wordCount":0,"domain":"m","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"","utmMedium":"","utmCampaign":"","shareType":"","shareSource":"","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"false","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22def%22%7D","defaultPartner":true,"key":"partner/code/def/name/default/media/null"},
{"pk":8,"name":"indus","imageFormat":"jpg","code":"ind","wordCount":100,"domain":"m","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"indus","utmMedium":"minusone","utmCampaign":"phase1","shareType":"indus","shareSource":"minusone","deeplinkMode":"wap","includeTrackAttributesInRequestParams":"Y","customChannel":"false","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22ind%22%7D","defaultPartner":false,"key":"partner/code/ind/name/indus/media/null"},
{"pk":9,"name":"sampl3","imageFormat":"jpg","code":"sam","wordCount":200,"domain":"m","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"sample","utmMedium":"search","utmCampaign":"phase-1","shareType":"sample","shareSource":"search","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":true,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22sam%22%7D","defaultPartner":false,"key":"partner/code/sam/name/sampl3/media/null"},
{"pk":10,"name":"gr33dygam3","imageFormat":"jpg","code":"gr33dg","wordCount":0,"trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"gr33dygam3","utmMedium":"search","utmCampaign":"phase1","shareType":"gr33dygam3","shareSource":"search","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"false","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22gr33dg%22%7D","defaultPartner":false,"key":"partner/code/gr33dg/name/gr33dygam3/media/null"},
{"pk":11,"name":"samsung","imageFormat":"jpg","code":"samsung","wordCount":0,"isWapOnly":"Y","domain":"samsung","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Samsung","utmMedium":"Browser-UHP","utmCampaign":"Samsung-Browser-UHP","shareType":"Samsung","shareSource":"Browser-UHP","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":true,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22samsung%22%7D","defaultPartner":false,"key":"partner/code/samsung/name/samsung/media/null"},
{"pk":12,"name":"mcent","imageFormat":"jpg","code":"mcent","wordCount":0,"trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"mCent","utmMedium":"Browser Feed","utmCampaign":"Phase 1","shareType":"mCent","shareSource":"Browser Feed","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"false","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22mcent%22%7D","defaultPartner":false,"key":"partner/code/mcent/name/mcent/media/null"},
{"pk":13,"name":"itel","imageFormat":"jpg","code":"itel","wordCount":0,"trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"itel","utmMedium":"search","utmCampaign":"phase1","shareType":"itel","shareSource":"search","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22itel%22%7D","defaultPartner":false,"key":"partner/code/itel/name/itel/media/null"},
{"pk":16,"name":"samsung1","imageFormat":"jpg","code":"samsung1","wordCount":0,"domain":"samsung","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Samsung","utmMedium":"QuickAccess","utmCampaign":"QA","shareType":"Samsung","shareSource":"QuickAccess","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"false","isPersonalizedFeedEnabled":true,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22samsung1%22%7D","defaultPartner":false,"key":"partner/code/samsung1/name/samsung1/media/null"},
{"pk":17,"name":"samsung2","imageFormat":"jpg","code":"samsung2","wordCount":0,"domain":"samsung","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Samsung","utmMedium":"Browser-DPA","utmCampaign":"Samsung-Browser-DPA","shareType":"Samsung","shareSource":"Browser-DPA","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"false","isPersonalizedFeedEnabled":true,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22samsung2%22%7D","defaultPartner":false,"key":"partner/code/samsung2/name/samsung2/media/null"},
{"pk":18,"name":"samsung0","imageFormat":"jpg","code":"samsung3","wordCount":0,"domain":"samsung","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Samsung","utmMedium":"QuickAccess","utmCampaign":"QA","shareType":"Samsung","shareSource":"QuickAccess","deeplinkMode":"wap","includeTrackAttributesInRequestParams":"Y","customChannel":"false","isPersonalizedFeedEnabled":true,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22samsung3%22%7D","defaultPartner":false,"key":"partner/code/samsung3/name/samsung0/media/null"},
{"pk":19,"name":"samsung4","imageFormat":"jpg","code":"samsung4","wordCount":0,"domain":"samsung","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Samsung","utmMedium":"Android Go","utmCampaign":"Phase 1","shareType":"Samsung","shareSource":"Android Go","deeplinkMode":"wap","includeTrackAttributesInRequestParams":"Y","customChannel":"false","isPersonalizedFeedEnabled":true,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22samsung4%22%7D","defaultPartner":false,"key":"partner/code/samsung4/name/samsung4/media/null"},
{"pk":20,"name":"oppo1","imageFormat":"jpg","code":"oppo1","wordCount":0,"isWapOnly":"Y","domain":"nearme","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Oppo","utmMedium":"Browser-Feed","utmCampaign":"Oppo-Browser-Feed","shareType":"Oppo","shareSource":"Browser-Feed","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22oppo1%22%7D&da=true","defaultPartner":false,"key":"partner/code/oppo1/name/oppo1/media/null"},
{"pk":21,"name":"xiaomi","imageFormat":"jpg","code":"xiaomi","wordCount":0,"isWapOnly":"Y","domain":"xiaomi","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Xiaomi","utmMedium":"Browser-API","utmCampaign":"API","shareType":"Xiaomi","shareSource":"Browser-API","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"false","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22xiaomi%22%7D","defaultPartner":false,"key":"partner/code/xiaomi/name/xiaomi/media/null"},
{"pk":22,"name":"tecno1","imageFormat":"jpg","code":"tecno1","wordCount":0,"isWapOnly":"Y","domain":"tecno","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Tecno","utmMedium":"MinusOne","utmCampaign":"Tecno-MinusOne","shareType":"Tecno","shareSource":"MinusOne","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22tecno1%22%7D","defaultPartner":false,"key":"partner/code/tecno1/name/tecno1/media/null"},
{"pk":23,"name":"infinix1","imageFormat":"jpg","code":"infinix1","wordCount":0,"isWapOnly":"Y","domain":"infinix","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Infinix","utmMedium":"News-Broadcast","utmCampaign":"Infinix-News-Broadcast","shareType":"Infinix","shareSource":"News-Broadcast","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22infinix1%22%7D","defaultPartner":false,"key":"partner/code/infinix1/name/infinix1/media/null"},
{"pk":24,"name":"infinix2","imageFormat":"jpg","code":"infinix2","wordCount":0,"isWapOnly":"Y","domain":"infinix","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Infinix","utmMedium":"Caller","utmCampaign":"Infinix-Caller","shareType":"Infinix","shareSource":"Caller","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22infinix2%22%7D","defaultPartner":false,"key":"partner/code/infinix2/name/infinix2/media/null"},
{"pk":25,"name":"samsung5","imageFormat":"jpg","code":"samsung5","wordCount":0,"isWapOnly":"Y","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Samsung","utmMedium":"Bixby-Home","utmCampaign":"Bixby-Server-Card","shareType":"Samsung","shareSource":"Bixby-Home","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"accessCode":"A4356","deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22samsung5%22%7D","defaultPartner":false,"key":"partner/code/samsung5/name/samsung5/media/null"},
{"pk":26,"name":"itel1","imageFormat":"jpg","code":"itel1","wordCount":0,"isWapOnly":"Y","domain":"itel","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"iTel","utmMedium":"MinusOne","utmCampaign":"Phase1","shareType":"iTel","shareSource":"MinusOne","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22itel1%22%7D","defaultPartner":false,"key":"partner/code/itel1/name/itel1/media/null"},
{"pk":27,"name":"infinix3","imageFormat":"jpg","code":"infinix3","wordCount":0,"isWapOnly":"Y","domain":"infinix","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Infinix","utmMedium":"MinusOne","utmCampaign":"Infinix-MinusOne","shareType":"Infinix","shareSource":"MinusOne","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22infinix3%22%7D","defaultPartner":false,"key":"partner/code/infinix3/name/infinix3/media/null"},
{"pk":28,"name":"tecno2","imageFormat":"jpg","code":"tecno2","wordCount":0,"isWapOnly":"Y","domain":"tecno","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Tecno","utmMedium":"News-Broadcast","utmCampaign":"Tecno-News-Broadcast","shareType":"Tecno","shareSource":"News-Broadcast","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22tecno2%22%7D","defaultPartner":false,"key":"partner/code/tecno2/name/tecno2/media/null"},
{"pk":29,"name":"tecno3","imageFormat":"jpg","code":"tecno3","wordCount":0,"isWapOnly":"Y","domain":"tecno","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Tecno","utmMedium":"Caller","utmCampaign":"Tecno-Caller","shareType":"Tecno","shareSource":"Caller","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22tecno3%22%7D","defaultPartner":false,"key":"partner/code/tecno3/name/tecno3/media/null"},
{"pk":30,"name":"itel2","imageFormat":"jpg","code":"itel2","wordCount":0,"trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"itel","utmMedium":"Browser-Feed","utmCampaign":"iTel-Browser-Feed","shareType":"iTel","shareSource":"Browser-Feed","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22itel2%22%7D","defaultPartner":false,"key":"partner/code/itel2/name/itel2/media/null"},
{"pk":31,"name":"samsungtestit","imageFormat":"jpg","code":"sams","wordCount":0,"isWapOnly":"Y","domain":"samsung","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Samsung","utmMedium":"Browser-UHP","utmCampaign":"Samsung-Browser-UHP","shareType":"Samsung","shareSource":"Browser-UHP","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":true,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22sams%22%7D","defaultPartner":false,"key":"partner/code/sams/name/samsungtestit/media/null"},
{"pk":32,"name":"airpush1","imageFormat":"jpg","code":"airpush1","wordCount":0,"isWapOnly":"Y","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Airpush","utmMedium":"Browser-Feed-OEM1","utmCampaign":"Browser-Feed-OEM1","shareType":"Airpush","shareSource":"Browser-Feed-OEM1","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22airpush1%22%7D","defaultPartner":false,"key":"partner/code/airpush1/name/airpush1/media/null"},
{"pk":33,"name":"shareit","imageFormat":"jpg","code":"shareit","wordCount":200,"domain":"m","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"shareit","utmMedium":"search","utmCampaign":"phase-1","shareType":"shareit","shareSource":"search","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22shareit%22%7D","defaultPartner":false,"key":"partner/code/shareit/name/shareit/media/null"},
{"pk":34,"name":"realme1","imageFormat":"jpg","code":"realme1","wordCount":0,"isWapOnly":"Y","domain":"nearme","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"RealMe","utmMedium":"Browser-Feed","utmCampaign":"RealMe-Browser-Feed","shareType":"RealMe","shareSource":"Browser-Feed","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22realme1%22%7D&da=true","defaultPartner":false,"key":"partner/code/realme1/name/realme1/media/null"},
{"pk":35,"name":"oneplus1","imageFormat":"jpg","code":"oneplus1","wordCount":0,"isWapOnly":"Y","domain":"nearme","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"OnePlus","utmMedium":"Browser-Feed","utmCampaign":"RealMe-Browser-Feed","shareType":"OnePlus","shareSource":"Browser-Feed","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22oneplus1%22%7D&da=true","defaultPartner":false,"key":"partner/code/oneplus1/name/oneplus1/media/null"},
{"pk":36,"name":"panasonic1","imageFormat":"jpg","code":"panasonic1","wordCount":0,"isWapOnly":"Y","domain":"arbohub","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Panasonic","utmMedium":"ArboHub","utmCampaign":"Panasonic-ArboHub","shareType":"Panasonic","shareSource":"ArboHub","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22panasonic1%22%7D","defaultPartner":false,"key":"partner/code/panasonic1/name/panasonic1/media/null"},
{"pk":37,"name":"vivo","imageFormat":"jpg","code":"vivo","wordCount":0,"isWapOnly":"Y","domain":"vivo","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Vivo","utmMedium":"Browser-Feed","utmCampaign":"Vivo-Browser-Feed","shareType":"Vivo","shareSource":"Browser-Feed","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22vivo%22%7D","defaultPartner":false,"key":"partner/code/vivo/name/vivo/media/null"},
{"pk":38,"name":"samsung6","imageFormat":"jpg","code":"samsung6","wordCount":0,"domain":"samsung","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Samsung","utmMedium":"Samsung-Daily","utmCampaign":"Samsung-Daily","shareType":"Samsung","shareSource":"Samsung-Daily","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22samsung6%22%7D&dpg=true","defaultPartner":false,"key":"partner/code/samsung6/name/samsung6/media/null"},
{"pk":40,"name":"motorola1","imageFormat":"jpg","code":"motorola1","wordCount":0,"domain":"m","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Motorola","utmMedium":"Hub","utmCampaign":"Motorola-Hub","shareType":"Motorola","shareSource":"Hub","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"N","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22motorola1%22%7D","defaultPartner":false,"key":"partner/code/motorola1/name/motorola1/media/null"},
{"pk":42,"name":"google1","imageFormat":"jpg","code":"google1","wordCount":0,"domain":"m","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Google","utmMedium":"Ads","utmCampaign":"Ads","shareType":"Google","shareSource":"Ads","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"N","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22google1%22%7D","defaultPartner":false,"key":"partner/code/google1/name/google1/media/null"},
{"pk":44,"name":"mozilla1","imageFormat":"jpg","code":"mozilla1","wordCount":0,"domain":"mozilla","trackingLevel":"card","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Mozilla","utmMedium":"Browser-Feed","utmCampaign":"Mozilla-Browser-Feed","shareType":"Mozilla","shareSource":"Browser-Feed","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"Y","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22mozilla1%22%7D","defaultPartner":false,"key":"partner/code/mozilla1/name/mozilla1/media/null"},
{"pk":46,"name":"vivo2","imageFormat":"jpg","code":"vivo2","wordCount":0,"domain":"vivo","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Vivo","utmMedium":"MinusOne","utmCampaign":"Vivo-MinusOne","shareType":"Vivo","shareSource":"MinusOne","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"N","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22vivo2%22%7D","defaultPartner":false,"key":"partner/code/vivo2/name/vivo2/media/null"},
{"pk":48,"name":"samsung7","imageFormat":"jpg","code":"samsung7","wordCount":0,"domain":"samsung","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Samsung","utmMedium":"Browser-Notifications","utmCampaign":"Samsung-Browser-Notifications","shareType":"Samsung","shareSource":"Browser-Notifications","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"N","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22samsung7%22%7D&da=true","defaultPartner":false,"key":"partner/code/samsung7/name/samsung7/media/null"},
{"pk":50,"name":"DH-Admin","imageFormat":"jpg","code":"dh-admin","wordCount":0,"trimHtml":"N","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"dh-admin","utmMedium":"dh-admin","utmCampaign":"UTC","shareType":"ST","shareSource":"SS","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"N","customChannel":"false","isPersonalizedFeedEnabled":false,"defaultPartner":false,"key":"partner/code/dh-admin/name/DH-Admin/media/null"},
{"pk":52,"name":"snapdeal1","imageFormat":"jpg","code":"snapdeal1","wordCount":0,"domain":"snapdeal","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Snapdeal","utmMedium":"Content-Feed","utmCampaign":"Snapdeal-Content-Feed","shareType":"Snapdeal","shareSource":"Content-Feed","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"N","customChannel":"true","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22snapdeal1%22%7D","defaultPartner":false,"key":"partner/code/snapdeal1/name/snapdeal1/media/null"},
{"pk":54,"name":"huawei1","imageFormat":"jpg","code":"huawei1","wordCount":0,"domain":"m","trimHtml":"Y","trackEachCard":"N","gaCode":"","includeOnlyFirstChunk":"N","utmSource":"Huawei","utmMedium":"QuickApp","utmCampaign":"Huawei-QuickApp","shareType":"Huawei","shareSource":"QuickApp","deeplinkMode":"pwa","includeTrackAttributesInRequestParams":"N","customChannel":"false","isPersonalizedFeedEnabled":false,"deepLinkQueryParameters":"partnerRef=%7B%22pid%22%3A%22huawei1%22%7D","defaultPartner":false,"key":"partner/code/huawei1/name/huawei1/media/null"}];



function getName(url){

var newUrl = new URL(url);


var utm_source = newUrl.searchParams.get("utm_source");
var utm_medium = newUrl.searchParams.get("utm_medium");
var partner_id="";
var partner_integration_type="";
//console.log("apiDta",apiData);


for (var i = 0; i< apiData.length; i++) {

if (apiData[i].utmSource.toLowerCase() == (utm_source && utm_source.toLowerCase() ) && apiData[i].utmMedium.toLowerCase() == (utm_medium && utm_medium.toLowerCase())) {

partner_id = apiData[i].name;
partner_integration_type=apiData[i].utmSource+'_'+apiData[i].utmMedium;
// if(partner_id=='Dailyhunt'){
// parntner_id='0';
// }
break;
}



}
return {partner_id,partner_integration_type};
}


function getPk(url){
var newUrl = new URL(url);


var utm_source = newUrl.searchParams.get("utm_source");
var utm_medium = newUrl.searchParams.get("utm_medium");
var partner_id="";
//console.log("apiDta",apiData);


for (var i = 0; i< apiData.length; i++) {

if (apiData[i].utmSource.toLowerCase() == (utm_source && utm_source.toLowerCase() ) && apiData[i].utmMedium.toLowerCase() == (utm_medium && utm_medium.toLowerCase())) {

partner_id = apiData[i].pk;

break;
}



}
return (partner_id);

}

function getEventId(url){
var url=window.location.href;
var Event_id="";
//console.log("apiDta",apiData);
for (var i = 0; i< apiData.length; i++) {
if ((url.indexOf('utm_source') >= 0) || (url.indexOf('utm_medium') >= 0) || (url.indexOf('partnerRef') >= 0) || (url.indexOf('puid') >= 0) || (url.indexOf('utm_campaign') >= 0)){

Event_id = apiData[i].name;
break;
}
}
return Event_id;


}


function checkOrganic(url){
url=window.location.href;
var newUrl = new URL(url);
var utm_source = newUrl.searchParams.get("utm_source");
var utm_medium = newUrl.searchParams.get("utm_medium");
//console.log("utm_source",utm_source,utm_medium);
var userType = "returning";
if(isBrowser &&(getSessionCount() == 1)){


userType='new';
}


return userType;
}
var isBrowser = typeof window !== 'undefined'

function sessionSrc(url){
var newUrl = new URL(url);
var s = newUrl.searchParams.get("s");
var ss = newUrl.searchParams.get("ss");
var utm_source = newUrl.searchParams.get("utm_source");
var utm_medium = newUrl.searchParams.get("utm_medium");
var sessionSource="";
var sessionSourceId="";
if(isBrowser &&(getSessionCount() == 1)){

if((window.location.host=='m.dailyhunt.in' || window.location.host=='localhost') && utm_medium =='non-paid'){
sessionSource ='organic';
sessionSourceId=" ";
}
else if((window.location.host=='m.dailyhunt.in' || window.location.host=='localhost') && utm_medium =='paid'){
sessionSource ='inorgaic';
sessionSourceId=" ";
}
else if ((url.indexOf('utm_source') >= 0) || (url.indexOf('partnerRef') >= 0) || (url.indexOf('puid') >= 0) || (url.indexOf('utm_campaign') >= 0)){
sessionSource='syndication';
sessionSourceId=getPk(url);
}
else if((url.indexOf('s') >= 0) && (url.indexOf('ss') >= 0)){
sessionSource='deeplink';
sessionSourceId=url && url.split('-newsid-') && url.split('-newsid-')[1];
//console.log("sessionSourceId",url);
sessionSourceId= sessionSourceId.split('?')&& sessionSourceId.split('?')[0];

}
// }else{
// sessionSource=" ";
// }
}

if(!(sessionSource)){
sessionSource='orgainc';

}

return {sessionSource,sessionSourceId};

}

function getCookie(name) {
var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
return v ? v[2] : null;
}

function setCookie(cname, cvalue) {

var d = new Date();
d.setTime(d.getTime() + (30*60*1000));
var expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
// function getCookie(cname) {
// var name = cname + "=";
// var decodedCookie = decodeURIComponent(document.cookie);

// console.log("document.cookie",document.cookie);
// var ca = decodedCookie.split(';');
// console.log("ca",ca);
// for(var i = 0; i = 0)?'swipe':false;
}
}

function elementInViewport(el) {
var top = el.offsetTop;
var left = el.offsetLeft;
var width = el.offsetWidth;
var height = el.offsetHeight;

while(el.offsetParent) {
el = el.offsetParent;
top += el.offsetTop;
left += el.offsetLeft;
}

return (
top >= window.pageYOffset &&
left >= window.pageXOffset &&
(top + height) 5.5) ||
/\bWindows XP\b/.test(os) && version > 8 ||
version == 8 && !/\bTrident\b/.test(ua)
))
) && !reOpera.test((data = parse.call(forOwn, ua.replace(reOpera, '') + ';'))) && data.name) {
// When "identifying", the UA contains both Opera and the other browser's name.
data = 'ing as ' + data.name + ((data = data.version) ? ' ' + data : '');
if (reOpera.test(name)) {
if (/\bIE\b/.test(data) && os == 'Mac OS') {
os = null;
}
data = 'identify' + data;
}
// When "masking", the UA contains only the other browser's name.
else {
data = 'mask' + data;
if (operaClass) {
name = format(operaClass.replace(/([a-z])([A-Z])/g, '$1 $2'));
} else {
name = 'Opera';
}
if (/\bIE\b/.test(data)) {
os = null;
}
if (!useFeatures) {
version = null;
}
}
layout = ['Presto'];
description.push(data);
}
// Detect WebKit Nightly and approximate Chrome/Safari versions.
if ((data = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(ua) || 0)[1])) {
// Correct build number for numeric comparison.
// (e.g. "532.5" becomes "532.05")
data = [parseFloat(data.replace(/\.(\d)$/, '.0$1')), data];
// Nightly builds are postfixed with a "+".
if (name == 'Safari' && data[1].slice(-1) == '+') {
name = 'WebKit Nightly';
prerelease = 'alpha';
version = data[1].slice(0, -1);
}
// Clear incorrect browser versions.
else if (version == data[1] ||
version == (data[2] = (/\bSafari\/([\d.]+\+?)/i.exec(ua) || 0)[1])) {
version = null;
}
// Use the full Chrome version when available.
data[1] = (/\bChrome\/([\d.]+)/i.exec(ua) || 0)[1];
// Detect Blink layout engine.
if (data[0] == 537.36 && data[2] == 537.36 && parseFloat(data[1]) >= 28 && layout == 'WebKit') {
layout = ['Blink'];
}
// Detect JavaScriptCore.
// http://stackoverflow.com/questions/6768474/how-can-i-detect-which-javascript-engine-v8-or-jsc-is-used-at-runtime-in-androi
if (!useFeatures || (!likeChrome && !data[1])) {
layout && (layout[1] = 'like Safari');
data = (data = data[0], data < 400 ? 1 : data < 500 ? 2 : data < 526 ? 3 : data < 533 ? 4 : data < 534 ? '4+' : data < 535 ? 5 : data < 537 ? 6 : data < 538 ? 7 : data < 601 ? 8 : '8');
} else {
layout && (layout[1] = 'like Chrome');
data = data[1] || (data = data[0], data < 530 ? 1 : data < 532 ? 2 : data < 532.05 ? 3 : data < 533 ? 4 : data < 534.03 ? 5 : data < 534.07 ? 6 : data < 534.10 ? 7 : data < 534.13 ? 8 : data < 534.16 ? 9 : data < 534.24 ? 10 : data < 534.30 ? 11 : data < 535.01 ? 12 : data < 535.02 ? '13+' : data < 535.07 ? 15 : data < 535.11 ? 16 : data < 535.19 ? 17 : data < 536.05 ? 18 : data < 536.10 ? 19 : data < 537.01 ? 20 : data < 537.11 ? '21+' : data < 537.13 ? 23 : data < 537.18 ? 24 : data < 537.24 ? 25 : data < 537.36 ? 26 : layout != 'Blink' ? '27' : '28');
}
// Add the postfix of ".x" or "+" for approximate versions.
layout && (layout[1] += ' ' + (data += typeof data == 'number' ? '.x' : /[.+]/.test(data) ? '' : '+'));
// Obscure version for some Safari 1-2 releases.
if (name == 'Safari' && (!version || parseInt(version) > 45)) {
version = data;
}
}
// Detect Opera desktop modes.
if (name == 'Opera' && (data = /\bzbov|zvav$/.exec(os))) {
name += ' ';
description.unshift('desktop mode');
if (data == 'zvav') {
name += 'Mini';
version = null;
} else {
name += 'Mobile';
}
os = os.replace(RegExp(' *' + data + '$'), '');
}
// Detect Chrome desktop mode.
else if (name == 'Safari' && /\bChrome\b/.exec(layout && layout[1])) {
description.unshift('desktop mode');
name = 'Chrome Mobile';
version = null;

if (/\bOS X\b/.test(os)) {
manufacturer = 'Apple';
os = 'iOS 4.3+';
} else {
os = null;
}
}
// Strip incorrect OS versions.
if (version && version.indexOf((data = /[\d.]+$/.exec(os))) == 0 &&
ua.indexOf('/' + data + '-') > -1) {
os = trim(os.replace(data, ''));
}
// Add layout engine.
if (layout && !/\b(?:Avant|Nook)\b/.test(name) && (
/Browser|Lunascape|Maxthon/.test(name) ||
name != 'Safari' && /^iOS/.test(os) && /\bSafari\b/.test(layout[1]) ||
/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(name) && layout[1])) {
// Don't add layout details to description if they are falsey.
(data = layout[layout.length - 1]) && description.push(data);
}
// Combine contextual information.
if (description.length) {
description = ['(' + description.join('; ') + ')'];
}
// Append manufacturer to description.
if (manufacturer && product && product.indexOf(manufacturer) < 0) {
description.push('on ' + manufacturer);
}
// Append product to description.
if (product) {
description.push((/^on /.test(description[description.length - 1]) ? '' : 'on ') + product);
}
// Parse the OS into an object.
if (os) {
data = / ([\d.+]+)$/.exec(os);
isSpecialCasedOS = data && os.charAt(os.length - data[0].length - 1) == '/';
os = {
'architecture': 32,
'family': (data && !isSpecialCasedOS) ? os.replace(data[0], '') : os,
'version': data ? data[1] : null,
'toString': function() {
var version = this.version;
return this.family + ((version && !isSpecialCasedOS) ? ' ' + version : '') + (this.architecture == 64 ? ' 64-bit' : '');
}
};
}
// Add browser/OS architecture.
if ((data = /\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(arch)) && !/\bi686\b/i.test(arch)) {
if (os) {
os.architecture = 64;
os.family = os.family.replace(RegExp(' *' + data), '');
}
if (
name && (/\bWOW64\b/i.test(ua) ||
(useFeatures && /\w(?:86|32)$/.test(nav.cpuClass || nav.platform) && !/\bWin64; x64\b/i.test(ua)))
) {
description.unshift('32-bit');
}
}
// Chrome 39 and above on OS X is always 64-bit.
else if (
os && /^OS X/.test(os.family) &&
name == 'Chrome' && parseFloat(version) >= 39
) {
os.architecture = 64;
}

ua || (ua = null);

/*------------------------------------------------------------------------*/

/**
* The platform object.
*
* @name platform
* @type Object
*/
var platform = {};

/**
* The platform description.
*
* @memberOf platform
* @type string|null
*/
platform.description = ua;

/**
* The name of the browser's layout engine.
*
* The list of common layout engines include:
* "Blink", "EdgeHTML", "Gecko", "Trident" and "WebKit"
*
* @memberOf platform
* @type string|null
*/
platform.layout = layout && layout[0];

/**
* The name of the product's manufacturer.
*
* The list of manufacturers include:
* "Apple", "Archos", "Amazon", "Asus", "Barnes & Noble", "BlackBerry",
* "Google", "HP", "HTC", "LG", "Microsoft", "Motorola", "Nintendo",
* "Nokia", "Samsung" and "Sony"
*
* @memberOf platform
* @type string|null
*/
platform.manufacturer = manufacturer;

/**
* The name of the browser/environment.
*
* The list of common browser names include:
* "Chrome", "Electron", "Firefox", "Firefox for iOS", "IE",
* "Microsoft Edge", "PhantomJS", "Safari", "SeaMonkey", "Silk",
* "Opera Mini" and "Opera"
*
* Mobile versions of some browsers have "Mobile" appended to their name:
* eg. "Chrome Mobile", "Firefox Mobile", "IE Mobile" and "Opera Mobile"
*
* @memberOf platform
* @type string|null
*/
platform.name = name;

/**
* The alpha/beta release indicator.
*
* @memberOf platform
* @type string|null
*/
platform.prerelease = prerelease;

/**
* The name of the product hosting the browser.
*
* The list of common products include:
*
* "BlackBerry", "Galaxy S4", "Lumia", "iPad", "iPod", "iPhone", "Kindle",
* "Kindle Fire", "Nexus", "Nook", "PlayBook", "TouchPad" and "Transformer"
*
* @memberOf platform
* @type string|null
*/
platform.product = product;

/**
* The browser's user agent string.
*
* @memberOf platform
* @type string|null
*/
platform.ua = ua;

/**
* The browser/environment version.
*
* @memberOf platform
* @type string|null
*/
platform.version = name && version;

/**
* The name of the operating system.
*
* @memberOf platform
* @type Object
*/
platform.os = os || {

/**
* The CPU architecture the OS is built for.
*
* @memberOf platform.os
* @type number|null
*/
'architecture': null,

/**
* The family of the OS.
*
* Common values include:
* "Windows", "Windows Server 2008 R2 / 7", "Windows Server 2008 / Vista",
* "Windows XP", "OS X", "Ubuntu", "Debian", "Fedora", "Red Hat", "SuSE",
* "Android", "iOS" and "Windows Phone"
*
* @memberOf platform.os
* @type string|null
*/
'family': null,

/**
* The version of the OS.
*
* @memberOf platform.os
* @type string|null
*/
'version': null,

/**
* Returns the OS string.
*
* @memberOf platform.os
* @returns {string} The OS string.
*/
'toString': function() { return 'null'; }
};

platform.parse = parse;
platform.toString = toStringPlatform;

if (platform.version) {
description.unshift(version);
}
if (platform.name) {
description.unshift(name);
}
if (os && name && !(os == String(os).split(' ')[0] && (os == name.split(' ')[0] || product))) {
description.push(product ? '(' + os + ')' : 'on ' + os);
}
if (description.length) {
platform.description = description.join(' ');
}
return platform;
}

/*--------------------------------------------------------------------------*/

// Export platform.
var platform = parse();

// Some AMD build optimizers, like r.js, check for condition patterns like the following:
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
// Expose platform on the global object to prevent errors when platform is
// loaded by a script tag in the presence of an AMD loader.
// See http://requirejs.org/docs/errors.html#mismatch for more details.
root.platform = platform;

// Define as an anonymous module so platform can be aliased through path mapping.
define(function() {
return platform;
});
}
// Check for `exports` after `define` in case a build optimizer adds an `exports` object.
else if (freeExports && freeModule) {
// Export for CommonJS support.
forOwn(platform, function(value, key) {
freeExports[key] = value;
});
}
else {
// Export to the global object.
root.platform = platform;
}
}.call(this));

// Analytics start

var referrer = "headlines";
var referrerId = 1;

var utm_raw = "";
var utm_source = "";
var utm_medium = "";
var utm_campaign = "";
var utm_term = "";
var utm_content = "";

var session_source = "";
//var session_source_id = "";
var event_attribution = "";
var event_attribution_id = "";

var clientId="";
var instrumentation = "https://analytics-stage.dailyhunt.in/topics/analytics-events-pwa-stage";
var detExt='';
var referrerUrl = document.referrer ? document.referrer : window.location.href;
//clientId && (document.cookie = "clientId="+clientId + ';' + (3600 * 1000 * 24 * 365 * 10) + ";path=/;")

var refParams = ref(referrerUrl);

var userOsPlatform = platform && platform.os && platform.os.family;
var userDeviceScreenRes = Math.round(screen.width*window.devicePixelRatio)+'x'+Math.round(screen.height*window.devicePixelRatio);
var userOsName = platform && platform.os && platform.os.family;


var getparam=getAllParams(window.location.href);
var commonParam = {
user_connection:'',
user_language_primary:"",
user_os_platform:userOsPlatform,
user_os_version:(platform && platform.os && platform.os.version),
user_browser:(navigator && navigator.appName),
user_browser_ver:(navigator && parseFloat(navigator.appVersion)),
user_agent:(navigator && navigator.userAgent),
app_family_id:'DH',
//user_type:"orgainc",
user_handset_maker:(platform && platform.manufacturer),
user_handset_model:(platform && platform.product),
user_device_screen_resolution:userDeviceScreenRes,
user_device_memory : navigator && navigator.deviceMemory ? navigator.deviceMemory : '',
user_os_name:userOsName,
user_type:checkOrganic(window.location.href),
// partner_integration_type:spv_partner_integration_type(window.location.href),
client_id:'' || getCookie('client_id') || "" ,
event_name:'',
pv_event:true
};


utm_raw && (commonParam.utm_raw = utm_raw);
utm_source && (commonParam.utm_source = utm_source);
utm_medium && (commonParam.utm_medium = utm_medium);
utm_campaign && (commonParam.utm_campaign = utm_campaign);
utm_term && (commonParam.utm_term = utm_term);
utm_content && (commonParam.utm_content = utm_content);
session_source && (commonParam.session_source = session_source);
//session_source_id && (commonParam.session_source_id = session_source_id);
event_attribution && (commonParam.event_attribution = event_attribution);
event_attribution_id && (commonParam.event_attribution_id = event_attribution_id);


//console.log("platform && platform.product",platform && platform.product);

var deviceInfo = Object.assign(getparam, commonParam);


var detailParams = {};
detailParams.item_type = "STORY";
detailParams.item_id = "n327500382";
detailParams.ui_type = "NORMAL";
detailParams.group_id = "news";
detailParams.group_type = "NEWS";
detailParams.landing_type = "NORMAL";
detailParams.content_type = "STORY";
detailParams.wordCount = "331";
detailParams.imageCount = "1";
detailParams.pv_event = true;
detailParams.event_section = "wap_news";

detExt = extend(deviceInfo, detailParams);



function callCardClickInstu(reffererId, articleId) {
return true;
}

function analyticsCall() {
detExt = extend(detExt,refParams);


var pObj = {
client_id:deviceInfo.client_id || "",
event_section:"wap_app_server",
event_name:"user_registration",
epoch_time:Math.round((new Date()).getTime() / 1000),
properties:extend(deviceInfo, detExt),

}
postAjax("https://data.dailyhunt.in/topics/analytics-events-pwa",pObj,detExt,function(res){
//console.log(res)
})
createCookie('fireRegInstu', '1');

// instumenatation for language change
function callLangInstu() {
createCookie('fireLangInstu', '0');
}
deviceInfo.pv_event = "false";
var pObj = {
client_id : deviceInfo.client_id,

event_section : "wap_app",
device_id : "",
event_name:"languages_selected",
pv_event : "false",
epoch_time:Math.round((new Date()).getTime() / 1000),
properties:extend(deviceInfo, detExt)
}
createCookie('fireLangInstu', '1');
postAjax("https://data.dailyhunt.in/topics/analytics-events-pwa",pObj,deviceInfo,function(res){
//console.log(res)
})
http://localhost/news/india/english?mode=pwa&s=Oppo&ss=Browser-Feed&utm_source=Oppo&utm_medium=Browser-Feed&utm_campaign=Oppo-Browser-Feed&lite=true&prevRef=oppo1&partnerRef=%7B%22pid%22%3A%22oppo1%22%7D&da=true

deviceInfo.pv_event = "true";
var pObj = {
client_id:deviceInfo.client_id,
event_section:"wap_news",
event_name : ((window.location.href).indexOf('-newsid-') >= 0 && (window.location.href).indexOf('-epaper-') >= 0 ? "story_page_view" : "story_list_view"),
epoch_time:Math.round((new Date()).getTime() / 1000),
properties:extend(deviceInfo, refParams)
}
detExt && postAjax("https://data.dailyhunt.in/topics/analytics-events-pwa",pObj,detExt,function(res){
//console.log(res)
})
}

function fireInstuForCard(cardIndex, cardEvent) {
var crdObj = instuCardArr[cardIndex];
var specificProp = {
//item_id : crdObj.id,
item_type : crdObj.type,
ui_type :(crdObj.uiType === 'NORMAL' ? 'NORMAL' : 'TILE_3'),
card_type :(crdObj.uiType === 'NORMAL' ? 'NORMAL' : 'GALLERY_VIEW'),
group_type : "NEWS",
group_id : "news",
landing_type : crdObj.landingType,
card_position : cardIndex,
content_type : crdObj.contentType
};
//console.log(crdObj);
var cardDet = {
client_id : deviceInfo.client_id,
event_name : cardEvent,
epoch_time:Math.round((new Date()).getTime() / 1000),
event_section : "wap_news",
properties : extend(deviceInfo, refParams),
specific_properties:[specificProp]
}
deviceInfo.pv_event = "false";
postAjax("https://data.dailyhunt.in/topics/analytics-events-pwa",cardDet,extend(deviceInfo, refParams),function(res){
//console.log(res)
})
//return false;
}

// instrumentation call for card view : start
function getCardInfo() {

var cardClass = document.getElementsByClassName("card");
for(var i = 0; i < cardClass.length; i++)
{
if(elementInViewport(cardClass.item(i))) {
fireInstuForCard(cardClass.item(i).getAttribute("cardIndex"), "story_card_view");
}
}
}

var waiting = false;

window.onscroll = function(){
if (waiting) {
return;
}
waiting = true;

if(typeof deviceInfo !== 'undefined')
getCardInfo();

setTimeout(function () {
waiting = false;
}, 1000);
};

// Analytics end

// openx ads start
var bannerFlag = {};
var body = document.getElementsByTagName('body')[0];

function isVisible(ele,beaconUrl){
var ee = ele.getAttribute("mReq");
if(!ee){
//console.log("visible");
ele.setAttribute("mReq", "false");
var imageNode = document.createElement("img");
imageNode.setAttribute("src", beaconUrl);
imageNode.style.display = "none";
ele.appendChild(imageNode);
}
}

function addEvent(evnt, elem, func) {
if (elem.addEventListener) // W3C DOM
elem.addEventListener(evnt,func,false);
else if (elem.attachEvent) { // IE DOM
elem.attachEvent("on"+evnt, func);
}
else { // No much to do
elem[evnt] = func;
}
}
// openx ends

//social shareing
function shareOnFb(){
shareEvent("Facebook");
var s = getMobileOperatingSystem();
//var sUrl = encodeURIComponent(""+'&s='+s);
var sUrl = encodeURIComponent("https://m.dailyhunt.in/news/india/hindi/dainik+jagran-epaper-jagran/otiti+pletaphorm+par+rilij+hone+vali+thi+salaman+aayush+ki+philm+antim+jane+kyo+badala+gaya+phaisala-newsid-n327500382"+'?ss=fb&s='+s)
var title = encodeURIComponent("ओटीटी प्लेटफॉर्म पर रिलीज़ होने वाली थी सलमान-आयुष की फिल्म \'अंतिम\', जानें क्यों बदला गया फैसला - Dainik Jagran | DailyHunt", "UTF-8");
var photo = "https://assets-news-bcdn.dailyhunt.in/cmd/resize/400x400_80/fetchdata16/images/15/db/6e/15db6e0f0fc5d9639765a3f2cb0974ff7018b54d035755f3517776db44fdb865.jpg";
var textDes = "\u0928\u0908 \u0926\u093f\u0932\u094d\u0932\u0940, \u091c\u0947\u090f\u0928\u090f\u0928\u0964 \u0938\u093f\u0928\u0947\u092e\u093e\u0918\u0930 \u0914\u0930 \u0921\u093f\u091c\u093f\u091f\u0932 \u092a\u094d\u0932\u0947\u091f\u092b\u0949\u0930\u094d\u092e \u0915\u0947 \u092c\u0940\u091a \u0915\u0949\u092e\u094d\u092a\u091f\u0940\u0936\u0928 \u0915\u094b \u0932\u0947\u0915\u0930 \u0905\u092d\u093f\u0928\u0947\u0924\u093e \u0938\u0932\u092e\u093e\u0928 \u0916\u093e\u0928 \u0915\u093e \u0915\u0939\u0928\u093e \u0939\u0948 \u0915\u093f '\u092c\u0921\u093c\u0947 \u092a\u0930\u094d\u0926\u0947 \u092a\u0930 \u092b\u093f\u0932\u094d\u092e \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u0906\u0928\u0902\u0926 \u0915\u094b \u0915\u094b\u0908 \u092c\u0926\u0932 \u0928\u0939\u0940\u0902 \u0938\u0915\u0924\u093e \u0939\u0948\u0964 function getAndroidVersion(ua) {ua = (ua || navigator.userAgent).toLowerCase(); var match = ua.match(\/android\\\\s([0-9\\\\.]*)\/);return match ? match[1] : false;}; var versions='4.2.2'; var versionArray=versions.split(',');var currentAndroidVersion=getAndroidVersion();if(versionArray.indexOf(currentAndroidVersion)!=-1){var blocks = document.getElementsByTagName('blockquote'); for(var i = 0; i < blocks.length; i++){blocks[i].innerHTML = '';}}";
var des = encodeURIComponent(textDes, "UTF-8");
var url = "http://www.facebook.com/sharer/sharer.php?s=100&t="+title+"&u="+sUrl+"&m2w";
//var url = "http://www.facebook.com/sharer/sharer.php?s=100&p[title]="+title+"&p[url]="+sUrl+"&p[summary]="+des+"&p[image][0]="+photo+"&m2w";
fb = window.open( url, "facebook", "status=1, height=600, width=800, toolbar=0,resizable=0");
fb.window.focus();
}


function shareOnTwitter(){
shareEvent("Twitter");
var s = getMobileOperatingSystem();
var sUrl = encodeURIComponent("http://dhunt.in/nEyap?ss=twt"+'&s='+s);
var title = encodeURIComponent("ओटीटी प्लेटफॉर्म पर रिलीज़ होने वाली थी सलमान-आयुष की फिल्म \'अंतिम\', जानें क्यों बदला गया फैसला - Dainik Jagran | DailyHunt", "UTF-8");
var photo="https://assets-news-bcdn.dailyhunt.in/cmd/resize/400x400_80/fetchdata16/images/15/db/6e/15db6e0f0fc5d9639765a3f2cb0974ff7018b54d035755f3517776db44fdb865.jpg";
var url = "https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Flocalhost%3A8084%2Fexample%2Fnewhtml.html&text="+title+"&tw_p=tweetbutton&url="+sUrl;
tw = window.open( url, "twitter", "status=1, height=600, width=800, toolbar=0,resizable=0");
tw.window.focus();
}

function getMobileOperatingSystem() {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;

// Windows Phone must come first because its UA also contains "Android"
if (/windows phone/i.test(userAgent)) {
return "wws";
}

if (/android/i.test(userAgent)) {
return "wa";
}

if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
return "wi";
}

return "unknown";
}


function defImg() {
var imgDefer = document.getElementsByTagName('img');

for (var i = 0; i < imgDefer.length; i++) {
if (imgDefer[i].getAttribute('data-src')) {
imgDefer[i].setAttribute('src',imgDefer[i].getAttribute('data-src')); }
}
}

function close_sticky(){
var closeStik = document.getElementById("sticky");
closeStik.style.display = 'none';
createCookie('setLang', 'off');
}

window.onload = function() {
defImg();

var relatedUrl = "https://m.dailyhunt.in/news/ajax/ajax_related_story.php?mode=wap";
var relatedData = JSON.stringify({relatedUrl: "aHR0cDovL2FwaS1uZXdzLmRhaWx5aHVudC5pbi9hcGkvdjIvcmVsYXRlZC9uZXdzL24zMjc1MDAzODI=",country:"",language:"",mode:"",partInfo:""});
var secondChnkUrl = "https://m.dailyhunt.in/news/ajax/ajax_details_second_chunk.php?mode=wap";
var secondChnkData = JSON.stringify({url: "aHR0cDovL2FwaS1uZXdzLmRhaWx5aHVudC5pbi9hcGkvdjIvbmV3cy9wcy9hcnRpY2xlL2NvbnRlbnQ/cGFnZU51bWJlcj0yJmFydGljbGVJZD1uMzI3NTAwMzgyJm5ld3NQYXBlcktleT1qYWdyYW4="});
var prevNextUrl = "https://m.dailyhunt.in/news/ajax/nxtPrv.php?mode=wap";
var prevNxtData = JSON.stringify(navData);

// // // /* redirect to app hide second chunk ajax call*/
// console.log("AJAX call to be done","========AJAX");
//ajaxCall(secondChnkUrl, secondChnkData, "moreContentData"); // for details page
// // navData && ajaxCall(prevNextUrl, prevNxtData, "detailNav"); // for details page
// ajaxCall(relatedUrl, relatedData, "rlted_sty");//callRelatedStory(); // for details page
// addComscore(); // for details page
//

navData && ajaxCall(prevNextUrl, prevNxtData, "detailNav"); // for details page
//console.log("about to call related");
//ajaxCall(relatedUrl, relatedData, "rlted_sty");//callRelatedStory(); // for details page
addComscore(); // for details page



analyticsCall();

};

A post shared by Salman Khan (@beingsalmankhan)
© 2021 DailyHunt

अन्य समाचार