diff --git a/assets/events.csv b/assets/events.csv new file mode 100644 index 0000000..b2d35a7 --- /dev/null +++ b/assets/events.csv @@ -0,0 +1,11 @@ +eventid,eventname,start_date,end_date +1,Event Alpha,2024-08-01,2024-08-05 +2,Event Beta,2024-08-10,2024-08-12 +3,Event Gamma,2024-08-15,2024-08-20 +4,Event Delta,2024-08-22,2024-08-25 +5,Event Epsilon,2024-08-28,2024-09-01 +6,Event Zeta,2024-09-05,2024-09-07 +7,Event Eta,2024-09-10,2024-09-15 +8,Event Theta,2024-09-18,2024-09-20 +9,Event Iota,2024-09-25,2024-09-27 +10,Event Kappa,2024-10-01,2024-10-05 diff --git a/assets/tasks.csv b/assets/tasks.csv new file mode 100644 index 0000000..b3d349e --- /dev/null +++ b/assets/tasks.csv @@ -0,0 +1,27 @@ +eventid,task_name +1,Prepare Presentation +1,Review Budget +1,Coordinate Meeting +2,Design Brochure +2,Update Website +3,Plan Event +3,Arrange Catering +3,Send Invitations +4,Develop Marketing Strategy +4,Conduct Survey +5,Write Report +5,Analyze Data +5,Prepare Slides +6,Research Market Trends +6,Create Social Media Content +7,Organize Workshop +7,Manage Registrations +8,Compile Feedback +8,Draft Proposal +8,Review Contracts +9,Schedule Interviews +9,Train New Employees +9,Set Up Equipment +10,Develop Training Materials +10,Test Software +10,Monitor Performance \ No newline at end of file diff --git a/scripts/script.js b/scripts/script.js index c13cf2c..b85a5b4 100644 --- a/scripts/script.js +++ b/scripts/script.js @@ -14,6 +14,7 @@ class Task { this.taskName = taskName; } } +dateError=0; function submitCsv() { let csvType = document.getElementById("csv-type-select").value; @@ -57,7 +58,7 @@ function parseToEvent(contents) { if (validateHeader(header, "events")) { return false; } - let dateError=0; + rows.forEach((row) => { if (row.trim() !== "") { const columns = row.split(",");