Team:Cornell/Sandbox/notebook
From 2012.igem.org
(Difference between revisions)
Line 7: | Line 7: | ||
<body> | <body> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | |||
- | |||
- | |||
- | |||
function filter(that) { | function filter(that) { | ||
var ele = that.children[1]; | var ele = that.children[1]; | ||
ele.style.display= (ele.style.display == 'none' ? 'block' : 'none'); | ele.style.display= (ele.style.display == 'none' ? 'block' : 'none'); | ||
} | } | ||
- | function onlyFilter( | + | function onlyFilter(that) { |
- | var | + | var filt = that.parentNode; |
- | + | var row = filt.parentNode; | |
+ | for(var i=0; i<row.children.length; i++) | ||
+ | { | ||
+ | var hide = true; | ||
+ | if(row.children[i] == filt) hide = false; | ||
+ | row.children[i].children[0].children[1].style.display = (hide ? 'none' : 'block'); | ||
+ | } | ||
} | } | ||
</script> | </script> | ||
Line 52: | Line 54: | ||
<img id="wet" src="https://static.igem.org/mediawiki/igem.org/2/23/Cornell-nb-wet-c.png"> | <img id="wet" 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="onlyFilter( | + | <div id="wet-only" class="nb-only" onclick="onlyFilter(this)">only</div> |
</div> | </div> | ||
<div class="two columns nb-filter"> | <div class="two columns nb-filter"> | ||
Line 59: | Line 61: | ||
<img id="dry" src="https://static.igem.org/mediawiki/igem.org/6/6a/Cornell-nb-dry-c.png"> | <img id="dry" 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="onlyFilter( | + | <div id="dry-only" class="nb-only" onclick="onlyFilter(this)">only</div> |
</div> | </div> | ||
<div class="two columns nb-filter"> | <div class="two columns nb-filter"> | ||
Line 66: | Line 68: | ||
<img id="model" src="https://static.igem.org/mediawiki/igem.org/5/59/Cornell-nb-model-c.png"> | <img id="model" 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="onlyFilter( | + | <div id="model-only" class="nb-only" onclick="onlyFilter(this)">only</div> |
</div> | </div> | ||
<div class="two columns nb-filter"> | <div class="two columns nb-filter"> | ||
Line 73: | Line 75: | ||
<img id="hprac" src="https://static.igem.org/mediawiki/igem.org/5/59/Cornell-nb-hprac-c.png"> | <img id="hprac" 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="onlyFilter( | + | <div id="hprac-only" class="nb-only" onclick="onlyFilter(this)">only</div> |
</div> | </div> | ||
<div class="two columns nb-filter"> | <div class="two columns nb-filter"> | ||
Line 80: | Line 82: | ||
<img id="wiki" src="https://static.igem.org/mediawiki/igem.org/f/ff/Cornell-nb-wiki-c.png"> | <img id="wiki" 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="onlyFilter( | + | <div id="wiki-only" class="nb-only" onclick="onlyFilter(this)">only</div> |
</div> | </div> | ||
<div class="two columns nb-filter"> | <div class="two columns nb-filter"> | ||
Line 87: | Line 89: | ||
<img id="anim" src="https://static.igem.org/mediawiki/igem.org/4/46/Cornell-nb-anim-c.png"> | <img id="anim" 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="onlyFilter( | + | <div id="anim-only" class="nb-only" onclick="onlyFilter(this)">only</div> |
</div> | </div> | ||
</div> | </div> |
Revision as of 17:02, 5 March 2013
Notebook
Filter by subteam:
only
only
only
only
only
only