Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//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
You can’t perform that action at this time.