Make script.js URLs protocol-relative

This commit is contained in:
Joshua Bell 2013-12-08 15:57:31 -08:00
parent 26bcae27a5
commit 14adff5695
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ Web Page Embedding
Want to show off your BASIC creation on your own web site? Now you can with just a tiny bit of HTML.
There are two parts:
1. Insert `<script src="http://calormen.com/jsbasic/script.js"></script>` on your page to enable it
1. Insert `<script src="//calormen.com/jsbasic/script.js"></script>` on your page to enable it
2. Add `<script type="text/applesoft-basic">` then your BASIC program then `</script>`
Like this:
@ -12,7 +12,7 @@ Like this:
<title>My BASIC example</title>
<h1>Look what I did!</h1>
<script src="http://calormen.com/jsbasic/script.js"></script>
<script src="//calormen.com/jsbasic/script.js"></script>
<script type="text/applesoft-basic">
10 REM Your BASIC program goes here