Giter Site home page Giter Site logo

astroweb's Introduction

astroweb

Developing the Southampton astronomy department website.

### Contributing

Ideally, fork the repository and clone that forked repository to your desktop. When you're ready to submit your code for use, click on Pull Requests->New Pull Request.

You can also submit straight to the repo if you're an owner, or just download the zipped up files.

css information

Most of the relevant css code is found in css/style.css. This is where most of the section ids and classes are defined.

  • #header defines the banner across the top
  • #about defines the style for the main "about us" section on the front page
  • #news_and_tweets defines the style for the section covering the twitter panel and latest news
  • #counter and the associated classes defines the four panel counters for H-index, coffee machine etc. I haven't been able to get the animation working yet
  • The "testimonial" section describes the "Selected Publications" portion of the home page
  • #team section has a load of currently unused classes that can be used to create an icon for a staff member or student

There are also the usual bunch of headers (h1 etc).

The navbars and footers are all contained within css/bootstrap.css. I don't know what most of that file is.

css/animate.css contains a lot of css code ripped from Poshak's template. Again, I haven't got it to work but it should be used to get animations of the counters and slider working.

css/slit_slider.css contains some css for the original slider Poshak had on the site. I can't get this to work yet, so have a go.

Adding Headers

The method of loading the header through javascript (see below) will no longer be used as it compromises the load times of the document. Therefore can you copy the header/html file content into each of the pages please.

Please us the header.html file to change the header/banner. This is a universal template so at the start of new pages use this javascript I have written to implement the header:

<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>

astroweb's People

Contributors

jhmatthews avatar chrisfrohmaier avatar

Watchers

James Cloos avatar David Williamson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.