Created
October 2, 2014 19:05
-
-
Save jhanstra/d982832630360352bc1d to your computer and use it in GitHub Desktop.
Beta Sidebar in uPortal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="beta-sidebar"><p>You are using a <b>beta version</b> of MyUW.<br /><a href="/portal/Login?profile=default">Take me to classic view.</a></p> | |
</div> | |
<script> | |
up.jQuery(document).ready(function() { | |
up.jQuery(window).scroll(function() { | |
if (up.jQuery(window).scrollTop() + up.jQuery(window).height() > up.jQuery(document).height()-125) { up.jQuery('.beta-sidebar').hide();} | |
if (up.jQuery(window).scrollTop() + up.jQuery(window).height() < up.jQuery(document).height()-125) { up.jQuery('.beta-sidebar').show(); } | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment