Monday, June 17, 2019

Regional - Tribunnews.com

");
});
})
gapi.client.load('oauth2', 'v2', function()
gapi.client.oauth2.userinfo.get().execute(function(resp)
$('#email').val(resp.email);
)
);
}
} else if (authResult['error'])
// There was an error.
// Possible error codes:
// "access_denied" - User denied access to your app
// "immediate_failed" - Could not automatially log in the user
console.log('There was an error: ' + authResult['error']);

}

jQuery(function($)
$( "#gConnect1,#gConnect2,#gConnect3,#gConnect4").click(function()
$.cookie("fconnect", "true",
expires: 2,
path: '/',
domain: '.tribunnews.com',
);
);

);

function logincek(id,types)

$.getJSON("http://www.tribunnews.com/auth/user_cek?callback=?",
,
function(data)
if(data.status == 1)
$.fancybox.close(true);
$("#userid").html('

' + data.fullname + '

');
$.getJSON("http://www.tribunnews.com/auth/user_img?callback=?", id : data.user_id,size : '22' , function(data)
$("#img_uhead").html(data.img);
$("#img_uhead img").css("border":"1px solid #555","margin-top":"-2px");
$("#img_uhead").show();
);

else
// if(types == "fb")
// register('fb','Register with Facebook');
// else
if(types == "gplus")
register('gplus','Register with Google+');

);


Mengirim...

Tribun Akun
tersangka-penganiayaan-karyawati.jpg


";
var milatest = "mr140";
}
else
var img = "";
var milatest = "";

if(val.subtitle) subtitle = "

"+val.subtitle+"


";
else subtitle = '';
if(val.c_title) cat = "

"+val.c_title+"

";
else cat = '';
$("#latestul").append("
  • "+img+"


");
});
$(".loading").remove();
//$("span.timeago").timeago();
});
}
else if (getLast > 150)
if ($("#ltldmr").length == 0)
$("#latestul").append('

');


}
});
});

function loadmore()
if ($("#ltldmr").length > 0) $("#ltldmr").remove();
var getLast = parseInt($("#latestul li:last-child").attr("data-sort"));
$("#latestul").append("


  • ");
    $(".loading").show();
    var newlast = getLast;
    $.getJSON("http://api.tribunnews.com/ajax/latest_section?callback=?", , 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 = "

    "+val.title+"

    "+vthumb+"

    ";
    var milatest = "mr140";

    else
    var img = "";
    var milatest = "";

    if(val.subtitle) subtitle = "

    "+val.subtitle+"


    ";
    else subtitle = '';
    if(val.c_title) cat = "

    "+val.c_title+"

    ";
    else cat = '';
    $("#latestul").append("
    • "+img+"


    ");
    );
    $(".loading").remove();
    //$("span.timeago").timeago();
    );


    Tribun JualBeli
    © 2019 TRIBUNnews.com,a subsidiary of KG Media.

    All Right Reserved

    Source

No comments:

Post a Comment