Last active
January 13, 2016 01:02
-
-
Save jsoningram/926d3257a62dca2eaf42 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(function ($) { | |
$(document).ready(function(){ | |
$('.secondary-link').each(function() { | |
var link = $(this).data('href'), | |
anchor = $(this).data('title'); | |
$(this).attr( 'title', anchor ); | |
$(this).css( 'cursor', 'pointer' ); | |
$(this).click(function() { | |
window.location = link; | |
}); | |
}); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment