Changes between Version 1 and Version 2 of ZooWebSite/2015/Footer
- Timestamp:
- Jan 6, 2015, 3:29:47 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWebSite/2015/Footer
v1 v2 65 65 <!-- /container --> 66 66 67 <script src="js/jquery-1.10.2.js"></script>68 <script src="js/bootstrap.js"></script>69 </body>70 <script>71 $(function(){72 var shrinkHeader = 80;73 $(window).scroll(function() {74 var scroll = getCurrentScroll();75 if ( scroll >= shrinkHeader ) {76 $('.navbar-brand').addClass('navbar-shrink');77 $('.navbar-inverse').addClass('navbar-colored');78 $('.navbar-nav').css({"margin":"0 0 0 15px"});79 $(".sun").show();80 $('.navbar-lower').addClass('navbarlower-colored');81 }82 else{83 $('.navbar-brand').removeClass('navbar-shrink');84 $('.navbar-inverse').removeClass('navbar-colored');85 $('.navbar-nav').css({"margin":"25px 0 0 25px"});86 $(".sun").hide();87 $('.navbar-lower').removeClass('navbarlower-colored');88 }89 });90 function getCurrentScroll() {91 return window.pageYOffset;92 }93 });94 67 95 $('.navbar-lower').affix({96 offset: {top: 60}97 });98 99 $(window).load(function(){100 $( ".ct" ).animate({101 opacity: 1,102 }, 5000, function() {103 $(".bird").show();104 birdSound.play();105 });106 var birdSound = document.getElementById('birdsound');107 var birdTxt=document.getElementById('birdc');108 birdTxt.onmouseover=function(){109 birdSound.play();110 return false;111 };112 113 africa=document.getElementById("africasound");114 africa.volume=0.3;115 116 $('.a-btn-2, .tx').hover(function(){117 $('.cblock').toggleClass('furhover')118 })119 });120 </script>121 68 </html>