Images of 李東炅
.st0{fill:#1A1A1A;} HAPPINESS RADIO STATION 東李苑 おしゃべりシフォンケーキ (#おしゃシフォ) 金 24:00-24:30 108 お気に入り function toggleFavorite(program_base_sid,timetable_day){ if(timetable_day=='program'){ var btn_selecter = 'favorite_btn' + program_base_sid + '_program'; var fav_cnt_cls = 'favoriteCnt' + program_base_sid; var fav_cnt = $("."+fav_cnt_cls).html(); fav_cnt=$.trim(fav_cnt); fav_cnt=parseInt(fav_cnt); }else{ var btn_selecter = 'favorite_btn' + program_base_sid + '_' + timetable_day; var btn_selecter_each = 'favorite_btn' + program_base_sid +'_'; var fav_cnt=0; //console.log(fav_cnt); } console.log(fav_cnt); $.ajax({ type: "POST", url: "/shared/parts/ajax_favorite.php", data: {program_base_sid:program_base_sid}, dataType: "json", cache: false, }).done(function(data){ if(data['type']==1){ if(timetable_day=='program'){ $('.'+btn_selecter).addClass('zumi'); $('.'+btn_selecter).addClass('zumi'); $('.'+btn_selecter).children('i').each(function(i){ var check = $(this).hasClass('fa-heart-o'); if(check){ $(this).removeClass('fa-heart-o'); $(this).addClass('fa-heart'); } }); fav_cnt=fav_cnt+1; $('.'+fav_cnt_cls).html(fav_cnt); }else{ $("[id^='"+btn_selecter_each+"']").each(function(i){ $(this).addClass('zumi'); $(this).addClass('zumi'); $(this).children('i').each(function(){ var check = $(this).hasClass('fa-heart-o'); if(check){ $(this).removeClass('fa-heart-o'); $(this).addClass('fa-heart'); } }); fav_cnt=$(this).children('div').html(); fav_cnt=$.trim(fav_cnt); fav_cnt=parseInt(fav_cnt); if(i==0){ fav_cnt=fav_cnt+1; } var fav_cnt_cls=$(this).children('div').attr('class').split(" ")[1]; $('.'+fav_cnt_cls).html(fav_cnt); }); } }else{ if(timetable_day=='program'){ $('.'+btn_selecter).removeClass('zumi'); $('.'+btn_selecter).removeClass('zumi'); $('.'+btn_selecter).children('i').each(function(i){ var check = $(this).hasClass('fa-heart'); if(check){ $(this).removeClass('fa-heart'); $(this).addClass('fa-heart-o'); } }); fav_cnt=fav_cnt-1; $('.'+fav_cnt_cls).html(fav_cnt); }else{ $("[id^='"+btn_selecter_each+"']").each(function(i){ $(this).removeClass('zumi'); $(this).removeClass('zumi'); $(this).children('i').each(function(){ var check = $(this).hasClass('fa-heart'); if(check){ $(this).removeClass('fa-heart'); $(this).addClass('fa-heart-o'); } }); fav_cnt=$(this).children('div').html(); fav_cnt=$.trim(fav_cnt); fav_cnt=parseInt(fav_cnt); if(i==0){ fav_cnt=fav_cnt-1; } var fav_cnt_cls=$(this).children('div').attr('class').split(" ")[1]; $('.'+fav_cnt_cls).html(fav_cnt); }); } } }).fail(function(data){ });}