Template:MIT-results

From 2012.igem.org

(Difference between revisions)
(Replaced content with "DEPRECATED. DO NOT USE OR EDIT. If a page uses this template, relink with MIT-results2.")
 
Line 1: Line 1:
-
{{MIT-style}}
+
DEPRECATEDDO NOT USE OR EDITIf a page uses this template, relink with MIT-results2.
-
{{MIT-header2}}
+
-
<html>
+
-
<head>
+
-
 
+
-
  <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
+
-
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
+
-
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
+
-
 
+
-
 
+
-
<!-- TODO: add pre/n buttons -->
+
-
<script>
+
-
function direct_link_to_page()
+
-
{
+
-
    var hash = window.location.hash;
+
-
    if (hash != "")
+
-
    {
+
-
        //alert($('.section').index($(hash)));
+
-
        //$('#accordion').accordion('activate', $('.section').index($(hash)));
+
-
        //var id = hash.substring(1, hash.length - 3);
+
-
        //alert(id);
+
-
        //alert($('#col_nav').innerHTML);
+
-
        //var name = $(this).attr('id');
+
-
        $(hash).scrollTop()
+
-
    }
+
-
}
+
-
$(document).ready(function(){
+
-
  $('#nav_results a').first().css('background-color','#333333');
+
-
  $('.col_list li').css('cursor','pointer');
+
-
  $('.col_list li').hover(function() {
+
-
  $(this).css('background-color','#a3abae');
+
-
  }, function() {
+
-
  $(this).css('background-color','#ffffff');
+
-
  });
+
-
 
+
-
$("#accordion").accordion({autoHeight:false});
+
-
 
+
-
  $('.col_list li').click(function () {
+
-
  var name = $(this).attr('id');
+
-
  window.location.href=name;
+
-
});
+
-
direct_link_to_page();
+
-
$('.section_page_link').click(function () {
+
-
    var url = $(this).attr('href');
+
-
    if (window.location.href.indexOf(url) == -1) {
+
-
        window.location.href=$(this).attr('href');
+
-
    }
+
-
});
+
-
 
+
-
 
+
-
});
+
-
 
+
-
 
+
-
//Scrollbar moving stuff
+
-
$(function() {
+
-
 
+
-
var $sidebar  = $("#col_nav"),
+
-
offset    = $sidebar.offset(),
+
-
topPadding = 0,
+
-
$window = $(window);
+
-
 
+
-
 
+
-
$window.scroll(function() {
+
-
if ($window.scrollTop() > offset.top - topPadding) {
+
-
  $sidebar.css({'margin-top': $window.scrollTop() - offset.top + topPadding})
+
-
} else {
+
-
  $sidebar.css({'margin-top': 0})
+
-
}
+
-
});
+
-
//Moving the menu down the screen, if we jump to the middle of the page.
+
-
$(window).scroll();
+
-
 
+
-
/*
+
-
$window.scroll(function() {
+
-
if ($window.scrollTop() > offset.top - topPadding) {
+
-
  $sidebar.stop().animate({
+
-
  marginTop: $window.scrollTop() - offset.top + topPadding,
+
-
  }, 200);
+
-
} else {
+
-
  $sidebar.stop().animate({
+
-
  marginTop: 0
+
-
  }, 200);
+
-
}
+
-
});
+
-
*/
+
-
});
+
-
 
+
-
</script>
+
-
</head>
+
-
 
+
-
<body>
+
-
 
+
-
 
+
-
<div id="col_nav">
+
-
    <div id="accordion">
+
-
 
+
-
<h3><a href="http://2012.igem.org/Team:MIT/ResultsOverview" class="section_page_link">Overview</a></h3> <!-- Accordion index 0 -->
+
-
<div class="col_list">
+
-
<ul>
+
-
    <li id="http://2012.igem.org/Team:MIT/ResultsOverview">Results Overview</li>
+
-
</ul>
+
-
    </div><!-- end overview -->
+
-
 
+
-
<h3><a href="http://2012.igem.org/Team:MIT/ResultsFoundational" class="section_page_link">Foundational</a></h3> <!-- Accordion index 1 -->
+
-
<div class="col_list">
+
-
<ul>
+
-
    <li id="http://2012.igem.org/Team:MIT/ResultsFoundational#designbio">Design</li>
+
-
    <li id="http://2012.igem.org/Team:MIT/ResultsFoundational#NADbio">Nucleic Acid Delivery</li>
+
-
            <li id="http://2012.igem.org/Team:MIT/ResultsFoundational#SDbio">Experimental Strand Displacement </li>
+
-
+
-
+
-
 
+
-
</ul>
+
-
    </div><!-- end foundational -->
+
-
 
+
-
<h3><a href="http://2012.igem.org/Team:MIT/ResultsSensing" class="section_page_link">Sensing</a></h3> <!-- Accordion index 2 -->
+
-
+
-
      <div class="col_list">
+
-
          <ul>
+
-
            <li id="http://2012.igem.org/Team:MIT/ResultsSensing#sensing1bio">Design</li>
+
-
            <li id="http://2012.igem.org/Team:MIT/ResultsSensing#sensing2bio">Modeling</li>
+
-
            <li id="http://2012.igem.org/Team:MIT/ResultsSensing#sensing3bio"><em>In vitro</em> results</li>
+
-
          </ul>
+
-
        </div><!-- end sensing-->
+
-
 
+
-
<h3><a href="http://2012.igem.org/Team:MIT/ResultsProcessing" class="section_page_link">Processing</a></h3> <!-- Accordion index 3 -->
+
-
+
-
      <div class="col_list">
+
-
          <ul>
+
-
            <li id="http://2012.igem.org/Team:MIT/ResultsProcessing#NOTgate_designbio">NOT Gate Design</li>
+
-
            <li id="http://2012.igem.org/Team:MIT/ResultsProcessing#NOTgate_invitrobio">NOT Gate Results</li>
+
-
            <li id="http://2012.igem.org/Team:MIT/ResultsProcessing#HHs_productionbio">Circuit Production: Hammerhead Ribozymes</li>
+
-
          </ul>
+
-
        </div><!-- end processing-->
+
-
<h3><a href="http://2012.igem.org/Team:MIT/ResultsActuation" class="section_page_link">Actuation</a></h3> <!-- Accordion index 4 -->
+
-
+
-
      <div class="col_list">
+
-
          <ul>
+
-
            <li id="http://2012.igem.org/Team:MIT/ResultsActuation#m6bio"> FF1 Knockdown </li>
+
-
            <li id="http://2012.igem.org/Team:MIT/ResultsActuation#m40bio"> Decoys and TuDs</li>
+
-
 
+
-
          </ul>
+
-
        </div><!-- end actuation-->
+
-
 
+
-
<h3><a href="http://2012.igem.org/Team:MIT/ResultsBiobricks" class="section_page_link">Our Biobricks</a></h3> <!-- Accordion index 5 -->
+
-
<div class="col_list">
+
-
<ul>
+
-
    <li id="http://2012.igem.org/Team:MIT/ResultsBiobricks#b1bio">Favorites</li>
+
-
    <li id="http://2012.igem.org/Team:MIT/ResultsBiobricks#b2bio">All BioBricks</li>
+
-
</ul>
+
-
    </div><!-- end biobricks -->
+
-
 
+
-
<h3><a href="http://2012.igem.org/Team:MIT/ResultsAttributions" class="section_page_link">Attributions</a></h3> <!-- Accordion index 6 -->
+
-
<div class="col_list">
+
-
        <ul><li id="http://2012.igem.org/Team:MIT/ResultsAttributions#attributionsbio">Attributions</li></ul>
+
-
    </div><!-- end attributions -->
+
-
</div><!-- end accordion-->
+
-
 
+
-
</div><!--end col_nav-->
+

Latest revision as of 00:07, 27 October 2012

DEPRECATED. DO NOT USE OR EDIT. If a page uses this template, relink with MIT-results2.