• Resolved jamartinez95

    (@jamartinez95)


    For some reason when you initially open a book it looks really weird and does not have the loader that is there? I see it but it is being displayed as none, when it should be the loader until the album is ready. Is this an issue with anyone else/know how to make it not load so awkwardly.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jamartinez95

    (@jamartinez95)

    Fixed it

    jQuery(window).on("resize", function() {
    	jQuery('.wcp-loader').show();
        jQuery('.flipbook').each(function(index, el) {
            var tbid = jQuery(this).attr('id');
            if (window['wcpbooksettings' + tbid].responsive) {
                jQuery(this).closest('.pb-wrap').find('.wcp-size-image').css({
                    'display': 'block',
                    'width': '100%'
                });
                var b_width = jQuery(this).closest('.pb-wrap').find('.wcp-size-image').innerWidth();
                var b_height = jQuery(this).closest('.pb-wrap').find('.wcp-size-image').innerHeight();
                var curr_book = jQuery(this);
                setTimeout(function() {
                    curr_book.booklet("option", "width", b_width);
                    curr_book.booklet("option", "height", b_height / 2);
                }, 1500);
                jQuery(this).closest('.pb-wrap').find('.wcp-size-image').hide();
            };
        });
    	setTimeout(function() {
    		jQuery('.wcp-loader').hide();
    	}, 2000);
    	
    });
    Plugin Author rameez_iqbal

    (@rameez_iqbal)

    That’s great. I will fix it in next release also.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wpc-loader not showing up on start?’ is closed to new replies.