Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Sanchez committed Oct 16, 2024
1 parent 3c04044 commit 0a39086
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,18 @@ <h1 class="text-center">لیست وبینارها</h1>
.then(data => {
if (data.status === "success") {
const webinar = data.data.webinar;
webinarDetails.push({
slug: slug,
title: webinar.title,
description: webinar.description,
startAt: new Date(webinar.start_at),
cover: webinar.cover
});
const startAt = new Date(webinar.start_at);

// فقط وبینارهایی که تاریخ آن‌ها آینده است را اضافه کنیم
if (startAt > new Date()) {
webinarDetails.push({
slug: slug,
title: webinar.title,
description: webinar.description,
startAt: startAt,
cover: webinar.cover
});
}
}
});
});
Expand Down

0 comments on commit 0a39086

Please sign in to comment.