Skip to content

Instantly share code, notes, and snippets.

@mattparmett
Created October 11, 2012 23:46
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 mattparmett/3876451 to your computer and use it in GitHub Desktop.
Save mattparmett/3876451 to your computer and use it in GitHub Desktop.
Show/Hide WQL descriptions
<!-- jquery -->
<script type="text/javascript" src="./WQL_files/jquery-1.8.2.min.js"></script>
<!-- jquery code to show description on hover -->
<script type="text/javascript">
//Assumes descriptions are in divs with class = cell contents
$(td).hover(
function () {
//Get the cell name, so we can make the right description visible
var descName = $(this).text()
$('div.' + descName).visibility='visible';
},
function () {
var descName = $(this).text()
$('div.' + descName).visibility='hidden';
}
);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment