Zum Hauptinhalt gehen

GVH 2.8 - add animated "loading" gif (spinning circle, whatever) to splash screen along with logo

Kommentare

4 Kommentare

  • Permanently deleted user
    Hi James,

     

    Looking at the dev tools when I load that site, it looks like they just added another image tag to their index.html file: <!-- Splash Screen Markup --> <div class="splash-overlay"> <div class="splash-plate"> <img class="splash-image" alt="" /> <img src="Resources/Images/mcgis/splash-logo.gif" alt="loading..." style="display: block; margin: auto; padding: 1em 0 1em 0;"> <p class="splash-paragraph">This application uses licensed Geocortex Essentials technology for the Esri<sup>&reg;</sup> ArcGIS platform. All rights reserved.</p> </div> </div> The interesting part is here:

     

    <img src="Resources/Images/mcgis/splash-logo.gif" alt="loading..." style="display: block; margin: auto; padding: 1em 0 1em 0;">

     

    So you will want to add your Gif to the viewer Resources folder (in your wwwroot folder), and reference it in an img tag.  

     

    I hope that helps!

     

    Thanks,

     

    Danny
    0
  • Permanently deleted user
    Great - thanks Danny!

     

    James
    0
  • Permanently deleted user
    Just clarifying...

     

    This thread https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&criteria=ALLQUESTIONS&id=90660000000PDw6AAG

     

    suggests that adding an animated gif is not reccommended.  Is this old news now? Thanks.
    0
  • Dan Giersz
    I think it depends on the animation.  If it is a larger file with a complicated animation, it may not load and play smoothly.  We use a very simple animation and it works fine.  It doesn't show progress, but does let the user know something is happening.
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.