1

(495 replies, posted in Juicebox-Pro Support)

My feature request (above) may not be required if this way of getting what I want works reliably (it seems to, so far):

    <script>
        var jb = new juicebox({
        containerId: 'juicebox-container'});

        var is_touch_device = 'ontouchstart' in document.documentElement;
        var touch_status = (is_touch_device) ? 'touch' : 'no-touch';
        var screenmode = jb.getScreenMode();
        jb.onInitComplete = function(e){
            if (screenmode == 'LARGE' && touch_status == "touch"){
                $('.jbn-right-button, .jbn-left-button').css('display','none')
                ;}
            ;}
        jb.onThumbPageChange = function(e){
            if (screenmode == 'LARGE' && touch_status == "touch"){
                $('.jbn-right-button, .jbn-left-button').css('display','none')
                ;}
            ;}
    </script>

although I'm not convinced that detecting a touch screen in this way is reliable. A new "showThumbNav" would be better...

Steven,

For information, and to help others, thumb nav buttons can be made to disappear from Large Screen Mode touch screens e.g. iPads, without (so far) unintended consequences:

    <script>
        var jb = new juicebox({
        containerId: 'juicebox-container'
        });
        
        var is_touch_device = 'ontouchstart' in document.documentElement;
        var touch_status = (is_touch_device) ? 'touch' : 'no-touch';
        var screenmode = jb.getScreenMode();

        jb.onInitComplete = function(e){    
            if (screenmode == 'LARGE' && touch_status == "touch"){
                    $('.jbn-right-button, .jbn-left-button').css('display','none');
                };
            }
        
        jb.onThumbPageChange = function(e){    
            if (screenmode == 'LARGE' && touch_status == "touch"){
                    $('.jbn-right-button, .jbn-left-button').css('display','none');
                };
            }
        
      </script>

When a Gallery opens, the right thumb nav button briefly shows (unintended but appropriate hint to users to swipe) then disappears.

This may make my feature request superfluous: detecting touch screens is said to be unreliable however it is done, but it works for me...

Regards,

Brian

Thanks for the reply.

I'm using my own navigation buttons in large screen mode, and hiding them in small screen mode: I think they are superfluous on touch screens where you can swipe. iPads defaulting to large screen mode means I can't hide thumb nav buttons on iPads without also hiding them on bigger screens.

I've been smacked with unforeseen knock-on problems before, when I have got ahead of myself, so I may wait and see if the devs think my suggestion is worthwhile.

Thanks again,

Brian

Thanks Steven,

Small Screen Mode/Touch Input Mode

These are not the same thing though: iPhones use Small Screen mode, but iPads use Large Screen Mode and are touch screens. I've put in a Feature Request to allow navigation buttons to be hidden for touch screens regardless of screen resolution.

I suggested a new configuration option: "showThumbNav" defaulting to TRUE (always show thumb nav buttons as at present), with options of AUTO (hide thumb nav buttons on touch screens), and FALSE (never show). Would this be helpful, or is there an easier way?

5

(495 replies, posted in Juicebox-Pro Support)

In Small Image Mode, buttons to navigate between images or between 'sets' of thumbnails don't appear. This is fine because devices with small screens have touch screens and users can swipe.

iPads use Large Screen Mode by default and navigation buttons appear but aren't needed (except maybe as a hint to users about what to do), because swiping can be used.

Feature Request (unless I'm missing something):
Option to hide navigation buttons for touch screens regardless of screen resolution.

Maybe a new configuration option: "showThumbNav" defaulting to TRUE (always show thumb nav buttons as at present), with options of AUTO (hide thumb nav buttons on touch screens), and FALSE (never show).

Thanks,

Brian

Thanks Steven,

I hadn't used navButtonIconSize, and the navigation button background did just show from behind my PNG, but I had been able to hide it by making it transparent as you suggest. In Small Screen Mode (iPhone) my PNGs don't appear at all, which is ideal.

Thanks yet again for your help and advice!

Regards,

Brian

Got it! I found an easy option changing:


.jb-navigation .jbn-left-button:before, .jb-flag-large-screen-mode .jb-navigation .jbn-left-button:before
{
    content: "\e001";
}

in theme.css to

.jb-navigation .jbn-left-button:before, .jb-flag-large-screen-mode .jb-navigation .jbn-left-button:before
{
    content:url(../../PNGs/left.png);
}

This seems to work. Will I have caused myself problems elsewhere?

Regards,

Brian

Can I substitute my own images (32 x 32px pngs) in place of the SVG navigational characters used by JuiceBoX?

I'm using custom left and right arrows in pages which do not use JuiceBox, and I'd like to be consistent and use them throughout. I've tried styling and colouring the SVG icons in config.xml, and using different characters by changing theme.css, but haven't succeeded in getting the bevelled and shadowed look I'd like e.g.:http://www.brianwatsonphoto.co.uk/Pano/ … s/left.png.

I can imaging this might be quite complicated: is there an easy way?

Regards,

Brian

9

(10 replies, posted in Juicebox-Pro Support)

Steven,

Your suggestion works perfectly, and uses clearer more elegant code, which is always better. There is an <a> tag on the splash screen, but once I gave my styled <a> button a class, it just worked.

Sorry about my error in saying the Button Bar disappears when the screen is tapped: it doesn't. All buttons have always worked properly; only my custom button disappeared and did not register taps.

Many thanks for superb and rapid support!

Brian

10

(10 replies, posted in Juicebox-Pro Support)

Oops, discovered where screenMode should go. It does work but LARGE looks horrible on a small screen. so that's not the answer...

Brian

11

(10 replies, posted in Juicebox-Pro Support)

Steven,
The solution above works in OS X and on iPads. On my iPhone, screen touches anywhere hides Title, Caption (including my button) and Button Bar, so a touch on the button never registers on a phone.

Setting screenMode="LARGE" in config.xml seems to make no difference.

Is there a way to get my useful button to register presses on an iPhone?

Here's an example: http://www.brianwatsonphoto.co.uk/Pano/index.html#1

Thanks,

Brian

12

(10 replies, posted in Juicebox-Pro Support)

Steven,

Quite right, it does involve moving out of Juicebox, but as you agree might be a solution to the original poster.

Thanks for the hint about my button positioning: it works (of course), with an addition to prevent the font size in the Caption becoming larger.

Many thanks, yet again!

Brian

13

(10 replies, posted in Juicebox-Pro Support)

There is a work-around to enable zooming, by using Zoomify.

I use a button in the Caption to link to a page showing a Zoomified version of the picture (Zoomify breaks large files into small pieces: as you zoom in, you only download the parts you are looking at). For example:  http://www.brianwatsonphoto.co.uk/Pano/index.html#1.

For this <image>, my  config.xml file looks like this:

  <image imageURL="images/tyneglow8938.jpg"
         thumbURL="thumbs/tyneglow8938.jpg"
          linkURL="z/tyneglow8938.html"
    smallImageURL="images/small/tyneglow8938.jpg">
    <title><![CDATA[The Glow on the Tyne]]></title>
    <caption><![CDATA[7,004 x 2,774 pixels <form><button type="submit" formaction='z/tyneglow8938.html' formmethod='post'>Zoom…</button></form>]]></caption>
  </image>

This lets me display high resolution versions of my quite detailed panoramas.

The only drawback is that the button won't stay on the same line as the Caption: it appears on the line below.

Hope this helps,

Brian

14

(6 replies, posted in Juicebox-Pro Support)

max:
I wanted a similar thing, in my case a back button in the top left corner of the screen. I did it with a small png with this style

    .bHome{z-index:999; position:fixed; top:0; left:0; height:45px; width:40px;}

with this line at the end of the page:

<img class="bHome" src="../PNGs/bHome.png" onclick="location.href='../index.html'" alt="Back.." title="Back..">

I have 51 JuiceBox galleries on my web site, for example http://www.brianwatsonphoto.co.uk/Birds/index.html using this technique more or less satisfactorily.

Hope this helps,

Brian

15

(2 replies, posted in Juicebox-Pro Support)

Steven,

Many thanks. Your prompt and comprehensive help is as usual much appreciated.

Regards,

Brian

There are two semicolons at the end of lines 612 and 613.

Is this an error, and could it have made my Galleries (example below) start to open as blank white pages on a customer's Nokia phone? They work on everything else (not tested on a Windows PC).

Thanks,
Brian

http://www.brianwatsonphoto.co.uk/Birds/index.html

Thanks for you help, and your many prompt replies, much appreciated. I shall proceed with my javascript button Back button.

Regards,

Brian

...Back Button displayed on main image pages in Small Screen Mode

No, sorry, NOT in Main Image Pages. I'm looking to have a Back Button on the opening page of a Gallery in Small Screen Mode.

In Small Screen Mode my Galleries open to show just thumbnails without any controls. showSmallBackButton has no effect here: it seems to control the Back Button only on Main Image Pages. Your suggestions (thank you!) do work on Main Image Pages, but aren't needed there because they have Back Buttons already.

On my iPhone 5 http://www.brianwatsonphoto.co.uk/Aviation/index.html shows twelve thumbnails but no controls. On the big screen the same page displays 20 thumbnails, one large image, and a toolbar with a Back Button.

showSmallBackButton should work in thumbnails-only pages in Small Screen Mode but seems not to. Is this a bug?

Brian

Steven,
I think I have an acceptable solution using a plain javascript button visible only at screen widths used by Small Screen Mode.

<button class="backButton" onclick="location.href='../index.html'">Back</button>

and styles

button{z-index:999; position:fixed; top:15px; left:0; height:25px;}
@media only screen and (min-width:768px) {.backButton{visibility:hidden;}}

The button is sized/positioned so as to cover the JuiceBox Home button when the page is viewed in a browser and the window is made smaller than 768px.

This may help others (who may have even better solutions!).

Regards,
Brian

Thanks Steven,

Neither option looks good: screenMode="LARGE" makes that main image not much bigger than the thumbnails, and preventing the thumbnails page from appearing at all does not work well for large numbers of images.

Is there any other way to get from an image page to the thumbnail gallery in small screen mode, apart from using the browser's back button? This always seems awkward to me, now that I use minimal-ui.

Could I use jQuery to add my own Back button to my thumbnail gallery? It would be helpful to know if this could work before spending a lot of time and failing.

Regards,
Brian

In Small Screen Mode, with the Gallery Title hidden using your suggestion above, I have fifteen icons on my Gallery page http://www.brianwatsonphoto.co.uk/Africa/ which looks great. But my Back Button text ("Back") appears when the page loads, just before the thumbnails appear, then immediately disappears. Tested on iPhone 5.

Is there a way to have a Back Button on a Gallery page like this?

Regards,
Brian

Done. Works. Thank you again!

Regards,

Brian

Thanks again, Steven.

I had tracked it down to something in /jbcore/, but it was 1.33 and not a corrupted 1.40 (sorry, my error again).

Galleries on the iPhone look great now with five columns of thumbnails, although the galleryTitle overlaps the top left thumbnail by two pixels. Is there an option to not show the gallery title in Small Screen mode?

Thanks for the great support; only 4px from perfection now!

Regards,

Brian

This gallery displays perfectly in iMac and iPad: http://www.brianwatsonphoto.co.uk/Africa/

This is perfect as well, but not on iPhone 5/Safari: http://www.brianwatsonphoto.co.uk/Aviation/. Despite identical settings, it has tiny thumbnails (nine/row in both Portrait and Landscape), and tiny text & controls. Thumbnail Paging Text is not set, but shows. Gallery Title is set to centre but appears on the left.

Any clues, please, about what is going on here?

Thanks,

Brian

============================================

EDITED: The cause was a couple of corrupted files in /jbcore/. Fixed.

25

(495 replies, posted in Juicebox-Pro Support)

Fixed! Excellent! Many thanks.

Regards,

Brian