Compare commits

..

No commits in common. "6a4e578366642ffcb73c8007ae87bf1b7b0d175a" and "433f1972b20165005437cdcc1197b992c125205d" have entirely different histories.

1 changed files with 1 additions and 3 deletions

View File

@ -115,8 +115,6 @@ function showresult()
recent = 7; recent = 7;
} }
var recentonly = params.get("recentonly");
var html = "<h1>Evénements à venir</h1>"; var html = "<h1>Evénements à venir</h1>";
html += `<h3>${formatdate(new Date)}</h3>`; html += `<h3>${formatdate(new Date)}</h3>`;
html += `<div>En gras: modifié les ${recent} derniers jours</div>`; html += `<div>En gras: modifié les ${recent} derniers jours</div>`;
@ -134,7 +132,7 @@ function showresult()
var group = {}; var group = {};
o.VEVENTS o.VEVENTS
.filter(e => e.DTSTART >= (new Date) && (!recentonly || e.DTSTAMP >= lastmodified)) .filter(e => e.DTSTART >= (new Date))
.sort( (a,b) => a.DTSTART - b.DTSTART) .sort( (a,b) => a.DTSTART - b.DTSTART)
.forEach(e => { .forEach(e => {
var formatteddate = formatdate(e.DTSTART); var formatteddate = formatdate(e.DTSTART);