Splash for Story Map Series using html code?

499
0
05-10-2017 07:39 AM
BrandonPrice
Occasional Contributor
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: '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quisquam vel in rem rerum saepe quidem est, ratione molestias a harum!</p><br /><img src="https://images.unsplash.com/photo-1469521669194-babb45599def?dpr=1&auto=format&crop=entropy&fit=crop..." alt="Photo of parks" />',
      style: 'width: 430px; height: 436px;'
    });

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

Thanks,
Brandon
0 Kudos
0 Replies