javascript - jQuery Mobile 1.4.2 + Photoswipe 1.0.11 -


i trying implement latest version of photoswipe latest version of jquery mobile. use made examples included photoswipe download file , updating jquery & jquery mobile latest versions. after doing that, gallery not work. have managed make work?

if impossible, alternative works latest jquery mobile?

best,

just keep using photoswipe. problem version mismatch. original developer stopped working on framework few weeks ago , developer overtook project. not known second developer forked project long time ago , there 2 separate versions of plugin.

original 1 stopped working jquery mobile ago. second implementation holds version: 3.0.5. unfortunately version no longer available. knowledge second developer working on merging 2 projects together.

thankfully have available version 3.0.4

working example: http://jsfiddle.net/gajotres/pfqvs/

html:

<!doctype html> <html>     <head>         <title>jqm complex demo</title>         <meta http-equiv='content-type' content='text/html; charset=utf-8'/>         <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no; target-densitydpi=device-dpi"/>         <link rel="stylesheet" href="http://www.photoswipe.com/latest/photoswipe.css" />                 <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />         <script src="http://thecodingwebsite.com/tutorials/photoswipe/klass.min.js"></script>                     <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>                     <script src="http://thecodingwebsite.com/tutorials/photoswipe/code.photoswipe.jquery-3.0.4.min.js"></script>         </head>     <body>         <div data-role="page" id="index">             <div data-theme="b" data-role="header">                 <h1>index page</h1>             </div>              <div data-role="content">                 <ul class="gallery">                                <li><a href="http://www.photoswipe.com/latest/examples/images/full/001.jpg" rel="external"><img src="http://www.photoswipe.com/latest/examples/images/thumb/001.jpg" alt="image 001" /></a></li>                     <li><a href="http://www.photoswipe.com/latest/examples/images/full/002.jpg" rel="external"><img src="http://www.photoswipe.com/latest/examples/images/thumb/002.jpg" alt="image 002" /></a></li>                     <li><a href="http://www.photoswipe.com/latest/examples/images/full/003.jpg" rel="external"><img src="http://www.photoswipe.com/latest/examples/images/thumb/003.jpg" alt="image 003" /></a></li>                     <li><a href="http://www.photoswipe.com/latest/examples/images/full/004.jpg" rel="external"><img src="http://www.photoswipe.com/latest/examples/images/thumb/004.jpg" alt="image 004" /></a></li>                     <li><a href="http://www.photoswipe.com/latest/examples/images/full/005.jpg" rel="external"><img src="http://www.photoswipe.com/latest/examples/images/thumb/005.jpg" alt="image 005" /></a></li>                     <li><a href="http://www.photoswipe.com/latest/examples/images/full/006.jpg" rel="external"><img src="http://www.photoswipe.com/latest/examples/images/thumb/006.jpg" alt="image 006" /></a></li>                     <li><a href="http://www.photoswipe.com/latest/examples/images/full/007.jpg" rel="external"><img src="http://www.photoswipe.com/latest/examples/images/thumb/007.jpg" alt="image 007" /></a></li>                     <li><a href="http://www.photoswipe.com/latest/examples/images/full/008.jpg" rel="external"><img src="http://www.photoswipe.com/latest/examples/images/thumb/008.jpg" alt="image 008" /></a></li>                     <li><a href="http://www.photoswipe.com/latest/examples/images/full/009.jpg" rel="external"><img src="http://www.photoswipe.com/latest/examples/images/thumb/009.jpg" alt="image 009" /></a></li>                 </ul>             </div>         </div>         </body> </html>    

javascript:

$(document).on('pagebeforeshow', '#index', function(){        var myphotoswipe = $(".gallery li a").photoswipe({         jquerymobile: true,         loop: false,         enablemousewheel: false,         enablekeyboard: false     });      myphotoswipe.show(0);       }); 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -