18desilvni (Talk | contribs) |
|||
Line 28: | Line 28: | ||
['Mg2+ dechelatase','the third enzyme in chlorophyll\'s degradation pathway converting chlorophyll a into pheophytin a'], | ['Mg2+ dechelatase','the third enzyme in chlorophyll\'s degradation pathway converting chlorophyll a into pheophytin a'], | ||
['spacer','iGEM Calgary\'s universal spacer sequence to seperate the effects of a his-tag on a protein\'s function'], | ['spacer','iGEM Calgary\'s universal spacer sequence to seperate the effects of a his-tag on a protein\'s function'], | ||
+ | |||
+ | ['inclusion body', 'insoluble protein aggregates found in recombinant bacteria'], | ||
+ | ['<i>E. coli </i> BL21 (DE3)', 'a bacterial strain highly efficient for transformation and protein expression'], | ||
+ | ['periplasm', 'area between the inner cytoplasmic membrane and outer bacterial membrane'], | ||
+ | ['signal peptide', 'directs the translocation of protein to a specific location, such as the periplasmic space'], | ||
+ | |||
+ | |||
+ | |||
+ | |||
]; | ]; |
Revision as of 20:48, 20 October 2019
// ----[ PUT ALL WORD DEFINITIONS IN ARRAY BELOW] ----
/* By keeping all of the definitions in one place, we can use them across multiple pages instead of redefining words (inconsistently) every time they appear */
var definitions = [ ['lorem ipsum', 'a commonly employed block of mock-text that is used to critque the typography of a webpage'], ['platea', 'a word that Prabhu thinks is cool'], ['duo', 'a pair of two'], ['id', 'the part of the mind in which innate instinctive impulses and primary processes are manifest as theorized by Sigmund Freud'], ['sit', 'a physical command commonly given to dogs'], ['sed', 'a Spanish word meaning \"thirst\"'],
['protein', 'a biological thing'], ['xanthios','????'], ['pheophorbide','a compound occuring in chlorophyll\'s degradation pathway notable for its photosensitizing effects'], ['agronomist','a scientist who develops methods that will improve the use of soil and increase the production of food and fiber crops.'], ['agronomists','a scientist who develops methods that will improve the use of soil and increase the production of food and fiber crops.'], ['photosensitizer','a molecule that produces a chemical change in another molecule in a photochemical process.'], ['mycelial','the vegetative part of a fungus or fungus-like bacterial colony'], ['minimum inhibitory concentration', 'lowest concentration of an antibacterial agent necessary to inhibit visible growth'], ['acid-activated clays','a chemical treatment method which is currently the industry standard for purifying canola oil'], ['yOIL','iGEM Calgary\'s all-encompassing solution to the green seed problem'], ['neutraceutical','a pharmaceutical alternative which claims physiological benefits.'], ['7-hydroxymethyl chlorophyll a reductase','the second enzyme in chlorophyll\'s degradation pathway converting 7 hydroxymethyl chlorophyll into chlorophylla'], ['pheophytinase','the fourth enzyme in chlorophyll\'s degradation pathway converting pheophytin a into pheophorbide a'], ['chlorophyll b reductase','the second enzyme in chlorophyll\'s degradation pathway converting chlorophyll b into 7-hydroxymethyl chlorophyll'], ['Mg2+ dechelatase','the third enzyme in chlorophyll\'s degradation pathway converting chlorophyll a into pheophytin a'], ['spacer','iGEM Calgary\'s universal spacer sequence to seperate the effects of a his-tag on a protein\'s function'],
['inclusion body', 'insoluble protein aggregates found in recombinant bacteria'], ['E. coli BL21 (DE3)', 'a bacterial strain highly efficient for transformation and protein expression'], ['periplasm', 'area between the inner cytoplasmic membrane and outer bacterial membrane'], ['signal peptide', 'directs the translocation of protein to a specific location, such as the periplasmic space'],
];
function identifyDefinition(word) { for(var defIndex = 0; defIndex < definitions.length; ++defIndex) { if(definitions[defIndex][0].toLowerCase() == word.toLowerCase()) { return definitions[defIndex][1]; } } }
function setDefinitions() {
terms = document.getElementsByTagName("DFN");
for(var termIndex = 0; termIndex < terms.length; ++termIndex) {
var term = terms[termIndex]; var lemma = term.getAttribute("data-lemma"); var word = (lemma != null) ? lemma : term.textContent;
// "data-toggle" enables the tooltip var toggle = document.createAttribute("data-toggle"); toggle.value = "tooltip"; term.setAttributeNode(toggle);
// "title" refers to the contents of the tooltip (i.e. the word definition) var title = document.createAttribute("title"); var definition = identifyDefinition(word) title.value = "Definition: " + ((definition == null) ? "???" : definition); term.setAttributeNode(title);
// "placement" is set to auto which means the tooltip will appear wherever room is left (top | bottom | right | left) var placement = document.createAttribute("data-placement"); placement.value = "auto"; term.setAttributeNode(placement);
// "offset" changes the displacement of the tooltip (makes it deviate from centre) var offset = document.createAttribute("data-offset"); offset.value = "75%"; term.setAttributeNode(offset);
// "html" enables the "title" attribute to use html tags (in this case, the tag was used) var html = document.createAttribute("data-html"); html.value = "true"; term.setAttributeNode(html);
}
// This line enables Bootstrap's tooltips (they are disabled by default) $('[data-toggle="tooltip"]').tooltip(); }