Jonas90de
Forum Replies Created
-
nope, thats why i posted it here ??
okay i’ve hacked it in myself now, if somebody has the same problem:
Add this to line 796 in the fancybox js (and edit the php in line 395 to use the not-packed script):
var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; if ($(this).is('a[href$=".pdf"]') && isMobile.any()){return;}
thats not really the great way to do it because its in the fancybox script itself, but for now it works ??
The other ways work less or more, but the scrolling is always weird to not possible..
I think the best for mobile devices would be to open the pdfs just in a new tab that the user can see them in fullscreen and the browser can handle them as it always does..Is it possible to add an exception for mobile browsers to the pdf-autodetect feature?
Meanwhile i’ve found another solution for the maps widget (“Google Maps Lite”) This one has no lightbox, but thats not really neccesary for my use.
One other problem i’ve noticed is that mobile browsers often crash on viewing pdfs in the fancybox (and if not scrolling is not possible) Is this a problem with the pdf plugins of the browsers (Mobile Safari and Chrome in fact) or can we fix this?
Shall i better create a new Thread about this?Thank you for your support
not yet online, sorry
Google Maps Widget also uses a version of fancybox, but i didn’t find a way to fix it that both work..Had the same Issue with the Plugin “Google Maps Widget” – will see if I can fix it to continue using both.
nevertheless thanks Ravan! ??
Sadly not =/
Maybe now when the topic is on top of the 1st page again sb reads it..
i hope so..
greets