Difference between revisions of "Team:Lethbridge HS"
Line 28: | Line 28: | ||
setCookie("projectType", "2", 365); | setCookie("projectType", "2", 365); | ||
} | } | ||
− | + | jQuery(document).ready(function() { | |
− | + | jQuery(function() { | |
− | + | jQuery('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | ||
− | var target = | + | var target = jQuery(this.hash); |
− | target = target.length ? target : | + | target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']'); |
if (target.length) { | if (target.length) { | ||
− | + | jQuery('html,body').animate({ | |
scrollTop: target.offset().top | scrollTop: target.offset().top | ||
}, 1000); | }, 1000); | ||
Line 45: | Line 45: | ||
}); | }); | ||
− | + | jQuery("#projectTitle").addClass("appear"); | |
− | var s = | + | var s = jQuery(".menu"); |
var pos = s.position(); | var pos = s.position(); | ||
− | + | jQuery(window).scroll(function() { | |
− | var windowpos = | + | var windowpos = jQuery(window).scrollTop(); |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}); | }); |
Revision as of 23:12, 3 September 2015