New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: using responsive-images.js to gallery #17
Comments
Hi @pawelmil, Nice to hear you're using reponsive-images.js! :) I however can't seem to be able to open your link. Can you post a new one? |
I'm sorry, I missed markdown. My gallery link is: |
Its not completely clear to me how your code works. Is there an IMG tag inside the anchor or is the IMG injected into the anchor later using JavaScript? |
gallery script can generate static thumbnails to "images" folder. |
Hi Pawelmil, I will take this into account as a future feature. For now you can do this by going to line 143 in
Let me know if that worked. ;) |
Hi, your script works as you intended. |
Hi @pawelmil, You could do that by checking the class on the image before adding the anchor. There are different ways to do this but considering browser support you might want to go with the first one as it should also work below IE9, it is however a little less accurate. I also listed 2 other solutions so you can choose one that fits your project and browser support requirements. IE9 and below solution
IE9+
IE10+
Anyway, glad to help and let me know if it worked. ;) |
I tested first version - it works ok. Thanks for your time! |
Hi, I succesfuly used your script with responsive slider. I wonder if i can use it in gallery for images.
My code is
How can I make link to responsive image?
Thanks in advance.
The text was updated successfully, but these errors were encountered: