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

110
Visualizações
Where is broken widget?

I have a test homework for my interview. I need to find broken widget that contains a code that conflicts with the work of the site (http://elfsight-test.dsotnikov.ru/). I need to tell which line breaks code. HTML elements which might be the widget will contains eapps or elfsight in their class name.

I think I found the widget, but I can't tell what's wrong with the code. The widget is located at the right-bottom corner (it is an email button). When I try to submit a form, nothing happens.

This is the code, that related to that exact widget.


script.js

window.onload = function() {
    const interval = setInterval(() => {
        const button = document.querySelector('.eapps-form-button');
        if (button) {
            clearInterval(interval);
            button.addEventListener('click', function (event) {
                event.stopPropagation();
            }, true);
        }
    }, 100);
}


Script2.js

$(document).ready(function () {

    // toggle mobile menu
    $('[data-toggle="toggle-nav"]').on('click', function () {
        $(this).closest('nav').find($(this).attr('data-target')).toggleClass('hidden');
        return false;
    });

    // feather icons
    feather.replace();

    // smooth scroll
    var scroll = new SmoothScroll('a[href*="#"]');

    // tiny slider
    $('#slider-1').slick({
        infinite: true,
        prevArrow: $('.prev'),
        nextArrow: $('.next'),
    });

    $('#slider-2').slick({
        dots: true,
        arrows: false,
        infinite: true,
        slidesToShow: 3,
        slidesToScroll: 1,
        autoplay: true,
        autoplaySpeed: 2000,
        centerMode: true,
        customPaging: function (slider, i) {
            return '<div class="bg-white br-round w-1 h-1 opacity-50 mt-5" id=' + i + '> </div>'
        },
        responsive: [{
            breakpoint: 768,
            settings: {
                slidesToShow: 1
            }
        }, ]
    });
});

When I open code inspector, it stops at line 7 event.stopPropagation();. I am also suspicious about the query selector, because there are 3 buttons with that class name.

about 4 years ago · Juan Pablo Isaza
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