otsecb) { ssec.css({ position: “fixed”, bottom: “0px”, zIndex: “2”, }); $(“#fixposc”).height(ssec.height()); $(“#fixpos_sec”).html(” “); ssec.attr(“class”,”w160″); } else { ssec.css({ position: “relative”, bottom: “” }); $(“#fixposc”).height(0); $(“#fixpos_sec”).html(” “); ssec.attr(“class”,”w160″); } }; $(window).scroll(movesec); movesec(); } $(document).ready(function(){ moveScroller_sec(); }); ]]> ‘, prevText: ‘‘ }); }); var ia = 1; var ibc = 1; ]]> = document.body.offsetHeight ) { var getLast = parseInt($(“#latestul li”).last().attr(“data-sort”)); var cekLast = parseInt($(“#latestul”).attr(“last”)); if(!cekLast) cekLast = 0; if(getLast cekLast ) { $(“#latestul”).attr(“last”,getLast); $(“#latestul”).append(“
“; var milatest = “mr140”; } else { var img = “”; var milatest = “”; } if(val.subtitle) subtitle = “
“+val.subtitle+”
“; else subtitle = ”; $(“#latestul”).append(“
“); }); $(“.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://depok.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 = “
“+val.subtitle+”
“; else subtitle = ”; $(“#latestul”).append(“
“); }); $(“.loading”).remove(); }); }