Team:Cornell/Sandbox/notebook
From 2012.igem.org
(Difference between revisions)
R.Lizarralde (Talk | contribs) |
R.Lizarralde (Talk | contribs) |
||
Line 26: | Line 26: | ||
all(); | all(); | ||
- | var list = document.getElementsByClassName( | + | var list = document.getElementsByClassName("nb-" + ele.id); |
for (var i = 0; i < list.length; i++) { | for (var i = 0; i < list.length; i++) { | ||
list[i].style.display = (show ? 'block' : 'none'); | list[i].style.display = (show ? 'block' : 'none'); | ||
Line 42: | Line 42: | ||
row.children[i].children[1].className = (hide ? 'nb-only-i' : 'nb-only'); | row.children[i].children[1].className = (hide ? 'nb-only-i' : 'nb-only'); | ||
- | var list = document.getElementsByClassName(row.children[i].children[0].children[1].id | + | var list = "nb-" + document.getElementsByClassName(row.children[i].children[0].children[1].id); |
for (var j = 0; j < list.length; j++) { | for (var j = 0; j < list.length; j++) { | ||
list[j].style.display = (hide ? 'none' : 'block'); | list[j].style.display = (hide ? 'none' : 'block'); | ||
Line 180: | Line 180: | ||
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h3 class="centered">Week 1</h3> | <h3 class="centered">Week 1</h3> | ||
- | <div class="row entry | + | <div class="row entry nb-wet"> |
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h4>WetTest</h4> | <h4>WetTest</h4> | ||
</div> | </div> | ||
</div> | </div> | ||
- | <div class="row entry | + | <div class="row entry nb-dry"> |
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h4>DryTest</h4> | <h4>DryTest</h4> | ||
</div> | </div> | ||
</div> | </div> | ||
- | <div class="row entry | + | <div class="row entry nb-model"> |
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h4>ModelTest</h4> | <h4>ModelTest</h4> | ||
</div> | </div> | ||
</div> | </div> | ||
- | <div class="row entry | + | <div class="row entry nb-hprac"> |
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h4>HPracTest</h4> | <h4>HPracTest</h4> | ||
</div> | </div> | ||
</div> | </div> | ||
- | <div class="row entry | + | <div class="row entry nb-wiki"> |
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h4>WikiTest</h4> | <h4>WikiTest</h4> | ||
</div> | </div> | ||
</div> | </div> | ||
- | <div class="row entry | + | <div class="row entry nb-anim"> |
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h4>AnimTest</h4> | <h4>AnimTest</h4> | ||
Line 215: | Line 215: | ||
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h3 class="centered" >Week 2</h3> | <h3 class="centered" >Week 2</h3> | ||
- | <div class="row entry | + | <div class="row entry nb-wiki"> |
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h4>WikiTest</h4> | <h4>WikiTest</h4> | ||
Line 225: | Line 225: | ||
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h3 class="centered">Week 3</h3> | <h3 class="centered">Week 3</h3> | ||
- | <div class="row entry | + | <div class="row entry nb-anim"> |
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h4>AnimTest</h4> | <h4>AnimTest</h4> |
Revision as of 21:09, 6 March 2013