Skip navigation

 RSS Splash for Story Map using html code?

RSS posted on behalf of GeoNet : All Content - Story Maps 2 weeks ago
      
    Hello,

    I found this code in another discussion to create a splash in a story map. My map is
    a story map series. Would this still work? Would this go in the index html? If so,
    is it necessary that it's placed before anything so it comes up first?#

    require(["dojo/topic","dijit/Dialog"], function(topic, Dialog) {

      /*
      * Custom Javascript to be executed while the application is initializing goes here
      */

      // The application is ready
      topic.subscribe("tpl-ready", function(){

        /*
        * Custom Javascript to be executed when the application is ready goes here
        */
     
        var splashPage = new Dialog ({
          title: 'Splash Page',
          content: '

    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quisquam vel in rem rerum saepe quidem est, ratione molestias a harum!


    https://images.unsplash.com/photo-1469521669194-babb45599def?dpr=1&auto=format&crop=entropy&fit=crop&w=400&q=80&cs=tinysrgb" alt="Photo of parks" />',
          style: 'width: 430px; height: 436px;'
        });

        splashPage.show();
      });
    });

    Thanks,
    Brandon

    shared via RSS

      Comments