123456789101112131415161718192021222324252627282930 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta charset="utf-8" />
- <style type="text/css"></style>
- <script>
- function syncStyle() {
- document.head.querySelector('style').innerHTML = BridgeObject.styleSheet;
- document.body.className = BridgeObject.bodyClassName;
- }
- function syncHtml() {
- document.body.innerHTML = BridgeObject.html;
- }
- function syncScroll() {
- document.body.parentElement.scrollTop = (document.body.parentElement.scrollHeight - window.outerHeight) * BridgeObject.scrollPosition;
- }
- window.onload = () => {
- syncStyle();
- syncHtml();
- setTimeout(() => { syncScroll(); }, 0);
- }
- </script>
- </head>
- <body class="markdown-body">
- </body>
- </html>
|