Skip to content

Instantly share code, notes, and snippets.

@sertalpbilal
Created November 9, 2020 16:33
Show Gist options
  • Save sertalpbilal/aef8ce15f52c3076926f8822e2439d26 to your computer and use it in GitHub Desktop.
Save sertalpbilal/aef8ce15f52c3076926f8822e2439d26 to your computer and use it in GitHub Desktop.
INFORMS 2020 Styler
.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;
}
$(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");
}
});
@sertalpbilal
Copy link
Author

sertalpbilal commented Nov 9, 2020

Here is a simple Styler Beta extension (for Chrome) script that will give you some extra space and help you organize items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment