Changes between Version 1 and Version 2 of ZooWebSite/2015/Scripts/ZOO-Project/ZOO Identity


Ignore:
Timestamp:
Jun 18, 2015, 10:16:10 AM (10 years ago)
Author:
nickboz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooWebSite/2015/Scripts/ZOO-Project/ZOO Identity

    v1 v2  
    33<script src="/js/bootstrap.js"></script>
    44<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
     34$('.navbar-lower').affix({
     35  offset: {top: 60}
     36});     
     37
     38$(document).ready(function() {
     39    $("div.bhoechie-tab-menu>div.list-group>a").click(function(e) {
     40        e.preventDefault();
     41        $(this).siblings('a.active').removeClass("active");
     42        $(this).addClass("active");
     43        var index = $(this).index();
     44        $("div.bhoechie-tab>div.bhoechie-tab-content").removeClass("active");
     45        $("div.bhoechie-tab>div.bhoechie-tab-content").eq(index).addClass("active");
     46    });
     47});
     48</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