Skip to content

Commit

Permalink
test csv added
Browse files Browse the repository at this point in the history
  • Loading branch information
xreedev committed Jul 26, 2024
1 parent 25485ee commit 2aa7956
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
11 changes: 11 additions & 0 deletions assets/events.csv
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions assets/tasks.csv
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Task {
this.taskName = taskName;
}
}
dateError=0;

function submitCsv() {
let csvType = document.getElementById("csv-type-select").value;
Expand Down Expand Up @@ -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(",");
Expand Down

0 comments on commit 2aa7956

Please sign in to comment.