astro-soton / astroweb

Developing the Southampton astronomy department website
1 stars 6 forks source link

Fix Scrolling and Universal Headers #4

Closed chrisfrohmaier closed 8 years ago

chrisfrohmaier commented 8 years ago

I've fixed issue #3 by commenting out the overflow statement in the css as per the internet's suggestion.

I've also created a universal header file called header.html, if you want to modify the headers please edit this file. Then use the javascript command:

<script src="js/jquery.1.11.1.js"></script>
<script>
$(function(){
  $("#header").load("header.html");
});
</script>
<script>
$(document).ready(function() {
    $('body').hide();
    $(window).load(function(){
        $('body').show();
    });
});
</script>
<title>Home | Soton Astro</title>
<div id="header"></div>

At the start of each page to use this universal header. Obviously change <title>Home | Soton Astro</title> to the actual title of the page.