Team:CityU HK/HumanPractice

From 2014.igem.org

(Difference between revisions)
Line 338: Line 338:
<script>
<script>
 +
// Demo example functions.
 +
var preLoadIconOn = function () {
 +
    var newE = document.createElement("div"),
 +
        newB = document.createElement("div");
 +
        newE.setAttribute("id", "simplbox-loading");
 +
        newE.appendChild(newB);
 +
    document.body.appendChild(newE);
 +
},
 +
preLoadIconOff = function () {
 +
    var elE = document.getElementById("simplbox-loading");
 +
    elE.parentNode.removeChild(elE);
 +
},
 +
overlayOn = function () {
 +
    var newA = document.createElement("div");
 +
    newA.setAttribute("id", "simplbox-overlay");
 +
    document.body.appendChild(newA);
 +
},
 +
overlayOff = function () {
 +
    var elA = document.getElementById("simplbox-overlay");
 +
    elA.parentNode.removeChild(elA);
 +
},
 +
closeButtonOn = function (base) {
 +
    var newE = document.createElement("div");
 +
    newE.setAttribute("id", "simplbox-close");
 +
    document.body.appendChild(newE);
 +
    newE = document.getElementById("simplbox-close");
 +
    base.API_AddEvent(newE, "click touchend", function () {
 +
        base.API_RemoveImageElement();
 +
        return false;
 +
    });
 +
},
 +
closeButtonOff = function () {
 +
    var elA = document.getElementById("simplbox-close");
 +
    elA.parentNode.removeChild(elA);
 +
},
 +
captionOn = function (base) {
 +
    var element = document.getElementById("simplbox-caption"),
 +
        documentFragment = document.createDocumentFragment(),
 +
        newElement = document.createElement("div"),
 +
        newText = document.createTextNode(base.m_Alt);
 +
 +
    if (element) {
 +
        element.parentNode.removeChild(element);
 +
    }
 +
 +
    newElement.setAttribute("id", "simplbox-caption");
 +
    newElement.appendChild(newText);
 +
    documentFragment.appendChild(newElement);
 +
    document.getElementsByTagName("body")[0].appendChild(documentFragment);
 +
},
 +
captionOff = function () {
 +
    var element = document.getElementById("simplbox-caption");
 +
    element.parentNode.removeChild(element);
 +
};
 +
 +
 +
var E = new SimplBox(document.querySelectorAll("[data-simplbox='demo5']"), {
var E = new SimplBox(document.querySelectorAll("[data-simplbox='demo5']"), {
     quitOnDocumentClick: false,
     quitOnDocumentClick: false,

Revision as of 01:44, 20 September 2014

Bootstrap 101 Template

Bootstrap 101 Template


Human Practice

We educated secondary school kids about synthetic biology and the safety issues. We also conducted a survey on public understanding on synthetic biology.

What we have done

This part is under construction.

Survey

This part is under construction.

  • Image 09
  • Image 10