Fancybox – Force Type

Official Site:

http://fancyapps.com/fancybox/

 

Notes:

  • Q:Failed to open images when the URL is without normal image extensions such as:
    https://lh6.ggpht.com/n3R1YRv8yF8BA3dDYxPEysnsVGuRfmJ3pqPyuhKVJOkYYL4ijaKt-gaj-e_s36XzT-0=h310-rw
    A:Force the open type “image”
    $(“.fancybox”).fancybox({
    type: ‘image’
    });