Team:ETH Zurich/Templates/TestHeader

From 2012.igem.org

(Difference between revisions)
Line 158: Line 158:
#eth_footer {
#eth_footer {
-
 
}
}
 +
 +
#eth_references li { display: none;}
</style>
</style>
Line 194: Line 195:
   else
   else
       $('#eth_nav > ul > li:last').hide(); // Hide last menu entry
       $('#eth_nav > ul > li:last').hide(); // Hide last menu entry
 +
 +
  // Prepare references
 +
  $('#eth_references li').each(function (index, domEle) {
 +
    $(this).prepend('<a name="'+$(this).attr('id')+'"></a>');
 +
    });
 +
 +
  $('.eth_reference').each(function (index, domEle) {
 +
    var refId = $(this).text().replace('[', '').replace(']', '');
 +
    $(this).html('<a href="#'+refId+'">['+refId+']</a>');
 +
    $("#"+refId).show();
 +
    });
 +
});
});

Revision as of 19:04, 24 September 2012

Eth page header.png