Team:Hong Kong HKUST/notebook

From 2013.igem.org

(Difference between revisions)
Line 1: Line 1:
-
<html>
+
<html>  
-
<head>
+
<meta charset="utf-8" />
-
<style type="text/css">
+
  <title>jQuery UI Accordion - Default functionality</title>
-
element.style {
+
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
-
}
+
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
-
 
+
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
-
.accordion {
+
  <link rel="stylesheet" href="/resources/demos/style.css" />
-
margin: 0;
+
  <script>
-
padding: 10px;
+
  $(function() {
-
height: 20px;
+
    $( "#accordion" ).accordion();
-
border-top: #f0f0f0 1px solid;
+
  });
-
background: #cccccc;
+
  </script>
-
font-family: Arial, Helvetica, sans-serif;
+
-
text-decoration: none;
+
-
text-transform: uppercase;
+
-
color: #000;
+
-
font-size: 1em;
+
-
}
+
-
 
+
-
div {
+
-
display: block;
+
-
}
+
-
</style>
+
-
<script type="text/javascript" src="javascript/jquery.cookie.js"></script> <!--required only if using cookies-->
+
-
    <script type="text/javascript" src="javascript/jquery.accordion.js"></script>
+
-
    <script type="text/javascript">
+
-
        $(document).ready(function() {
+
-
            $('.accordion').accordion({defaultOpen: 'some_id'}); //some_id section1 in demo
+
-
        });
+
-
    </script>
+
</head>
</head>
<body>
<body>
-
 
+
-
    <div class="accordion" id="section1">Heading<span></span></div>
+
<div id="accordion">
-
     <div class="container">
+
  <h3>Section 1</h3>
-
        <div class="content">
+
  <div>
-
            <div>Sample Content</div>
+
     <p>
-
            <p>Content here....</p>
+
    Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
-
        </div>
+
    ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
-
    </div>
+
    amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
-
    <div class="accordion" id="section2">Heading<span></span></div>
+
    odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
-
    <div class="container">
+
    </p>
-
        <div class="content">
+
  </div>
-
            <div>Sample Content</div>
+
  <h3>Section 2</h3>
-
            <p>Content here....</p>
+
  <div>
-
        </div>
+
    <p>
-
    </div>
+
    Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
-
    <div class="accordion" id="section3">Heading<span></span></div>
+
    purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
-
     <div class="container">
+
    velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
-
        <div class="content">
+
    suscipit faucibus urna.
-
            <div>Sample Content</div>
+
    </p>
-
            <p>Content here....</p>
+
  </div>
-
        </div>
+
  <h3>Section 3</h3>
-
     </div>
+
  <div>
-
</body>
+
    <p>
 +
    Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis.
 +
    Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero
 +
    ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis
 +
    lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.
 +
    </p>
 +
    <ul>
 +
      <li>List item one</li>
 +
      <li>List item two</li>
 +
      <li>List item three</li>
 +
     </ul>
 +
  </div>
 +
  <h3>Section 4</h3>
 +
  <div>
 +
    <p>
 +
    Cras dictum. Pellentesque habitant morbi tristique senectus et netus
 +
    et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
 +
    faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
 +
    mauris vel est.
 +
    </p>
 +
    <p>
 +
    Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
 +
    Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
 +
    inceptos himenaeos.
 +
     </p>
 +
  </div>
 +
</div>
</html>
</html>

Revision as of 13:08, 15 August 2013

jQuery UI Accordion - Default functionality

Section 1

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

Section 2

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.

Section 3

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.

  • List item one
  • List item two
  • List item three

Section 4

Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.

Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.