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

198
Visualizações
How to run the animation only once per page?

How can I change the following code to run only once per session, and once per page. The div#edgtf-manon-loading-title appears on every page. So, on the second time the same user/session goes to the same page they went before, the animation would NOT load anymore. Thanks!

function edgtfLoadingTitle() {
    var loadingTitle = $('#edgtf-manon-loading-title');

    if (loadingTitle.length) {

        var fallback = edgtf.body.hasClass('edgtf-ms-explorer') ? true : false;
        var done = function() {
            edgtfEnableScroll();
            edgtf.body.addClass('edgtf-loading-title-done');
            $(document).trigger('edgtfTitleDone');
        };

        var toTop = function() {
            loadingTitle
                .addClass('edgtf-to-top')
                .one(edgtf.transitionEnd, done);

        };

        edgtfDisableScroll();
        loadingTitle.addClass('edgtf-load');
        if(fallback) {
            toTop();
        }

        loadingTitle.one(edgtf.animationEnd, toTop);
    }
}

Is there a way I can add something like this code below to the original? And where exactly?

var yetVisited = localStorage['visited'];
if (!yetVisited) {
   //something here
};
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