I
I
imater2012-04-06 13:48:22
JavaScript
imater, 2012-04-06 13:48:22

How does Bookmate make text flow from left DIV to right?

www.bookmate.com/r#d=yqvJfcXr

screen.png

If you scale this page, you can see that the text on the left and right pages is reformatted so that it goes from left to right page.

How did they manage to make such text flow, and especially on the left page, pressing the last line to the right border?

PS: I want to find out the optimal algorithm for presenting text in two columns, as in this example.

PS: I used Columnizer for jQuery, but it is not suitable for huge books.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
UseRifle, 2012-04-06
@UseRifle

Look at what requests they make - first some master json is dragged, and then the text is pieced together.
Well, it’s easy to adjust texts in height with the help of libraries.

X
xmeoff, 2012-04-06
@xmeoff

jQuery has nothing to do with it, bookmate.com uses the Closure Library .
It is difficult to pull a readable js code from bookmate.com, because there everything is compressed in one js-file specific for each book.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question