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>/ [ 'gfx', 'txt', 'vdo' ].forEach(function(id) { $('#' + id).onclick = function() { window.location = '/' + id + '/'; return false } }) }); })($)