"; var milatest = "mr140"; } else { var img = ""; var milatest =
""; } if(val.subtitle) subtitle = "
"; else subtitle = ''; if(newlast == '41') tam = "
- "+$(".ts-1").html()+"
"; // else if(newlast == '51') tam = "
- "+$(".video-1").html()+"
"; else if(newlast == '61') tam = "";//"
- "+$(".tjb-1").html()+"
"; else if(newlast == '71') tam = ""; //"
- "+$(".images-2").html()+"
"; else if(newlast == '81') tam = ""; //"
- "+$(".ts-2").html()+"
"; else if(newlast == '101') tam = ""; //"
- "+$(".video-2").html()+"
"; else if(newlast == '111') tam = "";//
- "+$(".tjb-2").html()+"
"; else if(newlast == '121') tam = "
- "+$(".images-2").html()+"
"; else if(newlast == '131') tam = "
- "+$(".ts-1").html()+"
"; // else if(newlast == '141') tam = "
- "+$(".video-1").html()+"
"; //else if(newlast == '151') tam = "
- "+$(".tjb-1").html()+"
"; else if(newlast == '161') tam = "
- "+$(".images-1").html()+"
"; else tam = ""; $("#latestul").append("
- "+img+"
"+tam); }); $(".loading").remove() }); } else if (getLast
> 150) { if ($("#ltldmr").length == 0){
$("#latestul").append('
-
'); } } } }); }); function loadmore(){ if
($("#ltldmr").length > 0) $("#ltldmr").remove(); var getLast
= parseInt($("#latestul li").last().attr("data-sort"));
$("#latestul").append(""); $(".loading").show(); var newlast =
getLast;
$.getJSON("https://api.tribunnews.com/ajax/latest/?callback=?",
{start: newlast,img: 'thumb2',icon: '1'}, function(data) {
$.each(data.posts, function(key, val) { newlast = newlast+1;
if(val.video) { var vthumb = ""; var vtitle = " "; } else { var
vthumb = ""; var vtitle = ""; } if(val.thumb) { var img = "
"+vthumb+"
"; var milatest = "mr140"; } else { var img = ""; var
milatest = ""; } if(val.subtitle) subtitle = "
"; else subtitle = ''; $("#latestul").append("
- "+img+"
"); }); $(".loading").remove(); }); }
-
-
-
-
-
-
-
-
-
-
-
-
Top Stories
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Top Stories
-
-
-
-
-
-
-
Foto Pilihan
-
-
-
-
-
-
-
-