function initZoom() {
      const zoom = document.getElementById(masterID + 'Zoom');

      zoom.style.backgroundImage = "url('" + img.src + "')";
      zoom.style.left = 0 + 'px';
      zoom.style.top = 0 + 'px';
      zoom.style.height = Math.round(imgPosition.height/10) + 'px';
      zoom.style.width = Math.round(imgPosition.width/10) + 'px';
   }
// Start position and size of the zoom
Start position and size of the zoom
Start position and size of the zoom
function initZoom() {
      const zoom = document.getElementById(masterID + 'Zoom');
      zoom.style.backgroundImage = "url('" + img.src + "')";
      zoom.style.left = 0 + 'px';
      zoom.style.top = 0 + 'px';
      zoom.style.height = Math.round(imgPosition.height/10) + 'px';
      zoom.style.width = Math.round(imgPosition.width/10) + 'px';
   }
function initZoom ( ) { const zoom = document . getElementById ( masterID + 'Zoom' ) ; zoom . style . backgroundImage = "url('" + img . src + "')" ; zoom . style . left = 0 + 'px' ; zoom . style . top = 0 + 'px' ; zoom . style . height = Math . round ( imgPosition . height / 10 ) + 'px' ; zoom . style . width = Math . round ( imgPosition . width / 10 ) + 'px' ; }
Start position and size of the zoom
Start position and size of the zoom