Team:Penn/Notebook2
From 2012.igem.org
Line 7: | Line 7: | ||
<link rel="stylesheet" href='/Team:Penn/css/igemsubcss?action=raw&ctype=text/css' /> | <link rel="stylesheet" href='/Team:Penn/css/igemsubcss?action=raw&ctype=text/css' /> | ||
<link rel="stylesheet" href='/Team:Penn/css/accordion?action=raw&ctype=text/css' /> | <link rel="stylesheet" href='/Team:Penn/css/accordion?action=raw&ctype=text/css' /> | ||
- | + | <script src='http://www.switchroyale.com/vallenato/js/jquery-1.5.min.js>action=raw&ctype=text/javascript' type="text/javascript" charset="utf-8"></script> | |
+ | |||
+ | <script src='http://www.switchroyale.com/vallenato/vallenato/vallenato.js?action=raw&ctype=text/javascript' type="text/javascript" charset="utf-8"></script> | ||
+ | |||
+ | <link rel="stylesheet" href='http://www.switchroyale.com/vallenato/css/style.css?action=raw&ctype=text/css' type="text/css" media="screen" charset="utf-8"> | ||
+ | |||
+ | <link rel="stylesheet" href='http://www.switchroyale.com/vallenato/vallenato/vallenato.css?action=raw&ctype=text/css' type="text/css" media="screen" charset="utf-8"> | ||
<title>Penn 2012 iGEM Wiki</title> | <title>Penn 2012 iGEM Wiki</title> | ||
Line 14: | Line 20: | ||
<body> | <body> | ||
- | <div | + | <div id="accordion-container"> |
- | <a href=" | + | <h2 class="accordion-header">What is it?</h2> |
- | < | + | |
- | </div> | + | <div class="accordion-content"> |
+ | <p class="first-p">Vallenato is a super simple jQuery based accordion script. There are plenty of other great accordion scripts out there to choose from, so why use Vallenato? Well, it's easy to implement, looks good, is flexible, and of course...it's free. This page is an example of Vallenato in action!</p> | ||
+ | |||
+ | <div id="tweet"> | ||
+ | <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="switchroyale">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> | ||
+ | </div> | ||
+ | |||
+ | <div id="like"> | ||
+ | <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.switchroyale.com/vallenato" layout="button_count" show_faces="false" width="450" font="verdana"></fb:like> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <h2 class="accordion-header">Download</h2> | ||
+ | |||
+ | <div class="accordion-content"> | ||
+ | <p class="first-p">Download the Vallenato script here:</p> | ||
+ | |||
+ | <p class="last-p"><a href="vallenato.zip">Vallenato</a></p> | ||
+ | </div> | ||
+ | |||
+ | <h2 class="accordion-header">Installation</h2> | ||
+ | |||
+ | <div class="accordion-content"> | ||
+ | <p class="first-p">First, unzip the "vallenato.zip" file and place the "vallenato" folder in the same directory as the html file(s) that will be using the script. If placed in a different folder, you will need to update the paths below.</p> | ||
+ | |||
+ | <p>In the <head> section of your html you will need to link to jQuery, the Vallenato script and stylesheet. You can use the following code:</p> | ||
+ | |||
+ | <div class="code"> | ||
+ | <code> | ||
+ | <p class="first-p"><script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script></p> | ||
- | < | + | <p><script src="vallenato/vallenato.js" type="text/javascript"></script></p> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | <p class="last-p"><link rel="stylesheet" href="vallenato/vallenato.css" type="text/css" media="screen"></p> | |
- | + | </code> | |
- | < | + | </div> |
- | + | </div> | |
- | < | + | |
+ | <h2 class="accordion-header">Mark Up</h2> | ||
+ | |||
+ | <div class="accordion-content"> | ||
+ | <p class="first-p">Mark up is simple and straight forward, just use the following code as a template:</p> | ||
- | + | <div class="code"> | |
- | < | + | <code> |
- | + | <p class="first-p last-p"><div id="accordion-container"> | |
- | + | <br> <h2 class="accordion-header">Section 1</h2> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | <br> <div class="accordion-content"> |
+ | <br> <p>Section 1 Content</p> | ||
+ | <br> </div> | ||
- | < | + | <br> <h2 class="accordion-header">Section 2</h2> |
- | + | <br> <div class="accordion-content"> | |
- | + | <br> <p>Section 2 Content</p> | |
- | + | <br> </div> | |
- | + | <br></div></p> | |
- | + | </code> | |
- | + | </div> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | </ | + | |
- | </ | + | |
- | + | ||
</div> | </div> | ||
</div> | </div> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Revision as of 09:57, 15 September 2012
What is it?
Vallenato is a super simple jQuery based accordion script. There are plenty of other great accordion scripts out there to choose from, so why use Vallenato? Well, it's easy to implement, looks good, is flexible, and of course...it's free. This page is an example of Vallenato in action!
Download
Download the Vallenato script here:
Installation
First, unzip the "vallenato.zip" file and place the "vallenato" folder in the same directory as the html file(s) that will be using the script. If placed in a different folder, you will need to update the paths below.
In the <head> section of your html you will need to link to jQuery, the Vallenato script and stylesheet. You can use the following code:
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script src="vallenato/vallenato.js" type="text/javascript"></script>
<link rel="stylesheet" href="vallenato/vallenato.css" type="text/css" media="screen">
Mark Up
Mark up is simple and straight forward, just use the following code as a template:
<div id="accordion-container">
<h2 class="accordion-header">Section 1</h2>
<div class="accordion-content">
<p>Section 1 Content</p>
</div>
<h2 class="accordion-header">Section 2</h2>
<div class="accordion-content">
<p>Section 2 Content</p>
</div>
</div>