Skip to content

Commit

Permalink
Date before URL
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Feb 26, 2024
1 parent 5098c09 commit fd248be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ function getLink(url) {
function getDescription(event) {
var htmlStr = '<strong>Event:</strong> ' + event.event_name;

if (isWorkingUrl(event.url)) {
htmlStr += '<br><strong>URL:</strong> ' + getLink(event.url);
}

var date = event.event_date ? new Date(event.event_date).toDateString() : '';
if (date) {
htmlStr += '<br><strong>Date:</strong> ' + date;
}

if (isWorkingUrl(event.url)) {
htmlStr += '<br><strong>URL:</strong> ' + getLink(event.url);
}

if (event.event_time) {
htmlStr += '<br><strong>Time:</strong> ' + event.event_time;
if (event.timezone) {
Expand Down

0 comments on commit fd248be

Please sign in to comment.