Skip to content

Instantly share code, notes, and snippets.

@aaronhartland
Created June 10, 2012 13:19
Show Gist options
  • Save aaronhartland/2905556 to your computer and use it in GitHub Desktop.
Save aaronhartland/2905556 to your computer and use it in GitHub Desktop.
Code for example grid - Playing with Skeleton
<!-- JS for the example grid -->
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script>
$('.hidden-code').click(function(e) {
e.preventDefault();
$(this).children('.gist').slideToggle();
})
var originalText;
$('.example-grid').children().hover(
function() {
originalText = $(this).text();
$(this).html($(this).width()+'px');
},
function() {
$(this).html(originalText);
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment