Bahrain came back from behind to draw with Maldives to secure a place in the semi final of the ongoing Bangabandhu Gold Cup in Bangladesh on Saturday.
‘).slideDown(500);
$.ajax({
type: “GET”,
url: “../inc/comm_reply.php?nid=”+mix_id[1]+”cid=”+mix_id[2],
cache: false,
success: function(data) {
$(‘#commextra_’+mix_id[2]).html(data).slideDown(500);
}
});
} else {
$(‘#commextra_’+mix_id[2]).slideUp(500);
$(“#commextra_”+mix_id[2]).html(”);
}
});
$(‘.inapp1’).live(‘click’,function(){
id=$(this).parent().parent().attr(‘id’).split(“_”);
// $(‘#comm_extra_’+cid[1]).slideUp();
if($(“#commextra_”+id[1]).text()==”){
$(‘#commextra_’+id[1]).html(‘ Loading…’).slideDown(500);
$.ajax({
type: “GET”,
url: “/inc/comm_inapp.php?cid=”+id[1],
cache: false,
success: function(data) {
$(‘#commextra_’+id[1]).html(data).slideDown(500);
return;
}
});
} else {
$(‘#commextra_’+id[1]).slideUp(500);
$(‘#commextra_’+id[1]).html(”);
// $(“#”+t).find(‘div’).html(”);
}
});
$(‘.like1’).live(“click”,function() {
id=$(this).parent().parent().attr(‘id’).split(“_”);
t=$(this).parent();
//$(“#”+t).find(‘span.like-count’).slice(0,1).fadeOut();
t.find(‘span.like-count’).slice(0,1).html(“”);
$.ajax({
type: “POST”,
url: “/inc/comm_thumb.php?act=like”,
data: {cid: id[1], PHPSESSID : ‘bbbf41c7945f8d65293e8539396548b6’},
cache: false,
success: function(data) {
t.find(‘span.like-count’).slice(0,1).html(data);
t.find(‘a’).slice(0,1).addClass(‘like0’).removeClass(‘like1’);
}
});
});
$(‘.dlike1’).live(“click”,function() {
id=$(this).parent().parent().attr(‘id’).split(“_”);
t=$(this).parent();
//$(“#”+t).find(‘span.like-count’).slice(1,2).fadeOut();
t.find(‘span.like-count’).slice(0,1).html(“”);
$.ajax({
type: “POST”,
url: “/inc/comm_thumb.php?act=dlike”,
data: {cid: id[1], PHPSESSID : ‘bbbf41c7945f8d65293e8539396548b6’},
cache: false,
success: function(data) {
t.find(‘span.like-count’).slice(0,1).html(data);
t.find(‘a’).slice(0,1).addClass(‘dlike0’).removeClass(‘dlike1’);
}
});
});
$(‘.become_fan1’).live(“click”,function() {
mix_id=$(this).parent().parent().parent().attr(‘id’).split(“_”);
k=$(this).parent().parent();
j=$(this);
j.fadeOut();
$.ajax({
type: “GET”,
url: “/inc/comm_fan.php?act=fanmid=”+mix_id[1],
cache: false,
success: function(data) {
data=data.split(“,”);
j.fadeIn();
if(data[0]==”E”){
alert(data[1]);
} else
if(data[0]==”S”){
k.find(‘span’).slice(1,2).html(‘Un-Fan‘);
k.find(‘span’).slice(0,1).html(data[1]);
}
// $(j).find(‘span’).slice(0,1).html(data).fadeOut();
// $(“#”+t).find(‘a’).slice(1,2).addClass(‘ dlike0 ‘).removeClass(‘ dlike1 ‘);
}
});
});
$(‘.un_fan1’).live(“click”,function() {
mix_id=$(this).parent().parent().parent().attr(‘id’).split(“_”);
k=$(this).parent().parent();
j=$(this);
j.fadeOut();
$.ajax({
type: “GET”,
url: “../inc/comm_fan.php?act=unfanmid=”+mix_id[1],
cache: false,
success: function(data) {
data=data.split(“,”);
j.fadeIn();
if(data[0]==”E”){
alert(data[1]);
} else
if(data[0]==”S”){
k.find(‘span’).slice(1,2).html(‘Become a Fan‘);
k.find(‘span’).slice(0,1).html(data[1]);
}
// $(j).find(‘span’).slice(0,1).html(data).fadeOut();
// $(“#”+t).find(‘a’).slice(1,2).addClass(‘ dlike0 ‘).removeClass(‘ dlike1 ‘);
}
});
});
$(‘.badg1′).live(“click”,function() {
p=$(this).position();
showBadgeBox(p,’Loading…’);
id=$(this).parent().parent().attr(‘id’).split(“_”);
t=$(this).parent();
datastr=”cid=”+id[1];
$.ajax({
type: “POST”,
url: “/inc/comments/badge_box.php”,
cache: false,
data:datastr,
success: function(data) {
showBadgeBox(p,data);
//t.find(‘span.like-count’).slice(0,1).html(data);
//t.find(‘a’).slice(0,1).addClass(‘dlike0’).removeClass(‘dlike1’);
}
});
});
$(‘.become_fan0’).live(‘click’,function(e) {
showHint($(this).position(),’Please sign in to become a Fan’);
});
$(‘.become_fan2’).live(‘click’,function(e) {
showHint($(this).position(),’You cannot become a fan of yourself’);
});
$(‘.un_fan0’).live(‘click’,function() {
alert(“Please sign in to Un-Fan”);
});
$(‘.inapp0’).live(‘click’,function() {
showHint($(this).position(),’Please sign in to report this comment as Inappropriate’);
});
$(‘.reply0’).live(‘click’,function() {
showHint($(this).position(),’Please sign in to reply for this comment’);
});
$(‘.reply2’).live(‘click’,function() {
showHint($(this).position(),’You cannot reply for your own comments’);
});
$(‘.like2,.dlike2’).live(‘click’,function() {
showHint($(this).position(),’You cannot vote for your own comments’);
});
$(‘.badg0’).live(‘click’,function() {
showHint($(this).position(),’Please sign in to give badges for this comment’);
});
$(‘.badg2’).live(‘click’,function() {
showHint($(this).position(),’You cannot give badges to your own comments’);
});
$(‘#badge_box .close’).live(‘click’,function(){
$(‘#badge_box’).hide();
});
function showHint(p,s){
$(‘#hint_box’).html(s);
$(‘#hint_box’).css(“top”,p.top+25+’px’)
$(‘#hint_box’).css(“left”,p.left+’px’);
$(‘#hint_box’).fadeIn();
// timeoutID = window.setTimeout(fader, 4000);
$(‘#hint_box’).fadeIn().delay(3000).fadeOut();
}
function showBadgeBox(p,s){
$(‘#badge_box .content’).html(s);
$(‘#badge_box’).css(“top”,p.top+32+’px’)
$(‘#badge_box’).css(“left”,p.left+’px’);
$(‘#badge_box’).fadeIn();
// timeoutID = window.setTimeout(fader, 4000);
// $(‘#hint_box’).fadeIn().delay(3000).fadeOut();
}
function fader(){ // not used
$(‘#hint_box’).fadeOut();
}
$(‘#hint_box .close’).click(function() { // not used
$(‘#hint_box’).fadeOut();
// window.clearTimeout(timeoutID);
});
// anonymous
$(‘#sname’).live(“blur”,function() {
home=$.cookie(“home”);
sval=$(this).val();
sid=$(this).attr(‘id’);
$(“#comm_msg1″).html(”);
$.ajax({
type: “GET”,
url: “/inc/fb_ajax.php?action=check_snamesname=”+sval+”home=”+home,
cache: false,
success: function(data) {
$(‘#comm_msg’).show();
if(data==”Duplicate”){
$(‘#’+sid).addClass(“red_input”);
$(‘#’+sid).removeClass(“gray_input”);
$(“#sname_log”).html(“Selected name is already in use. You cannot post comments under this name”);
$(“#sname_log”).css(“color”,”red”);
$(“#comm_msg1”).html(“”);
} else
if(data==”OK”){
$(‘#’+sid).addClass(“gray_input”);
$(‘#’+sid).removeClass(“red_input”);
$(“#sname_log”).html(“Selected name is available…“);
$(“#sname_log”).css(“color”,”green”);
$(“#comm_msg1”).html(“Get registered with few easy steps, before someone else take this name. Register Now“);
} else {
$(‘#sname’).removeClass(“gray_input”);
$(‘#sname’).addClass(“red_input”);
$(“#sname_log”).html(“Use 3-25 alphanumeric characters”);
$(“#sname_log”).css(“color”,”red”);
}
}
});
});
$(‘#anony_post’).live(“click”,function() {
datastr=$(“#comm_form”).serialize();
$(“#comm_status_0”).html(“”).show();
if($(‘#sname’).hasClass(‘red_input’)){
alert(“User name: “+$(‘#sname_log’).text());
return;
}
if($(‘#comment’).val().length Sending your comment…”);
$.ajax({
type: “POST”,
url: “/inc/actions.php”,
dataType: “html”,
cache: false,
data: datastr,
success: function(data) {
data=data.split(‘:’);
$(‘#comm_msg’).show();
if(data[2]==”Duplicate”){
$(‘#’+data[0]).addClass(“red_input”);
$(‘#’+data[0]).removeClass(“gray_input”);
$(‘#’+data[1]).html(“Selected name is already in use. You cannot post comments under this name”);
$(‘#’+data[1]).css(“color”,”red”);
$(“#comm_msg1”).html(“”);
$(“#comm_status_0”).html(“”);
} else
if(data[2]==”invalid”){
$(‘#’+data[0]).removeClass(“gray_input”);
$(‘#’+data[0]).addClass(“red_input”);
$(‘#’+data[1]).html(“Use 3-25 alphanumeric characters”);
$(‘#’+data[1]).css(“color”,”red”);
$(“#comm_status_0”).html(“”);
} else {
$(‘#comm_entry_box #comment’).val(”);
$(“#comm_status_0”).html(“Your comment received. Thank you for your comment…”);
$(‘#comm_entry_box’).delay(2000).slideUp(500);
}
}
});
});
$(‘.identity_back’).live(‘click’,function(){
var dd = $(this).attr(‘id’);
$.get(‘/inc/comm_new.php’,{dd: dd},function(resp){
$(‘#comm_tip’).html(resp);
});
});
});
0 Comments
Loading comments… Please wait