photoswipe

How do i Swipe selected grid image in Full Screen

只谈情不闲聊 提交于 2019-12-31 03:49:12
问题 i created a grid-view image app, and i want to show selected image in image swipe. actually i implemented image swipe in my app but the problem is image swipe starts from 1st image not from selected image. example: if i choose 3rd image image swipe should starts from 3rd image not from 1st image. my code: MainActivity.java package com.td.gridview; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view

Add <li> dynamically reading from a folder photoswipe purpose

本秂侑毒 提交于 2019-12-25 07:04:07
问题 Sorry for my English, I am a new to jquery mobile and only have basic knowledge about javascript languages in general; I was playing around with a single page website mobile ( I usually use Dreamweaver CS6) and I reached a good result with photoswipe and everything was good since I had just few images. I have added a lot of them so now I would get the images' link dynamically. In short, I want to start from a folder on my ftp and read all images file within it and create the <li> items for

Photoswipe does not close properly in this implementation [with Slick Carousel]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 06:59:37
问题 I'm experiencing a problem that seems to be reproduced randomly after closing Photoswipe when there is more than one image in the Slick carousel. Visually, the effect is that Photoswipe closes (disappears without any animation), then the right side of the page changes again to black with last photo viewed in Photoswipe visible, then the black background fades to transparent but seems to be still there (it prevents any buttons from being clicked). In case it's relevant, the Photoswipe open

PhotoSwipe: Is there a way to attach an event handler to the 'init' event or when the plugin opens the lightbox?

ⅰ亾dé卋堺 提交于 2019-12-25 04:42:13
问题 I'm using PhotoSwipe lightbox in conjuntion with Slick carousel for a project, and I want to have the carousel autoplay while the photoswipe lightbox is not open, but when the lightbox is opened, I want the autoplay to stop. In the PhotoSwipe API they have a close and destroy event to listen for, but not an event for init or open . Has anyone found a good way to do this? Something like: $('#gallery').slick({ autoplay: true, dots: true, }); // ... Setup photoswipe... pswp.listen('open',

photoswipe - adding images during gallery show

╄→尐↘猪︶ㄣ 提交于 2019-12-24 11:35:01
问题 I know it's simple to add images to a photoswipe list with jquery, but I can't figure out how to update the image list while browsing the gallery, i.e. without going back to the image list. An alternative (without jquery because it adds images directly to photoswipe instance) I found is to use the code below, but it seems that the only possibility to have the list updated while in the gallery is to go back to the first image (before going to the first image, everything is a mess). Is there

Going back to previous page works in simulator not on iOS device jquerymobile

為{幸葍}努か 提交于 2019-12-22 10:19:07
问题 I am changing the page with this method $.mobile.changePage("Preview.html", { transition : "slide", role : "page", changeHash:true }); this is how my preview page looks like <div data-role="page" data-name="preview" class="prew"> <div data-role="content"> //content </div> </div> now when i touch the screen i have to go back to previous page. so i created this function $('.prew').live('tap', function() { alert('clicked'); history.go(-1);//<--this works in simulator not in device. //window

Replace images in PhotoSwipe gallery

 ̄綄美尐妖づ 提交于 2019-12-21 02:51:06
问题 I have a PhotoSwipe gallery on my page which is created programatically like this: var instance = window.Code.PhotoSwipe.attach(image, options) Now I want to update the images in the gallery, or put a new gallery in the same spot. Creating a new gallery for the same DOM Element omits the following error: Code.PhotoSwipe.activateInstance: Unable to active instance as another instance is already active for this target Detaching the instance from the Element using Code.PhotoSwipe.detatch

PhotoSwipe: edit parseThumbnailElements function to parse additional markup element

被刻印的时光 ゝ 提交于 2019-12-19 05:16:32
问题 Using PhotoSwipe the thumbnail gallery markup looks like this: <div class="wrap clearfix"> <div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery"> <ul class="gallery-grid"> <li> <figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> <a href="img/dektop/1.jpg" itemprop="contentUrl" data-size="1200x1200"> <img src="img/thumb/1.jpg" itemprop="thumbnail" alt="Image description" /> </a> <figcaption itemprop="caption description">Image caption 1<

Photoswipe same source code but output not working

青春壹個敷衍的年華 提交于 2019-12-13 08:21:30
问题 I have this piece of code, which refreshes the content of an ul. It works on the first load, where the content of ul is directly loaded, but i am making new content every 10 seconds so that user can always get new content. The source code of content delivered by javascript call is exactly same as the first load. Then also javascript call does not work The Javascript: <script type="text/javascript"> setInterval(function() { $("#vbar").load(location.href+" #vbar>*",""); }, 10000); </script> The

PhotoSwipe: closing gallery animates wrong rectangle (thumbnail)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 05:57:59
问题 I'm new to Javascript and I have a problem implementing PhotoSwipe plugin: I'm trying to implement PhotoSwipe plugin for a web page using jQuery. Most of it is working correctly (opening a gallery, navigating slides). The problem happens when I close the gallery. The problem: I click on image 1, this opens PhotoSwipe lightbox, I navigate to slide 2, and then close the gallery. This closes the gallery. But closing animation is played for image 1, while I am expecting it to be played for Image