Skip to content

Instantly share code, notes, and snippets.

@MKorostoff
Created July 14, 2015 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MKorostoff/cefdec3ea324cccfbc49 to your computer and use it in GitHub Desktop.
Save MKorostoff/cefdec3ea324cccfbc49 to your computer and use it in GitHub Desktop.
//Hide all schedule items by default
div.schedule-item {
display: none;
}
//After javascript has had a chance to act, reveal the schedule items
body.timezone-est div.schedule-item {
display: block;
}
//This CSS rule applies in the same instant as the previous CSS rule, so as soon
//as javascript completes, only the unrestricted schedule items are revealed
body.timezone-est div.schedule-item.restricted-timezone-est {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment