# vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2016, Kovid Goyal from __python__ import bound_methods, hash_literals from ajax import ajax_send from dom import set_css, add_extra_css, build_rule, svgicon from elementmaker import E from gettext import gettext as _ from utils import html_escape from session import get_interface_data, get_device_uuid from modals import error_dialog, warning_dialog from book_list.globals import get_session_data, main_js, get_translations from book_list.router import push_state, read_book_mode from read_book.globals import messenger, iframe_id, current_book, set_current_spine_item from read_book.resources import load_resources from read_book.overlay import Overlay from read_book.search import SearchOverlay, find_in_spine from read_book.prefs.colors import resolve_color_scheme from read_book.prefs.font_size import change_font_size_by from read_book.touch import set_left_margin_handler, set_right_margin_handler from read_book.toc import update_visible_toc_nodes from read_book.goto import get_next_section from book_list.theme import get_color, get_font_family from utils import parse_url_params, username_key LOADING_DOC = '''