Home Forums Porto Admin Template Doubt about Loading-Overlay

This topic contains 2 replies, has 2 voices, and was last updated by  ruben 3 weeks, 5 days ago. This post has been viewed 85 times

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10030513

    ruben
    Participant

    Hi, I added loading loading-overlay correctly automatically, while loading the page appears, it disappears when it is completed.
    But I would like to activate and deactivate it manually.
    My code:

    HTML:
    […]
    <body class=”loading-overlay-showing” data-loading-overlay>

    {# Lazy load #}
    <div class=”loading-overlay”>
    <div class=”bounce-loader”>
    <h3>Cargando…</h3>
    <div class=”bounce1″></div>
    <div class=”bounce2″></div>
    <div class=”bounce3″></div>
    </div>
    </div>

    <section class=”body”>
    […]

    JQUERY:
    […]
    var $el = $(‘.loading-overlay’);
    $el.trigger(‘loading-overlay:show’);
    […]

    Dont works.

    Gracias.


    #10030518

    Support2
    Keymaster

    Hello,

    The issue is your selector on the variable $el.

    Try changing the $el to:

    var $el = $('body');

    Please, try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


    #10030525

    ruben
    Participant

    Perfect.
    Thanks!


Viewing 3 posts - 1 through 3 (of 3 total)