Changes between Initial Version and Version 1 of ZooWebSite/2015/Scripts/Code/Download


Ignore:
Timestamp:
Jul 25, 2015, 10:44:20 AM (9 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooWebSite/2015/Scripts/Code/Download

    v1 v1  
     1<link href="/css/prism.css" rel="stylesheet">
     2<script src="/js/jquery-1.10.2.js"></script>
     3<script src="/js/bootstrap.js"></script>
     4<script src="/js/prism.js"></script>
     5<script>
     6$(function(){
     7var shrinkHeader = 80;
     8$(window).scroll(function() {
     9        var scroll = getCurrentScroll();
     10        if ( scroll >= shrinkHeader ) {
     11                $('.navbar-brand').addClass('navbar-shrink');
     12                $('.navbar-inverse').addClass('navbar-colored');
     13                $('.navbar-nav').css({"margin":"0 0 0 15px"});
     14                $(".sun").show();
     15        $('.navbar-lower').addClass('navbarlower-colored');
     16       
     17        }
     18        else{
     19                $('.navbar-brand').removeClass('navbar-shrink');
     20                $('.navbar-inverse').removeClass('navbar-colored');
     21                $('.navbar-nav').css({"margin":"25px 0 0 25px"});
     22                $(".sun").hide();
     23                $('.navbar-lower').removeClass('navbarlower-colored');
     24       
     25        }
     26});
     27function getCurrentScroll() {
     28        return window.pageYOffset;
     29        }
     30});
     31
     32
     33$('.navbar-lower').affix({
     34  offset: {top: 60}
     35});     
     36
     37</script>

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png