Difference between revisions of "Team:Georgia State/notebook"

Line 68: Line 68:
 
<script type="text/javascript" src="https://2018.igem.org/Template:Georgia_State/JS/Modernizr?
 
<script type="text/javascript" src="https://2018.igem.org/Template:Georgia_State/JS/Modernizr?
 
action=raw&ctype=text/javascript"></script>
 
action=raw&ctype=text/javascript"></script>
 +
 +
<meta name="viewport" content="width=device-width, initial-scale=1">
 +
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
 +
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
 +
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
 
    </head>
 
    </head>
  
Line 109: Line 114:
 
</div>
 
</div>
 
</nav>
 
</nav>
 +
 +
<div class="container">
 +
  <h2>Accordion Example</h2>
 +
  <p><strong>Note:</strong> The <strong>data-parent</strong> attribute makes sure that all collapsible elements under the specified parent will be closed when one of the collapsible item is shown.</p>
 +
  <div class="panel-group" id="accordion">
 +
    <div class="panel panel-default">
 +
      <div class="panel-heading">
 +
        <h4 class="panel-title">
 +
          <a data-toggle="collapse" data-parent="#accordion" href="#collapse1">Collapsible Group 1</a>
 +
        </h4>
 +
      </div>
 +
      <div id="collapse1" class="panel-collapse collapse in">
 +
        <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit,
 +
        sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
 +
        quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>
 +
      </div>
 +
    </div>
 +
    <div class="panel panel-default">
 +
      <div class="panel-heading">
 +
        <h4 class="panel-title">
 +
          <a data-toggle="collapse" data-parent="#accordion" href="#collapse2">Collapsible Group 2</a>
 +
        </h4>
 +
      </div>
 +
      <div id="collapse2" class="panel-collapse collapse">
 +
        <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit,
 +
        sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
 +
        quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>
 +
      </div>
 +
    </div>
 +
    <div class="panel panel-default">
 +
      <div class="panel-heading">
 +
        <h4 class="panel-title">
 +
          <a data-toggle="collapse" data-parent="#accordion" href="#collapse3">Collapsible Group 3</a>
 +
        </h4>
 +
      </div>
 +
      <div id="collapse3" class="panel-collapse collapse">
 +
        <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit,
 +
        sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
 +
        quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>
 +
      </div>
 +
    </div>
 +
  </div>
 +
</div>
 +
 
</body>
 
</body>

Revision as of 18:25, 1 August 2018

Accordion Example

Note: The data-parent attribute makes sure that all collapsible elements under the specified parent will be closed when one of the collapsible item is shown.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.