Difference between revisions of "Template:UNSW Australia/Basics"

Line 108: Line 108:
 
jQuery(window).scroll(function() {
 
jQuery(window).scroll(function() {
 
if (jQuery(this).scrollTop() > offset) {
 
if (jQuery(this).scrollTop() > offset) {
jQuery(‘.back-to-top’).fadeIn(duration);
+
jQuery(‘.top’).fadeIn(duration);
 
} else {
 
} else {
jQuery(‘.back-to-top’).fadeOut(duration);
+
jQuery(‘.top’).fadeOut(duration);
 
}
 
}
 
});
 
});

Revision as of 05:16, 14 October 2018