Team:Vanderbilt/AttributionsSubPageBuilder

From 2014.igem.org

(Difference between revisions)
Hwangas (Talk | contribs)
(Created page with " function AttributionsSubPageBuilder() { var subPage = new SubPageBuilder(); subPage.maxSubPage = 2; subPage.getMaxSubPage = function() { return subPage.maxS...")
Newer edit →

Revision as of 19:49, 25 January 2015

function AttributionsSubPageBuilder() {

   var subPage = new SubPageBuilder();
   subPage.maxSubPage = 2;
   subPage.getMaxSubPage = function() {
       return subPage.maxSubPage;
   };
   subPage.createSubPage = function(subPageNum) {
       switch(subPageNum){
           case 1:
               document.getElementById("igem_header").innerHTML = "case 1 of attributions";
               subPage.createIntro();
               subPage.createProfFacul();
               break;
           case 2:
               subPage.createStaffRes();
               subPage.createSponsors();
               break;
       }
   };
   subPage.createIntro = function() {
       document.getElementById("igem_header").innerHTML = "beginning of createIntro";
       var header = document.createElement("header");
       header.appendChild(document.createTextNode("Our Attributions"));
       document.getElementById("igem_header").innerHTML = "1 of createIntro";
       var text = "While Vanderbilt University's iGEM team is driven by its undergraduates, our work is indebted to " +
           "the generosity of our mentors and gracious sponsors. Vanderbilt iGEM prides itself in being a team run by un" +
           "dergraduates, for undergraduates. All project design and data analysis, lab work and experimentation, fundr" +
           "aising and outreach, and all the other work done by the team was all preformed by undergraduate student vo" +
           "lunteers. However outside companies, faculty and staff, institutions, and individuals all have made contri" +
           "butions that have been essential in our team's growth and success. We would like to take the time to speci" +
           "ally thank each one of them.";
       document.getElementById("igem_header").innerHTML = "2 of createIntro";
       var p = subPage.createP(text);
       document.getElementById("igem_header").innerHTML = "middle of createIntro";
       leftPageBuilder.appendChild(header);
       leftPageBuilder.appendChild(p);
       document.getElementById("igem_header").innerHTML = "end of createIntro";
   };
   subPage.createProfFacul = function() {
       var header = document.createElement("header");
       header.appendChild(document.createTextNode("Professors and Faculty"));
       var img1 = subPage.createPhoto("VU_Chrissy_marasco.JPG",
           "Chrissy Marasco",
           300, 300,
           "Dr. Chrissy Marasco for her role as the team's principle faculty adviser, with " +
           "contributions to both the administrative and scientific work of our team");
       var img2 = subPage.createPhoto("VU_Kevin_seale.jpg",
           "Kevin Seale",
           300, 300,
           "Kevin Seale for his role as our team's administrative adviser, providing lab " +
           "space and equipment, and offering assistance through the SyBBURE program");
       var img3 = subPage.createPhoto("VU_Kathy_friedman.jpg",
           "Kathy Friedman",
           300, 300,
           "Kathy Friedman for her role as our team's scientific adviser, offering technical" +
           " assistance during project planing and troubleshooting");
       var img4 = subPage.createPhoto("VU_Ian_macara.jpg",
           "Ian Macara",
           300, 300,
           "Ian Macara for providing our team with lab space, materials, and equipment for the fall semester and beyond");
       var img5 = subPage.createPhoto("VU_Mark_woelfle.jpg",
           "Mark Woelfle",
           300, 300,
           "Mark Woelfle for providing our team with lab space and equipment for the spring semester");
       var img6 = subPage.createPhoto("VU_Amanda_benson.jpg",
           "Amanda Benson",
           300, 300,
           "Amanda Benson for her technical support and guiding collaboration with Ravenwood High School's iGEM team");
       rightPageBuilder.appendChild(header);
       rightPageBuilder.appendChild(img1);
       rightPageBuilder.appendChild(img2);
       rightPageBuilder.appendChild(img3);
       rightPageBuilder.appendChild(img4);
       rightPageBuilder.appendChild(img5);
       rightPageBuilder.appendChild(img6);
   };
   subPage.createStaffRes = function() {
       var header = document.createElement("header");
       header.appendChild(document.createTextNode("Staff and Resources"));
       var img1 = subPage.createPhoto("VU_Greenhouse_ertelt.jpg",
           "Vanderbilt Greenhouse and Jonathan Ertelt",
           300, 300,
           "VU Greenhouse and Jonathan Ertelt for assistance growing and maintaining our various plants");
       var img2 = subPage.createPhoto("VU_mass_spec.jpg",
           "Mass Spec at Vanderbilt Mass Spectrometry Core",
           300, 300,
           "Vanderbilt Mass Spectrometry Core for agreeing to analyze our samples for terpenoid content and " +
           "discussing ways to extract terpene for analysis");
       var text = "Dr. Steven Baskauf for general assistance in running our lab.";
       var p1 = subPage.createP(text);
       text = "Charles Sissom and Sara Samoray for protocol advice, equipment t" +
       "raining, and assistance in running our lab.";
       var p2 = subPage.createP(text);
       text = "Anthony Tharp for access to common equipment resources.";
       var p3 = subPage.createP(text);
       text = "Vanderbilt Environmental Health and Safety for training in pro" +
       "per lab practice and safe waste disposal.";
       var p4 = subPage.createP(text);
       text = "University of Massachusetts Medical Center, especially Dr. Aviva Joseph, for tec" +
       "hnical advice related to our genetic constructs.";
       var p5 = subPage.createP(text);
       document.getElementById("left_page").appendChild(header);
       document.getElementById("left_page").appendChild(img1);
       document.getElementById("left_page").appendChild(img2);
       document.getElementById("left_page").appendChild(p1);
       document.getElementById("left_page").appendChild(p2);
       document.getElementById("left_page").appendChild(p3);
       document.getElementById("left_page").appendChild(p4);
       document.getElementById("left_page").appendChild(p5);
   };
   subPage.createSponsors = function() {
       var header = document.createElement("header");
       header.appendChild(document.createTextNode("Sponsors"));
       var img1 = [subPage.createPlainIMG("VU_SyBBURE.png", "SyBBURE", 300, 146),
                   subPage.createPlainIMG("VU_VIIBRE.png", "VIIBRE", 300, 69)];
       var img2 = [subPage.createPlainIMG("VU_Biomatters.png", "Biomatters", 300, 101),
                   subPage.createPlainIMG("VU_School_of_Engineering.jpg", "Vanderbilt School of Engineering", 300, 51)];
       var table = document.createElement("table");
       table.style.width = "80%";
       table.style.margin = "auto";
       subPage.createRowFromArray(table, img1);
       subPage.createRowFromArray(table, img2);
       document.getElementById("right_page").appendChild(header);
       document.getElementById("right_page").appendChild(table);
   };
   return subPage;

}