/*************************************/ $(window).scroll(function(){	var last = $('div.listing').filter('div:last');	var lastHeight = last.offset().top ;	if(lastHeight + last.height() < $(document).scrollTop() + $(window).height() && nextload==true){ //console.log("**get data"); var circle = "http://zeenews.india.com/"; var myTimer = "http://zeenews.india.com/"; var interval = 30; var angle = 0; var Inverval = "http://zeenews.india.com/"; var angle_increment = 6;	$.ajax({ url: "/hindi/news/article-list.php" + cat + nextpath, async: true, dataType: "json", beforeSend: function() { $('div.listing').append(load); nextload=false; //console.log("/micros/article-list.php" + cat + nextpath); ice = 1; circle = $('.center-section').find('#green-halo'); myTimer = $('.center-section').find('#myTimer'); angle = 0;	Inverval = setInterval(function (){	$(circle).attr("stroke-dasharray", angle + ", 20000"); //myTimer.innerHTML = parseInt(angle/360*100) + '%'; if (angle >= 360) { angle = 1; } angle += angle_increment; }.bind(this),interval); }, success: function(data){ nextload=false;	//console.log("success"); //console.log(data); $.each(data['rows'], function(key,val){	//console.log("data found"); ice = 2; if(val['id']!='468191'){ string = '