Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

175
Visualizações
Jquery syntax error while implementing zoom hover plugin
    $(document).ready(function(){
    $(function(){
        $('.my-gallery').imageZoom({
          $(this).imageZoom({
            zoom: 200
          });
        });
    });
});

HTML:
<link rel="stylesheet"href="{% static 'click-tap-image/dist/css/image-zoom.css' %}" />
<script src="{% static  'click-tap-image/dist/js/image-zoom.min.js' %}"></script>


      <div class="slider-for m-2" class="my-gallery">
        <img src="{% static 'images/product1.png' %}" width="80" class="gallery-image">
        <img src="{% static 'images/product2.png' %}" width="80" class="gallery-image">
        <img src="{% static 'images/product3.png' %}" width="80" class="gallery-image">
        <img src="{% static 'images/product4.png' %}" width="80" class="gallery-image">
        <img src="{% static 'images/product5.png' %}" width="80" class="gallery-image">
        <img src="{% static 'images/product3.png' %}" width="80" class="gallery-image">
      </div>

I linked the jquery click-image-Error in jszoom plugin. what is the wrong with this code.. it shows an error in vscode showing '{' expected can someone please, help?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The error is caused on the line $(this).imageZoom. However you should not need this line as you're already calling $('.my-gallery').imageZoom. Simply just pass in the Zoom parameters

For example:

$(function () {
    $('.my-gallery').imageZoom({
        zoom: 200
    });
});
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda