Team:Cornell/Sandbox/notebook
From 2012.igem.org
(Difference between revisions)
R.Lizarralde (Talk | contribs) |
R.Lizarralde (Talk | contribs) |
||
Line 11: | Line 11: | ||
ele.style.display= (ele.style.display == 'none' ? 'block' : 'none'); | ele.style.display= (ele.style.display == 'none' ? 'block' : 'none'); | ||
} | } | ||
- | function onlyFilter() { | + | function onlyFilter(id) { |
- | var ele = document.getElementById(' | + | var ele = document.getElementById(id); |
- | + | var others = document.getElementByClass('filter-container'); | |
+ | others.style.display = 'none'; | ||
+ | ele.style.display= 'block'; | ||
} | } | ||
</script> | </script> | ||
Line 48: | Line 50: | ||
<img id="cwet" onclick="document.getElementById('cwet').style.display='none'" src="https://static.igem.org/mediawiki/igem.org/2/23/Cornell-nb-wet-c.png"> | <img id="cwet" onclick="document.getElementById('cwet').style.display='none'" src="https://static.igem.org/mediawiki/igem.org/2/23/Cornell-nb-wet-c.png"> | ||
</div> | </div> | ||
- | <div id="wet-only" class="nb-only" onclick=" | + | <div id="wet-only" class="nb-only" onclick="onlyFilter('cwet')">only</div> |
</div> | </div> | ||
<div class="two columns nb-filter"> | <div class="two columns nb-filter"> | ||
Line 55: | Line 57: | ||
<img id="cdry" src="https://static.igem.org/mediawiki/igem.org/6/6a/Cornell-nb-dry-c.png"> | <img id="cdry" src="https://static.igem.org/mediawiki/igem.org/6/6a/Cornell-nb-dry-c.png"> | ||
</div> | </div> | ||
- | <div id="dry-only" class="nb-only" onclick=" | + | <div id="dry-only" class="nb-only" onclick="onlyFilter('cdry')">only</div> |
</div> | </div> | ||
<div class="two columns nb-filter"> | <div class="two columns nb-filter"> | ||
Line 62: | Line 64: | ||
<img id="cmodel" src="https://static.igem.org/mediawiki/igem.org/5/59/Cornell-nb-model-c.png"> | <img id="cmodel" src="https://static.igem.org/mediawiki/igem.org/5/59/Cornell-nb-model-c.png"> | ||
</div> | </div> | ||
- | <div id="model-only" class="nb-only" onclick=" | + | <div id="model-only" class="nb-only" onclick="onlyFilter('cmodel')">only</div> |
</div> | </div> | ||
<div class="two columns nb-filter" onclick="filter('chprac')"> | <div class="two columns nb-filter" onclick="filter('chprac')"> | ||
Line 69: | Line 71: | ||
<img id="chprac" src="https://static.igem.org/mediawiki/igem.org/5/59/Cornell-nb-hprac-c.png"> | <img id="chprac" src="https://static.igem.org/mediawiki/igem.org/5/59/Cornell-nb-hprac-c.png"> | ||
</div> | </div> | ||
- | <div id="hprac-only" class="nb-only" onclick=" | + | <div id="hprac-only" class="nb-only" onclick="onlyFilter('chprac')">only</div> |
</div> | </div> | ||
<div class="two columns nb-filter"> | <div class="two columns nb-filter"> | ||
Line 76: | Line 78: | ||
<img id="cwiki" src="https://static.igem.org/mediawiki/igem.org/f/ff/Cornell-nb-wiki-c.png"> | <img id="cwiki" src="https://static.igem.org/mediawiki/igem.org/f/ff/Cornell-nb-wiki-c.png"> | ||
</div> | </div> | ||
- | <div id="wiki-only" class="nb-only" onclick=" | + | <div id="wiki-only" class="nb-only" onclick="onlyFilter('cwiki')">only</div> |
</div> | </div> | ||
<div class="two columns nb-filter"> | <div class="two columns nb-filter"> | ||
Line 83: | Line 85: | ||
<img id="canim" src="https://static.igem.org/mediawiki/igem.org/4/46/Cornell-nb-anim-c.png"> | <img id="canim" src="https://static.igem.org/mediawiki/igem.org/4/46/Cornell-nb-anim-c.png"> | ||
</div> | </div> | ||
- | <div id="anim-only" class="nb-only" onclick=" | + | <div id="anim-only" class="nb-only" onclick="onlyFilter('canim')">only</div> |
</div> | </div> | ||
</div> | </div> |
Revision as of 15:49, 5 March 2013
Notebook
Filter by subteam:
only
only
only
only
only
only