Team:Hong Kong HKUST/notebook
From 2013.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | <html> | + | <html> |
- | < | + | <head> |
- | + | <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> | |
- | + | <style type="text/css">#left_nav { | |
- | + | width:250px; | |
- | + | } | |
+ | #body { | ||
+ | width:90%; | ||
+ | float:left; | ||
+ | margin:10px; | ||
+ | } | ||
+ | .accordion { | ||
+ | margin: 0; | ||
+ | padding:10px; | ||
+ | height:20px; | ||
+ | border-top:#f0f0f0 1px solid; | ||
+ | background: #cccccc; | ||
+ | font-family: Arial, Helvetica, sans-serif; | ||
+ | text-decoration:none; | ||
+ | text-transform:uppercase; | ||
+ | color: #000; | ||
+ | font-size:1em; | ||
+ | } | ||
+ | .accordion-open { | ||
+ | background:#000; | ||
+ | color: #fff; | ||
+ | } | ||
+ | .accordion-open span { | ||
+ | display:block; | ||
+ | float:right; | ||
+ | padding:10px; | ||
+ | } | ||
+ | .accordion-open span { | ||
+ | background:url(../images/minus.png) center center no-repeat; | ||
+ | } | ||
+ | .accordion-close span { | ||
+ | display:block; | ||
+ | float:right; | ||
+ | background:url(../images/plus.png) center center no-repeat; | ||
+ | padding:10px; | ||
+ | } | ||
+ | div.container { | ||
+ | padding:0; | ||
+ | margin:0; | ||
+ | } | ||
+ | div.content { | ||
+ | background:#f0f0f0; | ||
+ | margin: 0; | ||
+ | padding:10px; | ||
+ | font-size:.9em; | ||
+ | line-height:1.5em; | ||
+ | font-family:"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; | ||
+ | } | ||
+ | div.content ul, div.content p { | ||
+ | padding:0; | ||
+ | margin:0; | ||
+ | padding:3px; | ||
+ | } | ||
+ | div.content ul li { | ||
+ | list-style-position:inside; | ||
+ | line-height:25px; | ||
+ | } | ||
+ | div.content ul li a { | ||
+ | color:#555555; | ||
+ | } | ||
+ | code { | ||
+ | overflow:auto; | ||
+ | } | ||
+ | </style> | ||
</head> | </head> | ||
<body> | <body> | ||
- | + | <div class="accordion" id="section1">Heading<span></span></div> | |
- | <div | + | <div class="container"> |
- | + | <div class="content"> | |
- | + | <div>Sample Content</div> | |
- | < | + | <p>Content here....</p> |
- | + | </div> | |
- | + | </div> | |
- | + | <div class="accordion" id="section2">Heading<span></span></div> | |
- | + | <div class="container"> | |
- | + | <div class="content"> | |
- | + | <div>Sample Content</div> | |
- | + | <p>Content here....</p> | |
- | + | </div> | |
- | + | </div> | |
- | + | <div class="accordion" id="section3">Heading<span></span></div> | |
- | + | <div class="container"> | |
- | + | <div class="content"> | |
- | + | <div>Sample Content</div> | |
- | + | <p>Content here....</p> | |
- | + | </div> | |
- | + | </div> | |
- | + | </body> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | </ | + | |
</html> | </html> |
Revision as of 11:43, 15 August 2013
Heading
Sample Content
Content here....
Heading
Sample Content
Content here....
Heading
Sample Content
Content here....