The Wayback Machine - https://web.archive.org/web/20191219214035/https://www.eetimes.com/fujitsu-to-spin-off-chip-unit/
`); } jQuery('.upcomingWebinar .headline').each(function(i) { var item = items[i]; console.log(item) var link = item['source_url'] var title = item['title'] var updated = item['updateddate'] datetime = updated.split(' '); dt = datetime[0].split('-'); tm = datetime[1].split(':'); dt[1] = parseInt(dt[1], 10); dt[2] = parseInt(dt[2], 10); tm[0] = parseInt(tm[0], 10); ampm = tm[0] > 11 ? 'p.m.' : 'a.m.'; tm[0] = tm[0] > 12 ? tm[0] - 12 : tm[0]; month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][dt[1] - 1]; if (dt[2] >= 10 && dt[2] < 20) { suffix = 'th'; } else { suffix = ['th', 'st', 'nd', 'rd', 'th', 'th', 'th', 'th', 'th', 'th'][dt[2] % 10]; } jQuery(this).find('.headline-month').text(month); jQuery(this).find('.headline-days').text(dt[2] + suffix); jQuery(this).find('.lineClamp a').attr('href', link); jQuery(this).find('.lineClamp a').text(title); jQuery(this).find('.headline-time').text(tm[0] + ':' + tm[1] + ampm + ' (EDT)'); }) }});