Stuff
public text v1 · immutablevar refresh_details=function()
{
if ($(".plus_details").get(0))
{
var top_id=$(".plus_details").get(0).id.split('-')[1];
}
else
{
var top_id=0;
}
//console.log("essai");
$.get("includes/inc.home.php",{top_id:top_id},function(txt){$(".ligne-pair:first").after(txt);$(".refresh:first").slideDown("slow");});
}
$(function() {setInterval(refresh_details, 1000*2); });