Team:Edinburgh/tech/Navbox

From 2011.igem.org

(Difference between revisions)
Line 6: Line 6:
<![endif]-->
<![endif]-->
<script type="text/javascript" src="/Team:Edinburgh/tech/js?action=raw&amp;ctype=text/javascript"></script>
<script type="text/javascript" src="/Team:Edinburgh/tech/js?action=raw&amp;ctype=text/javascript"></script>
-
<script type="text/javascript" language="javascript">
 
-
$(document).ready(function(){
 
-
  // Reset Font Size
 
-
  var originalFontSize = $('.main_body').css('font-size');
 
-
  $(".resetFont").click(function(){
 
-
  $('html').css('font-size', originalFontSize);
 
-
  });
 
-
  // Increase Font Size
 
-
  $(".increaseFont").click(function(){
 
-
  var currentFontSize = $('.main_body').css('font-size');
 
-
var currentFontSizeNum = parseFloat(currentFontSize, 10);
 
-
    var newFontSize = currentFontSizeNum*1.2;
 
-
$('html').css('font-size', newFontSize);
 
-
return false;
 
-
  });
 
-
  // Decrease Font Size
 
-
  $(".decreaseFont").click(function(){
 
-
  var currentFontSize = $('.main_body').css('font-size');
 
-
var currentFontSizeNum = parseFloat(currentFontSize, 10);
 
-
    var newFontSize = currentFontSizeNum*0.8;
 
-
$('html').css('font-size', newFontSize);
 
-
return false;
 
-
  });
 
-
});
 
-
</script>
 
<div class="tops">
<div class="tops">
<a href="/Team:Edinburgh"><div class="logo">
<a href="/Team:Edinburgh"><div class="logo">

Revision as of 16:38, 21 September 2011