Team:Central Calgary/Template:CentraliGEM/Javascript

// JavaScript Document

//Make the header follow the screen

$(document).ready(function() {

//THE FOOTER FONT SIZE INITIAL SET! var x = $(window).width(); $("#footerText").css("font-size", x/70); $("#footerTop").css("height", x/25);

});

//THE STICKHY HEADER


//The resize based on the width of the browser! $(window).resize(function() {

var x = $(this).width();

 if (x < 811) {
   $("#menuImage").fadeOut("fast");
 } else {
   $("#menuImage").show();
   }

if (x < 760) {

   $("#menuText").css();
 } else {
   $("#menuImage").show();
   }

$("#footerText").css("font-size", x/70); $("#footerTop").css("height", x/25);

});