You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: docs/guides/HTML5 Deployment.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ group: deployment
6
6
7
7
## Introduction
8
8
9
-
**Note: This is BETA release of HTML5 deployment support. If you intend to use it in production, please test thoroughly that it supports all the functionality you are looking for.**
9
+
**Note: This release of HTML5 deployment support is not yet feature complete. If you intend to use it in production, please test thoroughly that it supports all the functionality you are looking for.**
10
10
11
11
Almost every Internet-connected device has a web browser. If your application can run in a browser, your app can be used anywhere and by anyone, without any need to download or install it.
12
12
@@ -26,18 +26,19 @@ We hope to broaden the range of supported browsers in the future.
26
26
27
27
The HTML5 engine in this release of LiveCode has a limited range of features. You can:
28
28
29
-
* deploy single-stack applications with embedded resources
29
+
* deploy single or multiple stack applications with embedded resources. Stacks other than the main stack will open in their own floating container windows.
30
30
* use most of the engine's built-in controls and graphics capabilities.
31
31
* read and write temporary files in a special virtual filesystem (which is erased when the user navigates away from the page)
32
32
* use LiveCode Builder widgets and extensions
33
33
* interact with JavaScript code in the web page using `do <script> as "JavaScript"`
34
+
* call JavaScript from LiveCode Builder widgets and extensions using the com.livecode.emscripten module
35
+
* implement widgets by embedding DOM elements as native layers
34
36
* perform basic networking operations using the **load** command
35
37
36
38
Several important features are not yet supported:
37
39
38
40
* some `ask` and `answer` message boxes
39
41
* multimedia (the "player" control)
40
-
* JavaScript in LiveCode Builder extensions
41
42
42
43
Two important unsupported features are unlikely to be added in the near future:
43
44
@@ -113,17 +114,19 @@ The default HTML5 page provided by the HTML5 standalone builder is designed for
113
114
114
115
### The canvas
115
116
116
-
The engine renders into a HTML5 `<canvas>` element. There are three important considerations when creating the canvas:
117
+
The engine renders into a HTML5 `<canvas>` element contained within a `<div>` element. There are some important considerations when creating the canvas & div:
117
118
118
-
* the canvas must have absolutely no border, or mouse coordinate calculations will be incorrect
119
+
*both the canvas and div must have absolutely no border, or mouse coordinate calculations will be incorrect
119
120
120
-
*it will be automatically resized by the engine to match the size of your stack, so don't attempt to set its size using HTML or CSS
121
+
*they will be automatically resized by the engine to match the size of your stack, so don't attempt to set their size using HTML or CSS
121
122
122
-
* it needs to be easily uniquely identifiable, so that the engine can find it.
123
+
* the canvas should be the only element within the containing div, which may be used to hold additional elements as native layers are added to the app.
124
+
125
+
* the canvas needs to be easily uniquely identifiable, so that the engine can find it.
123
126
124
127
The absolute minimum canvas element would look something like this:
By default, most web browsers will indicate when the canvas has focus by displaying a highlighted outline. This helps users identify which part of the web page is capturing their key presses. You can usually disable this outline by adding `outline: none;` to the canvas's CSS styles.
129
132
@@ -155,7 +158,9 @@ Here's the complete skeleton web page for an HTML5 standalone:
0 commit comments