@@ -247,17 +247,29 @@ <h2>G l o w S c r i p t 2.7</h2>
247
247
< b > The program must be in a public folder, not a private folder.</ b > </ li >
248
248
< li > You can publish a link to an entire < b > public</ b > folder: < a class ="folder-link "> </ a > .</ li >
249
249
< li > Export: you can < em > embed</ em > the program, including from a private folder,
250
- directly in your own web page, using the following HTML.
250
+ directly in your own web page, using the HTML provided below .
251
251
If your page already uses jquery, you should delete that <script> tag.
252
- < span class ="embedWarning errorText "> </ span >
253
- < p > < textarea class ="embedSource "> </ textarea > </ p >
254
252
</ li >
253
+ < li > Another option is to save the HTML in a file ending in ".html". Doubleclick this file and it
254
+ will run in your browser.
255
+ You can place this file on a web site and run the program in a browser by giving the URL.</ li >
256
+ < li > You may have a need to allow anyone to run the program but to keep the program's original source code private.
257
+ It is not possible to hide JavaScript code from a user of the program (rightclick the web page and
258
+ choose "View page source" or use the browser debugger), but you can "minify" the program to make
259
+ it so difficult to read as to make it effectively private. To do this, in the HTML code above, copy the code from "// START JAVASCRIPT"
260
+ through "// END JAVASCRIPT" and paste it into a "minifier" such as the one at
261
+ < a href ="https://javascript-minifier.com " target ="_blank "> javascript-minifier.com</ a > , and then replace the START-END code with
262
+ the output of the minifier. You will see that it is very difficult to understand the minified program, even if
263
+ you pass it through a "beautifier" program, because many of the variable names have been replaced by single letters.
264
+ </ ul >
255
265
<!--
256
266
<li>You can <em>frame</em> the program, using the following HTML
257
267
(<b>Warning:</b> this doesn't actually work yet!):
258
268
<p><textarea class="frameSource"></pre></textarea></p>
259
269
</ul>
260
270
-->
271
+ < span class ="embedWarning errorText "> </ span >
272
+ < p > < textarea class ="embedSource "> </ textarea > </ p >
261
273
</ div >
262
274
263
275
<!-- <script type="text/javascript" language="javascript" src="lib/require.min.js"></script> -->
0 commit comments