Created
June 10, 2012 13:19
-
-
Save aaronhartland/2905556 to your computer and use it in GitHub Desktop.
Code for example grid - Playing with Skeleton
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
<!-- 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