Team:UNIK Copenhagen/js/main.js

From 2014.igem.org

(Difference between revisions)
 
Line 6: Line 6:
$('#bodyContent>p:first').hide();
$('#bodyContent>p:first').hide();
// $('#top-section').remove();
// $('#top-section').remove();
-
// document.styleSheets[0].disabled=true;
+
document.styleSheets[0].disabled=true;
$(window).scroll(function() {
$(window).scroll(function() {

Latest revision as of 16:57, 10 July 2014


$(document).ready(function () { $('.left-menu').find('li:last').remove(); $('#bodyContent>p:first').hide(); // $('#top-section').remove(); document.styleSheets[0].disabled=true;

$(window).scroll(function() { if ($(".navbar").offset().top > 50) { $(".navbar-fixed-top").addClass("top-nav-collapse"); } else { $(".navbar-fixed-top").removeClass("top-nav-collapse"); } });

//jQuery for page scrolling feature - requires jQuery Easing plugin $(function() { $('.page-scroll a').bind('click', function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: $($anchor.attr('href')).offset().top }, 1500, 'easeInOutExpo'); event.preventDefault(); }); });

});