3D FlipBook - Full screen

o***e@freshideas.ro
2021-04-23
2021-04-25

Hello, i bought the plugin from CodeCanyon, purchase code: ab8043fa-3ce9-49ce-a29d-184fda38d742.

Is it posible to open the book by default in full screen? So is no need to click the option in the controls bar?

Thank you

Replies

a***r@3dflipbook.net
2021-04-25
2021-04-25

Hi, look for activateFullScreen here https://3dflipbook.net/documentation#general-approach

o***e@freshideas.ro
2021-04-25
2021-04-25

Hi, i tried it but doesnt work, this is the code i use to customise the book:

  $('.solid-container').FlipBook({
    pdf: 'src/hermi.pdf',

    template: { 
      html: 'templates/default-book-view.html',
      styles: [
        'css/white-book-view.css'
      ],
      links: [{
        rel: 'stylesheet',
        href: 'css/font-awesome.min.css'
      }],
      script: 'js/default-book-view.js',
      printStyle: undefined,
      sounds: {
        startFlip: 'sounds/start-flip.mp3',
        endFlip: 'sounds/end-flip.mp3'
      }
    },

    autoNavigation: {
      urlParam: 'pagina',
      navigates: 1, 
      pageN: undefined 
    },

    bookStyle: 'volume', 
    activateFullScreen: true, 
    ready: function(scene) { 
    }
  });

Is it something wrong in the code?

Thanks

a***r@3dflipbook.net
2021-04-25
2021-04-25

It seems to be ok, see the debugging console. bookStyle: 'volume' - default, check bookStyle: 'flat'. activateFullScreen - works only from user gesture in browser security policy.

o***e@freshideas.ro
2021-04-25
2021-04-25

So actually there isnt any way to force the full screen? The user must click on Full screen from controls?

a***r@3dflipbook.net
2021-04-25
2021-04-25

yes, user must click somewhere and from this event you can launch FS.

Log In to leave a comment