Skip to content

Instantly share code, notes, and snippets.

@lmorillas
Last active August 29, 2015 14:18
Show Gist options
  • Save lmorillas/70ceaa45cafb98c0efbc to your computer and use it in GitHub Desktop.
Save lmorillas/70ceaa45cafb98c0efbc to your computer and use it in GitHub Desktop.
Show / hide a block at an exhibit view
<script>
$(document).bind("onAfterViewPanelSwitch.exhibit", function(event, i) {
$("#st").hide(); // divs you want to hide: summary timeline
$("#sm").hide(); // id for summary map
switch (i) {
case 1:
$("#st").show(); // id of the second view
break;
case 2:
$("#sm").show(); // id of the third view
break;
};
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment