As Bookmate makes the text flow from the left DIV to the right?

www.bookmate.com/r#d=yqvJfcXr

image

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

How they managed to make the text flow, especially in the left-hand page, pressing the last line to the right border?

PS: I want to find out the optimal algorithm for the representation of text in two columns like in this example.

PS: I Use jQuery Columnizer to, but it is not suitable for huge books.
October 8th 19 at 00:39
2 answers
October 8th 19 at 00:41
View what queries they do is first dragged some master-json, and then the pieces of texts.

And the lyrics for the height is easy to customize using libraries that.
October 8th 19 at 00:43
jQuery here at anything, bookmate.com uses Closure Library.
Pulling readable js code bookmate.com difficult, because everything is compressed into one js file specific to each book.

Find more questions by tags jQuery