AnsweredAssumed Answered

Splash for Story Map Series using html code?

Question asked by brandon.price on May 10, 2017
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&w=400&q=80&cs=tinysrgb" alt="Photo of parks" />',
      style: 'width: 430px; height: 436px;'
    });

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

Thanks,
Brandon

Outcomes