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

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
m
Line 139: Line 139:
.replace(/auto/, 0));
.replace(/auto/, 0));
var nav = $('#tocScrol');
var nav = $('#tocScrol');
-
var stopper = $('#tocScrolWrapper');
 
-
var maxTop = stopper.offset().top - stopper.height();
 
-
var indexing = $('#indexing').offset().top
 
-
- nav.height() - top;
 
-
 
var max = $('#indexing').offset().top - nav.height();
var max = $('#indexing').offset().top - nav.height();
-
var butLock = $('#tocScrol').offset().top - nav.height();
 
$(window).scroll(function(event) {
$(window).scroll(function(event) {
Line 169: Line 163:
addPos('3 y: ' + y + " max:" + max);
addPos('3 y: ' + y + " max:" + max);
}
}
-
 
-
/*
 
-
// whether that's below the form
 
-
if (y <= maxTop) {
 
-
if (y >= top) {
 
-
// if so, ad the fixed class
 
-
nav.addClass('fixed');
 
-
nav.removeAttr('style');
 
-
} else {
 
-
nav.removeClass('fixed');
 
-
nav.removeAttr('style');
 
-
}
 
-
} else if (y >= maxTop) {
 
-
nav.removeClass('fixed');
 
-
nav.css({
 
-
position : 'absolute',
 
-
top : indexing
 
-
});
 
-
} else {
 
-
// otherwise remove it
 
-
nav.removeClass('fixed');
 
-
nav.removeAttr('style');
 
-
}
 
-
*/
 
});
});
});
});
function addPos($msg) {
function addPos($msg) {
-
$('#editPageTxt').empty().append($msg);
+
//$('#editPageTxt').empty().append($msg);
}
}
</script>
</script>

Revision as of 12:25, 24 October 2013