Template:Biomod/2013/Aarhus/Nano Creators/Begin

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
Line 152: Line 152:
if (y > top) {
if (y > top) {
-
nav.addClass('fixed');
+
-
nav.removeAttr('style');
+
if (y >= max) {
-
addPos('1 y: ' + y + " max:" + max);
+
nav.removeClass('fixed');
-
} else if (y >= max) {
+
nav.css({
-
nav.removeClass('fixed');
+
position : 'absolute',
-
nav.css({
+
top : max
-
position : 'absolute',
+
addPos('2 y: ' + y + " max:" + max);
-
top : max
+
} else {
-
});
+
nav.addClass('fixed');
-
addPos('2 y: ' + y + " max:" + max);
+
nav.removeAttr('style');
 +
addPos('1 y: ' + y + " max:" + max);
 +
}
} else {
} else {
nav.removeClass('fixed');
nav.removeClass('fixed');

Revision as of 13:21, 24 October 2013