-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstationCardPage.js
More file actions
93 lines (89 loc) · 3.19 KB
/
stationCardPage.js
File metadata and controls
93 lines (89 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*var schedule = {
row1:[1,1,"Kavya","Donovan", "Jey", "Juggle"],
row2:[1,2,"Riya", "Harmony", "Malathy", "Juggle"],
row3:[1,3,"Ami", "Jash", "Doug", "Juggle"],
row4:[1,4,"Leah", "Ian", "Inder", "Juggle"],
row5:[1,5,"Mary", "Ella", "Paras", "Juggle"],
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
row6:[2,1,"Kavya", "Harmony", "Jey", "Stars and Bars"],
row7:[2,2,"Riya", "Jash", "Malathy", "Stars and Bars"],
row8:[2,3,"Ami", "Ian", "Doug", "Stars and Bars"],
row9:[2,4,"Leah", "Ella", "Inder", "Stars and Bars"],
row10:[2,5,"Mary", "Donovan", "Paras", "Stars and Bars"],
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
row11:[3,1,"Kavya","Jash", "Jey", "Contig 60"],
row12:[3,2,"Riya", "Ian", "Malathy", "Contig 60"],
row13:[3,3,"Ami", "Ella", "Doug", "Contig 60"],
row14:[3,4,"Leah", "Donovan", "Inder", "Contig 60"],
row15:[3,5,"Mary", "Harmony", "Paras", "Contig 60"],
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
row16:[4,1,"Kavya","Ian", "Jey", "Fab-A-Diffy"],
row17:[4,2,"Riya", "Ella", "Malathy", "Fab-A-Diffy"],
row18:[4,3,"Ami", "Donovan", "Doug", "Fab-A-Diffy"],
row19:[4,4,"Leah", "Harmony", "Inder", "Fab-A-Diffy"],
row20:[4,5,"Mary", "Jash", "Paras", "Fab-A-Diffy"],
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
row21:[5,1,"Kavya","Ella", "Jey", "Queens And Guards"],
row22:[5,2,"Riya", "Donovan", "Malathy", "Queens And Guards"],
row23:[5,3,"Ami", "Harmony", "Doug", "Queens And Guards"],
row24:[5,4,"Leah", "Jash", "Inder", "Queens And Guards"],
row25:[5,5,"Mary", "Ian", "Paras", "Queens And Guards"]
};*/
/*
var student = ("<?php echo $students ?>");
var studentNames = student.split(",");
console.log(student);
console.log(studentNames);
var monitor = ("<?php echo $monitors ?>");
var monitorNames = monitor.split(",");
console.log(monitor);
console.log(monitorNames);
var division = ("<?php echo $division ?>");
console.log(division);
var opponent1 = [];
var opponent2 = [];
for (var i = 0; i < studentNames.length; i=i+2) {
console.log(i);
console.log(i+1);
opponent1.push(studentNames[i]);
opponent2.push(studentNames[i+1]);
};
console.log(opponent1);
console.log(opponent2);
var schedule = {};
for (var i = 0; i < Things.length; i++) {
};
for (var i = 0; i < (studentnames.length/2); i++) {
var html = '<div class="divs">';
var j = i + 1;
html +='<h1>Station #' + j + '</h1>';
html += '<table border="0" cellspacing="0" cellpadding="0">';
html+='<tr><th id="round">Round</th><th id="opponent1">Opponent 1</th><th id="opponent2">Opponent 2</th><th id="game">Game</th><th id="monitor">Monitor</th></tr>';
for (var row in schedule) {
if (schedule[row][1] === (i+1)) {
console.log(schedule[row]);
html+='<tr>';
html+='<td>';
html+=schedule[row][0];
html+='</td>';
html+='<td>';
html+=schedule[row][2];
html+='</td>';
html+='<td>';
html+=schedule[row][3];
html+='</td>';
html+='<td>';
html+=schedule[row][5];
html+='</td>';
html+='<td>';
html+=schedule[row][4];
html+='</td>';
html+='</tr>';
console.log(html);
};
};
html += '</table>';
html += '</div>';
$("main").append(html);
};
*/