$(function(){ /* We use a multiple selector to stop jQuery shortening to document.getElementById() * which would only return the first result (and there might be multiple #library_map * elements, shockingly; e.g. on Contact pages */ $('#library_map, #junk-id-goes-here').each(function(){ $(this).css({ position: 'absolute' }); // allow .iframe-overlay to "overlay" the iframe and catch clicks $(this).html('
'); }); });
Back to top