You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
606 B
20 lines
606 B
$(document).ready( () => {
|
|
// make images zoomable
|
|
makeImagesZoomable( $("body") ) ;
|
|
} ) ;
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
function makeImagesZoomable( $elem )
|
|
{
|
|
// look for images that have been marked as zoomable, and make it so
|
|
$elem.find( "img.imageZoom" ).each( function() {
|
|
$(this).wrap( $( "<a>", {
|
|
class: "imageZoom",
|
|
href: $(this).attr( "src" ),
|
|
title: "Click to zoom",
|
|
onFocus: "javascript:this.blur()"
|
|
} ) ) ;
|
|
} ) ;
|
|
$elem.find( "img.imageZoom" ).imageZoom( $ ) ;
|
|
}
|
|
|