API: Webpage (Module) (r1)
This API is for Worlds with no canvas.
That is, the World is a web page with regular HTML elements.
This site is mostly about uploading JS (not HTML)
to make a World
which normally "runs" on a canvas element on a page.
This API is different to the other APIs.
It allows you make a World with no canvas.
This API has the following features:
- It gives you a blank page, and you use JS
to insert whatever HTML and CSS and data you want on the page.
- It loads your JS using
<script type="module">
- This means you cannot use
document.write
- The API sets a page title.
- There is no run header, so as not to interfere with your page layout.
- You reload and close the page like any other tab.
- Links on the page open in the same window
(not in a new window like in the canvas APIs).
- Includes jQuery 3.6.0.
- Loads up minimal CSS that should not conflict with user CSS.
Screenshots:
- The screenshot does not assume there is a canvas. Instead it takes a screenshot of the HTML.
- It uses the
html2canvas
library
to build a screenshot of your page using JS.
-
The html2canvas library has some
limitations
and may not be able to accurately screenshot your page.
Templates