Broadcasting Stock Market, Finance and Economic News. Connecting Investors, Companies and Markets.
/g,'').replace(/<\/p>/g,' '); swiper.appendSlide(rep_str); } var c_date = new Date(); var c_time = ("0" + c_date.getHours()).slice(-2) + ("0" + c_date.getMinutes()).slice(-2); var time_flg = 0; for (const i in timelist) { var check_time = timelist[i].replace(/\"/g, ''); //" if (check_time > c_time) { swiper.slideTo(i-1,500,false); swiper_pos = i - 1; break; } } }).fail(function(XMLHttpRequest, textStatus, errorThrown) { console.log(textStatus); }); } jQuery(document).ready(function() { get_schedule(0); }); $(document).on('click', '#current-program', function(){ get_schedule(9999); }); function formatDate(dt) { var y = dt.getFullYear(); var m = ('00' + (dt.getMonth()+1)).slice(-2); var d = ('00' + dt.getDate()).slice(-2); return (y + '/' + m + '/' + d); }