Timesdelhi.com

July 23, 2018

Mumbai farmers protest: As protesters press on with their demands, citizens reach out to offer food, other assistance

Mumbai farmers protest: As protesters press on with their demands, citizens reach out to offer food, other assistance

‘;
gallery += ‘

‘+data[i].photosData[j].title.substring(0,100)+’

‘;
}

gallery += “

“;

gallery += “”;

for (var k = 0; k ‘;

var html = “

“+author_html+”

“+gallery+”

“;

if ( $(“#”+data[i].post[‘ID’]).length == 0 ) {
share_html = ”;
$(“#photoGallery”).append(html);
$(“.galleryItem img”).on(‘inview’, inView);
}

slot_id = ”;
slot_id = “infinite_content_2nd_slot_no”+data[i].post[‘ID’];
slot_html = ”;
$(“.dynamicAd”).last().html(slot_html);
createAd1(slot_id);

slot_id = ”;
slot_id = “infinite_content_mobile_ad_slot_no”+data[i].post[‘ID’];
slot_html = ”;
$(“.dynamicAdMoB”).last().html(slot_html);
createAd4(slot_id);

slot_id = ”;
slot_id = “infinite_content_slot_no_1″+data[i].post[‘ID’];
slot_html = ”;
$(“.sidebar”).find(‘.300x250_1’).html(slot_html);
createAd3(slot_id);

/* slot_id = ”;
slot_id = “infinite_content_slot_no”+data[i].post[‘ID’];
slot_html = ”;
$(“.sidebar”).find(‘.300x250_2’).html(slot_html);
createAd2(slot_id);*/

gallery = “”;
html = “”;
}
};

var gURL = ”;
function changeUrl(t,u,pid,desc){
gURL = ”;
if(pid == 1){

u = $(“#pageURL”).val();
t = $(“#pageTitle”).val();
desc = $(“#pageDesc”).val();

}
gURL = u.replace(“http://www.firstpost.com”,””);
ga(‘set’, ‘page’, u);
ga(‘send’, ‘pageview’);
ga(‘send’, ‘event’, ‘Pageview’, ‘photoScroll’, gURL);
callComScore();

// u = u.replace(“http://www.firstpost.com”,”http://fpssl.prod”);
$(“#cUrl”).val(u);
History.pushState(null,t+’ Firstpost Photos ‘+pid,u);
$(‘meta[name=description]’).attr(‘content’, desc+”,Firstpost Photo “+pid);

};

function inView(e,isInView,pos){
if(isInView){

if (pos == “top”){

changeUrl($(this).attr(‘alt’),$(this).data(‘url’),$(this).data(‘photo-id’),$(this).data(‘desc’));
}else{
//$(this).removeClass(“active”);
}
}
}

var counter = 0;

//get article details
//getArticle(counter);

$(‘#galleryEnd’).on(‘inview’, function(event, isInView) {
if (isInView) {

getArticle(counter);
counter++;
} else {
// element has gone out of viewport
}
});

$(“.galleryItem img”).on(‘inview’, inView);

var affixTarget = $(“#sidebarSticky”);
var targetTop = affixTarget.offset().top – 100;
var sidebarLeft = $(“.sidebar”).offset().left;

$(window).scroll(function(){
if (targetTop


Leave a Reply

Latest from Delhi

Go to Top