It's not backed up on mobile devices.



  • On mobile devices изображение



  • The decision was as follows:

    <script>
        if($(window).width() > 769) {
            $("#zoom").elevateZoom({gallery:'gall', zoomType:"lens", containLensZoom:true, borderSize:"2", zoomWindowHeight:"100%"});
        } else {
            $(document).ready(function() {
                $('#gall a').click(function() {
                    var srcImage = $('#gall a').children().eq($(this).index()).attr('src');
                    $('#zoom').attr('src', srcImage);
                    return false; //отмена перехода по ссылке
                });
            });
        }
    </script>
    

    Thank Vlad Vlad for the tip.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2