// } // Sample 1 { /* function theKingIsBlackPageCallback(n) { return { type: 'image', src: 'books/image/theKingIsBlack/'+(n+1)+'.jpg', interactive: false }; } $('#container').FlipBook({ pageCallback: theKingIsBlackPageCallback, pages: 40, propertiesCallback: function(props) { props.cover.color = 0x000000; return props; }, template: { html: 'templates/default-book-view.html', styles: [ 'css/short-white-book-view.css' ], links: [ { rel: 'stylesheet', href: 'css/font-awesome.min.css' } ], script: 'js/default-book-view.js', sounds: { startFlip: 'sounds/start-flip.mp3', endFlip: 'sounds/end-flip.mp3' } } }); */ // } // // Sample 2 { // function preview(n) { // return { // type: 'html', // src: 'books/html/preview/'+(n%3+1)+'.html', // interactive: true // }; // } // // $('#container').FlipBook({ // pageCallback: preview, // pages: 20, // propertiesCallback: function(props) { // props.sheet.color = 0x008080; // props.cover.padding = 0.002; // return props; // }, // template: { // html: 'templates/default-book-view.html', // styles: [ // 'css/black-book-view.css' // ], // links: [ // { // rel: 'stylesheet', // href: 'css/font-awesome.min.css' // } // ], // script: 'js/default-book-view.js' // } // }); // // }