joseph / Monocle

A silky, tactile browser-based ebook JavaScript library.
http://monocle.inventivelabs.com.au
MIT License
743 stars 200 forks source link

Book preview function #255

Closed pateljatin closed 9 years ago

pateljatin commented 9 years ago

Hi,

This is a great library - kudos to you - awesome work!

I'm trying to implement a feature whereby a preview of the book is presented - let's say only first chapter is visible for a preview. I tried using reader.moveTo but this prompts a page number, which doesn't make sense especially when we have responsive layouts (mobile layouts, etc.). Is there another way to accomplish such a feature? So, essentially on-init/load, I only want users to view first chapter of the book including TOC. Any ideas?

Thanks in advance. JP

AbhilashThomas commented 9 years ago

Maintain two copies of book, one preview and another complete. Coz this is client side HTML, using the entire book and using only the first pages for preview wont be good coz a clever user can always see the remaining book using some inspector. (I am assuming u want to give the entire book after the user signs up...)

joseph commented 9 years ago

Yes, agree, this is a server-side matter.

pateljatin commented 9 years ago

Thanks everyone.