This commit is contained in:
Kovid Goyal 2018-09-16 14:45:58 +05:30
parent b83a299bfd
commit 25ef13c6ee
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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