diff --git a/dist/js/ui.js b/dist/js/ui.js index cc00051..41ddebd 100644 --- a/dist/js/ui.js +++ b/dist/js/ui.js @@ -11,8 +11,8 @@ class UI { const div = document.createElement('div'); div.innerHTML = `
| Your Launch Time | ${item.date_precision !== 'hour' ? 'NET ' + moment(item.date_local).format('MMM YYYY') : moment(item.date_local).format('ddd Do MMM, h:mm a')} |
| Site Launch Time | ${item.date_precision !== 'hour' ? 'NET ' + moment(item.date_local).format('MMM YYYY') : moment.parseZone(item.date_local).format('ddd Do MMM, h:mm a')} |
| Your Launch Time | ${(item.date_precision !== 'hour' ? 'NET ' : '') + this.formatDate(item.date_local, item.date_precision, false)} |
| Site Launch Time | ${(item.date_precision !== 'hour' ? 'NET ' : '') + this.formatDate(item.date_local, item.date_precision, true)} |
| Mission Name | ${item.name} | ${launch.payloads[0].orbit} ${launch.payloads[1] ? ' ' + launch.payloads[1].orbit : ''} |
${launch.payloads[0].customers[0]} ${launch.payloads[1] ? ' ' + launch.payloads[1].customers[0] : ''} |
${launch.launchpad.name} (${launch.launchpad.region}) | -${launch.date_precision === 'month' || launch.date_precision === 'quarter' ? moment(launch.date_local).format('MMM YYYY') : moment(launch.date_local).format('MMM YYYY')} | +${this.formatDate(launch.date_local, launch.date_precision, false)} | `; list.append(row);