Team:UT Dallas/Team

From 2013.igem.org

(Difference between revisions)
Line 2: Line 2:
<html>
<html>
-
<title>iGEM 2013 Team</title>
+
<style>
-
<body class="space">
+
 
 +
.accordion {
 +
  margin: 50px; 
 +
  dt, dd {
 +
      padding: 10px;
 +
      border: 1px solid black;
 +
      border-bottom: 0;
 +
      &:last-of-type {
 +
        border-bottom: 1px solid black;
 +
      }
 +
      a {
 +
        display: block;
 +
        color: black;
 +
        font-weight: bold;
 +
      }
 +
  }
 +
  dd {
 +
    border-top: 0;
 +
    font-size: 12px;
 +
    &:last-of-type {
 +
      border-top: 1px solid white;
 +
      position: relative;
 +
      top: -1px;
 +
    }
 +
  }
 +
}
 +
 
 +
</style>
 +
 
   <div id="bottom-panel">
   <div id="bottom-panel">
-
    <table>
+
<dl class="accordion">
-
      <tr>
+
 
-
        <td>
+
<dt><a href="">Panel 1</a></dt>
-
          <div style="width: 580px; margin-top:0px;">
+
<dd>Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.</dd>
-
            <span id="abs-title">TEAM</span>
+
 
-
            <span style="float: left;">
+
<dt><a href="">Panel 2</a></dt>
-
              <p id="abs-text">
+
<dd>Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.</dd>
-
              Put pictures-n-stuff here...
+
 
-
            </span>
+
<dt><a href="">Panel 3</a></dt>
-
          </div>
+
<dd>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.</dd>
-
        </td>
+
 
-
        <td>
+
</dl>
-
          </div>
+
-
        </td>
+
-
      </tr>
+
-
    </table>
+
   </div>  
   </div>  
 +
<script>
 +
(function($) {
 +
   
 +
  var allPanels = $('.accordion > dd').hide();
 +
   
 +
  $('.accordion > dt > a').click(function() {
 +
    allPanels.slideUp();
 +
    $(this).parent().next().slideDown();
 +
    return false;
 +
  });
-
 
+
})(jQuery);
-
  </div>
+
</script>
</html>
</html>

Revision as of 21:46, 6 September 2013

Panel 1
Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.
Panel 2
Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.
Panel 3
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.