Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The final outcome will be something similar to this where you can see the message at the top right of the map:
  • We would suggest that you leave the appear_delay and progress as the defaults but you can adjust the timeout if you wish to display the message for a longer or shorter amount of time.
  • If you wish to turn off this functionality you just need to comment out the window.FlashMessage,.info section you added and then it will be there if you need it again e.g.

    Paste code macro
       <script type="text/javascript">
            Event.observe(window, 'load', function() {
                Astun.JS.IncludeJS('gis', function() {
                    window.astun.app = new Astun.JS.MapApp("#ishare-gis", "gis",
    					{
    					    branding: "<h1><a href=\"https://astuntech.atlassian.net/wiki/x/14AgAQ\">iShare GIS</a></h1>"
    					}
    				);
                });
    	/* window.FlashMessage.info('iShare GIS maintenance is scheduled for Fri 16 October. <a href="https://www.yourURL">More info</a>',{
    		appear_delay: 5000, 	// Delay before flash message appears
    		progress: true, 	// Shows progress bar
    		theme: 'default',	//available: default, dark
    		timeout: 20000 		// Flash message timeout
    	}); */
            });
        </script>


...