At the company's request, develop a mobile magazine (the same as the mobile Slide album,on iOS can easily slide the zoom, on Android can also slide zoom ). On the internet for a long time did not meet the needs of plug-ins, inadvertently found the photoswipe, after the transformation has become in line with their own mobile atlas.
Transformation point:
1. The original plugin default entry page is the album list, return or close will be returned to the list of books, tracking to find this method and kill!
2. Added drag bar jump (PS: Plug-in default full-screen slide, the implementation of the idea is to apply ifram positioning to achieve, sub-page drag link jump corresponding to the specified ID);
3. New current page shows that the plugin has this method;
4. Fix iOS download PDF, return to blank page bug (PS: will link replace without href jump );
5. Solution Click to share or download also zoomin (PS: plugin default click any area is zoom in or zoom out, find the method to kill );
6. Resolve the bug that the page gets into the page, window.location.href= '/photo/index.html#&gid=1&pid=1 ' when the page is initialized;//page by default jump to a page
Sharing effect:
Paging and current page effects:
Effect preview:http://m.qikan.molbase.com/index.php?&a=show&catid=6&id=2#&gid=1&pid=1
PS: More code is not on, need to find me!
A luxurious and beautiful mobile Atlas (Zepto.js+photoswipe.js)