Last active
August 29, 2015 14:18
-
-
Save lmorillas/70ceaa45cafb98c0efbc to your computer and use it in GitHub Desktop.
Show / hide a block at an exhibit view
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
<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