-
So this is probably a bit outside of the scope of the usual usecases for glightbox, but I thought maybe someone has an insight here about how glightbox does things internally and how to possibly get it to work the way I need it. So imagine some inline svg, that is almost like normal glightbox using html, just with a different tag for the image: <a class="glightbox" href="img.png">
<image href="foo.png" /><title>hovertext</title></image>
</a> this almost works: It tries to open an image like in normal html, but instead of trying to load Inspecting the generated html for the gslide thing there are three I understand too little of all the javascript involved to try even getting deeper into it. It seems at one point it expects just a normal html object but gets something fancy svg instead and conversion to string leads to that.... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
With the help of a coworker I just now hacked me some workaround into glightbox ... the problem was the Adding a check if its a string or an object, and in the latter case use |
Beta Was this translation helpful? Give feedback.
With the help of a coworker I just now hacked me some workaround into glightbox ... the problem was the
img.src = data.href;
line in slideImage function.Adding a check if its a string or an object, and in the latter case use
data.href.baseVal
instead makes it work on my end, however that might not be the solution for everyone and not really nice to maintain to have a patched version...