app/scripts/main.js
/**
     * @return {void} Copy image wrapper and create new image into it
     */
@return {void} Copy image wrapper and create new image into it
@return { void } Copy image wrapper and create new image into it
copyImage() {
      const container = this.imageWrapper.cloneNode();
      const image = document.createElement('img');
      const { imageSrc } = this.config;
      image.src = imageSrc;
      image.style = `
        width: 100%; height: 100%;
      `;
      container.appendChild(image);
      this.wrapper.appendChild(container);
    }
copyImage ( ) { const container = this . imageWrapper . cloneNode ( ) ; const image = document . createElement ( 'img' ) ; const { imageSrc } = this . config ; image . src = imageSrc ; image . style = ` ` ; container . appendChild ( image ) ; this . wrapper . appendChild ( container ) ; }
@return {void} Copy image wrapper and create new image into it
@return { void } Copy image wrapper and create new image into it