• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes
This is a how-to for those who want the lightbox to fill the entire screen (instead of the default 80%);
in how_to by (191k points)

1 Answer

0 votes
Best answer

Paste the following code into a .js file and attach using the Resources section in the in5 dialog:

if($.colorbox) {
        $('.lightbox').filter(':not([href*=lightbox\\=0])').colorbox({iframe:true, width:"100%", height:"100%"});
        $('svg .lightbox').on(clickEv, function(){
            $.colorbox({iframe:true, width:"100%", height:"100%", href:$(this).attr('xlink:href')});
            return false;
        $('.thumb').colorbox({maxWidth:"100%", maxHeight:"100%"});

by (191k points)
edited by
Hi i tryed this, but now ?lightbox=0 have no effect...
I've modified the code in the answer above to account for ?lightbox=0.
Great thanks!  :)