let points = {
"Helimerase": { col: 1, div: true, p: ["IL"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "HDA": { col: 1, div: false, p: ["IL", "AK"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "LFA": { col: 1, div: false, p: ["AK"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "MazF/MazE system": { col: 1, div: true, p: ["EV", "ER", "EG", "AS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "UV induced killswitch": { col: 1, div: false, p: ["AK"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "AI-2 synthesis in vitro": { col: 1, div: false, p: ["EV", "EG", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Exolysin and endolysin system": { col: 1, div: false, p: ["EJ", "EV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "GMP protein": { col: 1, div: true, p: ["EJ", "AS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "VHSV system": { col: 1, div: false, p: ["EJ", "ER", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Software": { col: 3, div: true, p: ["AK", "KV", "PS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Dry lab": { col: 3, div: true, p: ["IL", "EJ", "EV", "AK", "KV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Hardware": { col: 3, div: true, p: ["IL", "AK", "PS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Modelling": { col: 3, div: true, p: ["DB", "Po"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "The COINS": { col: 2, div: true, p: ["IL", "EJ", "EV", "AK", "ER", "EG", "AS", "KV", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "The 6th SynBio Sense": { col: 2, div: false, p: ["IL", "EV", "AK", "ER", "EG", "KV", "Po", "PS", "LS", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Educational Coloring Book for Children": { col: 2, div: false, p: ["IL", "AK", "ER", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "BioBlox Gaming Tournament": { col: 2, div: false, p: ["EV", "ER", "PS", "BV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Online lessons on YouTube": { col: 2, div: false, p: ["IL", "AK", "DB", "LS", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Seminar for highschoollers SMMS": { col: 2, div: false, p: ["IL", "AK", "DB", "LS", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "National Television LRT": { col: 2, div: false, p: ["IL", "AK", "ER", "BV", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Coronavirus & Gems of iGEM": { col: 2, div: false, p: ["IL", "EV", "ER"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "XXI Kids science fair": { col: 2, div: false, p: ["EV", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Fish Farm “FishNet”": { col: 2, div: false, p: ["IL", "EJ", "EV", "AK", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "STEAM summer camp": { col: 2, div: false, p: ["IL", "EV", "KV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Outreach": { col: 3, div: true, p: ["IL", "EV", "LS", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Wiki design": { col: 3, div: true, p: ["IL", "KV", "PS", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Sponsorship": { col: 3, div: true, p: ["IL", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Safety": { col: 3, div: true, p: ["IL", "EJ", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Graphics": { col: 3, div: true, p: ["IL", "EV", "KV", "BV", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Poster": { col: 3, div: true, p: [], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Presentation video": { col: 3, div: true, p: [], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, "Project promotion video": { col: 3, div: true, p: [], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" },
}; // TODO: change links let people = [ "IL", "EJ", "EV", "AK", "ER", "EG", "AS", "DB", "KV", "Po", "PS", "BV", "LS", "MG", ];
const tbody = document.querySelector("tbody"); const thead = document.querySelector("thead"); thead.onclick = () => window.location = "https://2020.igem.org/Team:Vilnius-Lithuania/Team";
let alt = false;
let pointsKeys = Object.keys(points); for (let pointKey of pointsKeys) {
let tr = document.createElement("tr"); alt = !alt; if (pointKey === "Helimerase"){ let td = document.createElement("th"); td.innerText = "Wet lab"; td.rowSpan = 9; td.style.minWidth = "70px"; td.classList.add("cat"); tr.appendChild(td); let td2 = document.createElement("th"); td2.innerText = "Detection"; td2.classList.add("cat"); td2.rowSpan = 3; tr.appendChild(td2); } if (pointKey === "MazF/MazE system"){ let td = document.createElement("th"); td.innerText = "Treatment"; td.classList.add("cat"); td.rowSpan = 4; tr.appendChild(td); } if (pointKey === "GMP protein"){ let td = document.createElement("th"); td.innerText = "Prevention"; td.classList.add("cat"); td.rowSpan = 2; tr.appendChild(td); } if (pointKey === "The COINS"){ let td = document.createElement("th"); td.innerText = "Human Practices"; td.classList.add("cat"); td.colSpan = 2; td.rowSpan = 11; tr.appendChild(td); }
let point = points[pointKey]; if (point.col === 3){ let fillerTd = document.createElement("th"); fillerTd.className = "excl"; fillerTd.colSpan = 2; tr.appendChild(fillerTd); } if (point.div){ tr.classList.add("divide"); } let pointTd = document.createElement("th"); pointTd.innerText = pointKey; if (alt) { pointTd.className = "alt"; } pointTd.colSpan = 1; tr.appendChild(pointTd);
for (let person of people){ let td = document.createElement("td"); if (alt) { td.className = "alt"; } if (point.p.includes(person)){ td.appendChild(document.createElement("div")); } tr.appendChild(td); } tbody.appendChild(tr);
}