<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I duplicate the popup behavior from Shortlist template to Map Series template? in Classic Esri Story Maps Questions</title>
    <link>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357324#M4018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you essentially grab the modal window behavior from the short list and throw it into the map series JavaScript configuration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/******************************************************
 ****************** Modal Info Window *****************
 ******************************************************/


&lt;SPAN&gt; // based on &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.smashingmagazine.com%2F2014%2F09%2F15%2Fmaking-modal-windows-better-for-everyone%2F" target="_blank"&gt;http://www.smashingmagazine.com/2014/09/15/making-modal-windows-better-for-everyone/&lt;/A&gt;


var _lastFocus;
var _infoWindowCloseButton;
var _infowWindowDom;
var _showingDetails;


function infoWindow_onShow(event) {
&amp;nbsp; _lastFocus = document.activeElement;
&amp;nbsp; setTimeout(function(){
&amp;nbsp; if(!_tileClick){
&amp;nbsp; $('.description')[0].setAttribute('tabIndex', '0');
&amp;nbsp; $('.description')[0].focus();
&amp;nbsp; }
&amp;nbsp; }, 500);
}


function infoWindow_onHide(event) {
&amp;nbsp; unselect();
&amp;nbsp; _modalOpen = false;
&amp;nbsp; // place focus on the saved element
&amp;nbsp; setTimeout(function(){
&amp;nbsp; if(_lastFocus)
&amp;nbsp; _lastFocus.focus();
&amp;nbsp; }, 0);
}


function focusRestrict ( event ) {
&amp;nbsp; document.addEventListener('focus', function( event ) {
&amp;nbsp; if (_map.infoWindow.isShowing &amp;amp;&amp;amp;
&amp;nbsp; !_infowWindowDom.contains( event.target) &amp;amp;&amp;amp;
&amp;nbsp; !_showingDetails) {
&amp;nbsp; event.stopPropagation();
&amp;nbsp; _infoWindowCloseButton.focus();
&amp;nbsp; }
&amp;nbsp; }, true);
}


function infoWindow_Close() {
&amp;nbsp; _map.infoWindow.hide();
}


function modalClose ( e ) {
&amp;nbsp; if ( !e.keyCode || e.keyCode === 27 ) {
&amp;nbsp; if (_map.infoWindow.isShowing &amp;amp;&amp;amp; !_showingDetails) {
&amp;nbsp; infoWindow_Close();
&amp;nbsp; }
&amp;nbsp; }
}


function modal_InfoWindow_Init() {
&amp;nbsp; dojo.connect(_map.infoWindow,"onHide",infoWindow_onHide);
&amp;nbsp; dojo.connect(_map.infoWindow,"onShow",infoWindow_onShow);
&amp;nbsp; _infoWindowCloseButton = $(".esriPopup .titleButton.close")[0];
&amp;nbsp; _infowWindowDom = _map.infoWindow.domNode;
&amp;nbsp; if(!_isIE8){
&amp;nbsp; document.addEventListener('keydown', modalClose);
&amp;nbsp; focusRestrict();
&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the function of initMap(layers), you might have to put in the "modal_InfoWindow_Init();"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:42:24 GMT</pubDate>
    <dc:creator>AdrianWelsh</dc:creator>
    <dc:date>2021-12-11T16:42:24Z</dc:date>
    <item>
      <title>How can I duplicate the popup behavior from Shortlist template to Map Series template?</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357321#M4015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use the Map Series story map template but would like the popup behavior from the Shortlist template. In Shortlist you get a popup with a button at the bottom for more information which expands gives a small info window which has the popup content and more content in a second column. I edited the Map Series CSS to make the default popup wider and used a table in the popup so it will format to two columns but it doesn't look as nice. Anyone played with these templates code enough to give me a direction to head in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 18:52:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357321#M4015</guid>
      <dc:creator>ChrisMathers1</dc:creator>
      <dc:date>2016-05-16T18:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I duplicate the popup behavior from Shortlist template to Map Series template?</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357322#M4016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I moved this to the Story Map place, which should give you a better chance of getting an answer. The ESRI story map team is very active here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 18:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357322#M4016</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2016-05-16T18:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I duplicate the popup behavior from Shortlist template to Map Series template?</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357323#M4017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah thanks Tim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 19:01:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357323#M4017</guid>
      <dc:creator>ChrisMathers1</dc:creator>
      <dc:date>2016-05-16T19:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I duplicate the popup behavior from Shortlist template to Map Series template?</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357324#M4018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you essentially grab the modal window behavior from the short list and throw it into the map series JavaScript configuration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/******************************************************
 ****************** Modal Info Window *****************
 ******************************************************/


&lt;SPAN&gt; // based on &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.smashingmagazine.com%2F2014%2F09%2F15%2Fmaking-modal-windows-better-for-everyone%2F" target="_blank"&gt;http://www.smashingmagazine.com/2014/09/15/making-modal-windows-better-for-everyone/&lt;/A&gt;


var _lastFocus;
var _infoWindowCloseButton;
var _infowWindowDom;
var _showingDetails;


function infoWindow_onShow(event) {
&amp;nbsp; _lastFocus = document.activeElement;
&amp;nbsp; setTimeout(function(){
&amp;nbsp; if(!_tileClick){
&amp;nbsp; $('.description')[0].setAttribute('tabIndex', '0');
&amp;nbsp; $('.description')[0].focus();
&amp;nbsp; }
&amp;nbsp; }, 500);
}


function infoWindow_onHide(event) {
&amp;nbsp; unselect();
&amp;nbsp; _modalOpen = false;
&amp;nbsp; // place focus on the saved element
&amp;nbsp; setTimeout(function(){
&amp;nbsp; if(_lastFocus)
&amp;nbsp; _lastFocus.focus();
&amp;nbsp; }, 0);
}


function focusRestrict ( event ) {
&amp;nbsp; document.addEventListener('focus', function( event ) {
&amp;nbsp; if (_map.infoWindow.isShowing &amp;amp;&amp;amp;
&amp;nbsp; !_infowWindowDom.contains( event.target) &amp;amp;&amp;amp;
&amp;nbsp; !_showingDetails) {
&amp;nbsp; event.stopPropagation();
&amp;nbsp; _infoWindowCloseButton.focus();
&amp;nbsp; }
&amp;nbsp; }, true);
}


function infoWindow_Close() {
&amp;nbsp; _map.infoWindow.hide();
}


function modalClose ( e ) {
&amp;nbsp; if ( !e.keyCode || e.keyCode === 27 ) {
&amp;nbsp; if (_map.infoWindow.isShowing &amp;amp;&amp;amp; !_showingDetails) {
&amp;nbsp; infoWindow_Close();
&amp;nbsp; }
&amp;nbsp; }
}


function modal_InfoWindow_Init() {
&amp;nbsp; dojo.connect(_map.infoWindow,"onHide",infoWindow_onHide);
&amp;nbsp; dojo.connect(_map.infoWindow,"onShow",infoWindow_onShow);
&amp;nbsp; _infoWindowCloseButton = $(".esriPopup .titleButton.close")[0];
&amp;nbsp; _infowWindowDom = _map.infoWindow.domNode;
&amp;nbsp; if(!_isIE8){
&amp;nbsp; document.addEventListener('keydown', modalClose);
&amp;nbsp; focusRestrict();
&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the function of initMap(layers), you might have to put in the "modal_InfoWindow_Init();"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357324#M4018</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2021-12-11T16:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I duplicate the popup behavior from Shortlist template to Map Series template?</title>
      <link>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357325#M4019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working for me but I may not have figured out exactly where to put it in yet. This template looks a lot more complex on the back end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 19:44:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/classic-esri-story-maps-questions/how-can-i-duplicate-the-popup-behavior-from/m-p/357325#M4019</guid>
      <dc:creator>ChrisMathers1</dc:creator>
      <dc:date>2016-05-17T19:44:43Z</dc:date>
    </item>
  </channel>
</rss>

