Created
November 9, 2020 16:33
-
-
Save sertalpbilal/aef8ce15f52c3076926f8822e2439d26 to your computer and use it in GitHub Desktop.
INFORMS 2020 Styler
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
.header { | |
max-height: 0px; | |
visibility: hidden; | |
} | |
.fixed-title { | |
position: fixed; | |
display: block; | |
top: 50px; | |
max-width: 720px; | |
} | |
.fixed-video { | |
position: fixed; | |
display: block; | |
top: 310px; | |
width: 720px; | |
} |
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
$(window).scroll(function(e) { | |
if (window.scrollY > 210) { | |
debugger; | |
$(".playlist-page-layout > div:first-child").addClass("fixed-title"); | |
$(".playlist-page-layout:first > .content:first").addClass("fixed-video"); | |
} | |
else { | |
$(".playlist-page-layout div:first-child").removeClass("fixed-title"); | |
$(".playlist-page-layout:first > .content:first").removeClass("fixed-video"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a simple Styler Beta extension (for Chrome) script that will give you some extra space and help you organize items.