Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When user comes to photoswipe gallery page directly using link photoswipe is not initialized. For example even going to official demo using direct link renders this problem. Link: <a href="http://www.photoswipe.com/latest/examples/04-jquery-mobile.html#Gallery1" rel="nofollow">http://www.photoswipe.com/latest/examples/04-jquery-mobile.html#Gallery1</a> </p> <p>Try putting script in which photoswipe attaches handlers for <code>pageshow</code> and <code>pagehide</code> events before <code>jquery-mobile.js</code>. If handlers are attached after they wont be triggered first time user visits page.</p> <pre class="lang-html prettyprint-override"><code>&lt;script type="text/javascript" src="code.photoswipe-3.0.5.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; (function(window, $, PhotoSwipe){ $(document).ready(function(){ $('div.gallery-page') .live('pageshow', function(e){ if( $('ul.gallery', e.target).length &gt; 0 ){ var currentPage = $(e.target), options = {}, photoSwipeInstance = $("ul.gallery a", e.target).photoSwipe(options, currentPage.attr('id')); return true; } }) .live('pagehide', function(e){ if( $('ul.gallery', e.target).length &gt; 0 ){ var currentPage = $(e.target), photoSwipeInstance = PhotoSwipe.getInstance(currentPage.attr('id')); if (typeof photoSwipeInstance != "undefined" &amp;&amp; photoSwipeInstance != null) { PhotoSwipe.detatch(photoSwipeInstance); } return true; } }); }); }(window, window.jQuery, window.Code.PhotoSwipe)); &lt;/script&gt; &lt;script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"&gt;&lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload