Template:Imperial/09/TopNavigation

From 2009.igem.org

(Difference between revisions)
Line 8: Line 8:
if (addressSplit[3]=='Team:Imperial_College_London'){
if (addressSplit[3]=='Team:Imperial_College_London'){
     if (typeof(addressSplit[4])=='undefined'){
     if (typeof(addressSplit[4])=='undefined'){
-
document.write('<div id="accordion">
+
document.write('<div id="accordion"><div class="panel" id="panel1"><h3>Panel 1</h3><div id="panel1-body" class="panel_body"><div>This is the contents of this panel.</div></div></div>');
-
<div class="panel" id="panel1">
+
document.write('<div id="accordion"><div class="pane2" id="panel2"><h3>Panel 1</h3><div id="panel2-body" class="panel_body"><div>This is the contents of this panel.</div></div></div>');
-
    <h3>Panel 1</h3>
+
document.write('<div id="accordion"><div class="pane3" id="panel3"><h3>Panel 1</h3><div id="panel3-body" class="panel_body"><div>This is the contents of this panel.</div></div></div>');
-
    <div id="panel1-body" class="panel_body">
+
document.write('<div id="accordion"><div class="pane4" id="panel4"><h3>Panel 1</h3><div id="panel4-body" class="panel_body"><div>This is the contents of this panel.</div></div></div>');
-
        <div>
+
-
        This is the contents of this panel.
+
-
        </div>
+
-
    </div>
+
-
</div>
+
-
 
+
-
<div class="panel" id="panel2">
+
-
 
+
-
    <h3>Panel 2</h3>
+
-
    <div id="panel2-body" class="panel_body">
+
-
        <div>
+
-
        This is the contents of this panel.
+
-
        </div>
+
-
    </div>
+
-
+
-
</div>
+
-
 
+
-
<div class="panel" id="panel3">
+
-
    <h3>Panel 3</h3>
+
-
    <div id="panel3-body" class="panel_body">
+
-
        <div>
+
-
        This is the contents of this panel.
+
-
        </div>
+
-
    </div>
+
-
</div>
+
-
 
+
-
<div class="panel" id="panel4">
+
-
    <h3>Panel 4</h3>
+
-
    <div id="panel4-body" class="panel_body">
+
-
        <div>
+
-
        This is the contents of this panel.
+
-
        </div>
+
-
    </div>
+
-
</div>
+
-
 
+
-
<div class="panel" id="panel5">
+
-
    <h3>Panel 5</h3>
+
-
    <div id="panel5-body" class="panel_body">
+
-
        <div>
+
-
        This is the contents of this panel.
+
-
        </div>
+
-
    </div>
+
-
</div>
+
-
</div>');
+
     }
     }
}
}

Revision as of 13:21, 18 October 2009