Blog/static/Blog/JS/scripts.js
// FLOAT MESSAGE BASED ON SCROLL POSITION
FLOAT MESSAGE BASED ON SCROLL POSITION
FLOAT MESSAGE BASED ON SCROLL POSITION
function floatMessage() {
	if ($(".alert").length) {
		if ($(".alert").offset().top == window.pageYOffset + parseFloat($(".alert").css("top"))) {
			$(".alert").addClass("floating");
		} else {
			$(".alert").removeClass("floating");
		}
	}
}
function floatMessage ( ) { if ( $ ( ".alert" ) . length ) { if ( $ ( ".alert" ) . offset ( ) . top == window . pageYOffset + parseFloat ( $ ( ".alert" ) . css ( "top" ) ) ) { $ ( ".alert" ) . addClass ( "floating" ) ; } else { $ ( ".alert" ) . removeClass ( "floating" ) ; } } }
FLOAT MESSAGE BASED ON SCROLL POSITION
FLOAT MESSAGE BASED ON SCROLL POSITION