Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanbuchanan committed May 10, 2016
1 parent 00c79da commit e5d41ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions thumbnail-link.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<!--
Point image thumbnail to another page
Paste into your "body" field
Place link in images' description
-->
<script>

/* Point image thumbnail to another link */
$(document).ready(function() {
$('.grid a, .tile a').each(function() {
$('.grid a, .tile a, .block a').each(function() {
var description = $(this).find('.description').text().trim();
if (description.match(/^\s*http:\/\/(.*)$/)) {
$(this).addClass('custom').attr('href', description);
}
});
});

</script>
File renamed without changes.
File renamed without changes.

0 comments on commit e5d41ae

Please sign in to comment.