1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
(function($) { $(document).ready(function() { // Make each .media section clickable to reach ./<id>/ $('.media section').each(function(_, e) { e.onclick = function(e) { window.location = './' + e.target.id + '/' return false } }) }); })($)