(Created page with "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"], lin...") |
m |
||
Line 1: | Line 1: | ||
let points = { | let points = { | ||
− | "Helimerase": { col: 1, div: true, p: ["IL"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, | + | "Helimerase": { col: 1, div: true, p: ["IL", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, |
− | "HDA": { col: 1, div: false, p: [" | + | "HDA": { col: 1, div: false, p: ["AK", "AS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, |
− | "LFA": { col: 1, div: false, p: ["AK"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, | + | "LFA": { col: 1, div: false, p: ["AK"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, |
− | "MazF/MazE system": { col: 1, div: true, p: ["EV | + | "MazF/MazE system": { col: 1, div: true, p: ["EV", "EG", "AS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, |
− | "UV induced killswitch": { col: 1, div: false, p: ["AK"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, | + | "UV induced killswitch": { col: 1, div: false, p: ["EJ", "EV", "AK"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, |
− | "AI-2 synthesis in vitro": { col: 1, div: false, p: ["EV", "EG", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, | + | "AI-2 synthesis in vitro": { col: 1, div: false, p: ["EJ", "EV", "EG", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, |
− | "Exolysin and endolysin system": { col: 1, div: false, p: ["EJ", "EV"], 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/Design" }, |
− | " | + | "GldJ protein": { col: 1, div: true, p: ["EJ", "AS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, |
− | "VHSV system": { col: 1, div: false, p: ["EJ", "ER", "DB"], 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/Design" }, |
− | "Software": { col: 3, div: true, p: ["AK", "KV", "PS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, | + | "Software": { col: 3, div: true, p: ["AK", "DB", "KV", "Po", "PS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Software" }, |
− | "Dry lab": { col: 3, div: true, p: ["IL", "EJ", "EV", "AK", "KV"], 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 | + | "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/" }, | + | "Modelling": { col: 3, div: true, p: ["EV", "DB", "Po", "PS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Model" }, |
− | "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 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/" }, | + | "The 6th SynBio Sense": { col: 2, div: false, p: ["IL", "EV", "AK", "ER", "EG", "AS", "KV", "Po", "PS", "LS", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, |
− | "Educational Coloring Book for Children": { col: 2, div: false, p: ["IL", "AK | + | "Educational Coloring Book for Children": { col: 2, div: false, p: ["IL", "AK", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, |
− | "BioBlox Gaming Tournament": { col: 2, div: false, p: ["EV", "ER", "PS", "BV"], 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/Education" }, |
− | " | + | "Video lectures for schools": { col: 2, div: false, p: ["IL", "AK", "DB", "LS", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, |
− | "Seminar for highschoollers SMMS": { 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/Education" }, |
− | "National Television LRT": { col: 2, div: false, p: ["IL", "AK", "ER", "BV", "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/Education" }, |
− | "Coronavirus & Gems of iGEM": { col: 2, div: false, p: ["IL", "EV | + | "Protmūšis": { col: 2, div: false, p: ["EV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, |
− | "XXI Kids science fair": { col: 2, div: false, p: ["EV", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/" }, | + | "Coronavirus & Gems of iGEM": { col: 2, div: false, p: ["IL", "EV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, |
− | "Fish Farm “FishNet”": { col: 2, div: false, p: ["IL", "EJ", "EV", "AK", "MG"], 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/Education" }, |
− | "STEAM summer camp": { col: 2, div: false, p: ["IL", "EV", "KV"], 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/Integrated" }, |
− | "Outreach": { col: 3, div: true, p: ["IL", "EV", "LS", "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/Education" }, |
− | "Wiki design": { col: 3, div: true, p: ["IL", "KV", "PS", "LS"], 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" }, |
− | "Sponsorship": { col: 3, div: true, p: ["IL", "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" }, |
− | "Safety": { col: 3, div: true, p: ["IL", "EJ", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania | + | "Sponsorship": { col: 3, div: true, p: ["IL", "MG"], 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 | + | "Safety": { col: 3, div: true, p: ["IL", "EJ", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania" }, |
− | "Poster": { col: 3, div: true, p: [], 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" }, |
− | "Presentation video": { col: 3, div: true, p: [], link: "https://2020.igem.org/Team:Vilnius-Lithuania | + | "Poster": { col: 3, div: true, p: ["LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania" }, |
− | "Project promotion video": { col: 3, div: true, p: [], link: "https:// | + | "Presentation video": { col: 3, div: true, p: ["IL", "AK", "ER", "EG", "AS", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania" }, |
+ | "Project promotion video": { col: 3, div: true, p: ["IL", "EV", "KV"], link: "https://video.igem.org/videos/watch/831569f1-ed65-41b3-bc9c-f68ab4d2c95c" }, | ||
}; // TODO: change links | }; // TODO: change links | ||
let people = [ "IL", "EJ", "EV", "AK", "ER", "EG", "AS", "DB", "KV", "Po", "PS", "BV", "LS", "MG", ]; | let people = [ "IL", "EJ", "EV", "AK", "ER", "EG", "AS", "DB", "KV", "Po", "PS", "BV", "LS", "MG", ]; | ||
Line 65: | Line 66: | ||
tr.appendChild(td); | tr.appendChild(td); | ||
} | } | ||
− | if (pointKey === " | + | if (pointKey === "GldJ protein"){ |
let td = document.createElement("th"); | let td = document.createElement("th"); | ||
td.innerText = "Prevention"; | td.innerText = "Prevention"; | ||
Line 92: | Line 93: | ||
let pointTd = document.createElement("th"); | let pointTd = document.createElement("th"); | ||
pointTd.innerText = pointKey; | pointTd.innerText = pointKey; | ||
+ | pointTd.onclick = ()=>window.location = point.link; | ||
if (alt) { pointTd.className = "alt"; } | if (alt) { pointTd.className = "alt"; } | ||
pointTd.colSpan = 1; | pointTd.colSpan = 1; |
Revision as of 10:26, 18 October 2020
let points = {
"Helimerase": { col: 1, div: true, p: ["IL", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, "HDA": { col: 1, div: false, p: ["AK", "AS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, "LFA": { col: 1, div: false, p: ["AK"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, "MazF/MazE system": { col: 1, div: true, p: ["EV", "EG", "AS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, "UV induced killswitch": { col: 1, div: false, p: ["EJ", "EV", "AK"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, "AI-2 synthesis in vitro": { col: 1, div: false, p: ["EJ", "EV", "EG", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, "Exolysin and endolysin system": { col: 1, div: false, p: ["EJ", "EV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, "GldJ protein": { col: 1, div: true, p: ["EJ", "AS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, "VHSV system": { col: 1, div: false, p: ["EJ", "ER", "DB"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Design" }, "Software": { col: 3, div: true, p: ["AK", "DB", "KV", "Po", "PS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Software" }, "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: ["EV", "DB", "Po", "PS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Model" }, "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", "AS", "KV", "Po", "PS", "LS", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, "Educational Coloring Book for Children": { col: 2, div: false, p: ["IL", "AK", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, "BioBlox Gaming Tournament": { col: 2, div: false, p: ["EV", "ER", "PS", "BV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, "Video lectures for schools": { col: 2, div: false, p: ["IL", "AK", "DB", "LS", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, "Seminar for highschoollers (SMMS)": { col: 2, div: false, p: ["IL", "AK", "DB", "LS", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, "National Television LRT": { col: 2, div: false, p: ["IL", "AK", "ER", "BV", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, "Protmūšis": { col: 2, div: false, p: ["EV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, "Coronavirus & Gems of iGEM": { col: 2, div: false, p: ["IL", "EV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, //"XXI Kids science fair": { col: 2, div: false, p: ["EV", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, "Fish Farm “FishNet”": { col: 2, div: false, p: ["IL", "EJ", "EV", "AK", "MG"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Integrated" }, "STEAM summer camp": { col: 2, div: false, p: ["IL", "EV", "KV"], link: "https://2020.igem.org/Team:Vilnius-Lithuania/Education" }, "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: ["LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania" }, "Presentation video": { col: 3, div: true, p: ["IL", "AK", "ER", "EG", "AS", "LS"], link: "https://2020.igem.org/Team:Vilnius-Lithuania" }, "Project promotion video": { col: 3, div: true, p: ["IL", "EV", "KV"], link: "https://video.igem.org/videos/watch/831569f1-ed65-41b3-bc9c-f68ab4d2c95c" },
}; // 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 === "GldJ 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; pointTd.onclick = ()=>window.location = point.link; 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);
}