mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
b83a299bfd
commit
25ef13c6ee
@ -4,15 +4,37 @@ from __python__ import bound_methods, hash_literals
|
||||
|
||||
|
||||
from elementmaker import E
|
||||
from read_book.globals import runtime
|
||||
from read_book.globals import runtime, ui_operations
|
||||
|
||||
def container_div(id):
|
||||
return E.div(id=id, style='margin: 0; padding: 0; display: none')
|
||||
|
||||
runtime.is_standalone_viewer = True
|
||||
|
||||
|
||||
def get_file(book, name, proceed):
|
||||
pass # TODO: Implement this
|
||||
|
||||
|
||||
def get_mathjax_files(proceed):
|
||||
pass # TODO: Implement this
|
||||
|
||||
|
||||
def update_url_state(replace):
|
||||
pass # TODO: Implement this
|
||||
|
||||
|
||||
def show_error(title, msg, details):
|
||||
pass # TODO: Implement this
|
||||
|
||||
|
||||
if window is window.top:
|
||||
# main
|
||||
document.body.appendChild(E.iframe(srcdoc="<p>hello"))
|
||||
document.body.appendChild(E.iframe(srcdoc="<p> "))
|
||||
ui_operations.get_file = get_file
|
||||
ui_operations.get_mathjax_files = get_mathjax_files
|
||||
ui_operations.update_url_state = update_url_state
|
||||
ui_operations.show_error = show_error
|
||||
else:
|
||||
# iframe
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user