GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JSBasic/WebCompiler/Default.aspx at master · danielflower/JSBasic

Expand file tree

/

Default.aspx

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
143 lines (116 loc) · 3.44 KB
/

Default.aspx

Copy path

File metadata and controls

143 lines (116 loc) · 3.44 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<%@ Page Language="C#" MaintainScrollPositionOnPostback="true" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>JSBasic</title>
<script src="Scripts/Console.js" type="text/javascript"></script>
<script src="Scripts/JSBasic.js" type="text/javascript"></script>
<style type="text/css">
body
{
margin:0px; padding: 10px; background-color: White;
font-family: Arial;
}
h1
{
font-size: 17pt;
}
h2
{
font-size: 15pt;
}
#console
{
margin: 10px;
}
.TextArea
{
width: 90%;
height: 120px;
}
.dos
{
font-family: Courier New, Courier;
background-color: Black;
color: White;
display:block;
float:left;
padding: 2px;
}
.commodore64
{
font-family: Courier;
background-color: #4242E7;
color: #A5A5FF;
display:block;
float:left;
font-weight: bold;
text-transform:uppercase;
font-size:17px;
border: solid 20px #A5A5FF;
padding: 2px;
}
</style>
</head>
<body>
<form runat="server" enableviewstate="false">
<h1>JSBasic Demo</h1>
<p>
This page allows you to enter your own BASIC program and have it converted
to JavaScript. You can then see your program run.
</p>
<p>
For an example game written in JSBasic, see <a href="default.aspx?sourceCode=SpaceWar">Space War</a>.
To learn more about JSBasic, see the
<a href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=3290305">article at CodeProject</a>.
</p>
<h2>Step one: Enter a Basic program</h2>
<p>
Please enter a Basic program below. For a list of commands, please refer
to the <a href="http://www.antonis.de/qbebooks/gwbasman/">GWBASIC User's Manual</a>.
</p>
<div>
<asp:TextBox ID="basicSourceTB" runat="server" CssClass="TextArea"
TabIndex="1" TextMode="MultiLine">10 print "Hello, world!"
20 goto 10</asp:TextBox>
</div>
<h2>Step two: convert to JavaScript</h2>
<div>
<asp:Button ID="convertButton" runat="server" Text="Convert BASIC to JavaScript" TabIndex="1" CssClass="Button" />
</div>
<div>
<asp:TextBox ID="javascriptSourceTB" runat="server" CssClass="TextArea"
TabIndex="1" TextMode="MultiLine" onkeydown="return true;" onkeypress="return true;" onkeyup="return true;" />
</div>
<a name="stepThree"></a>
<h2>Step three: run your script</h2>
<div>
<asp:Button ID="runButton" runat="server" Text="Run Program" TabIndex="1" CssClass="Button" />
</div>
<div id="console" class="commodore64"></div>
<div style="clear:both;">
<strong>Console style: </strong>
<input type="radio" id="c64RB" checked="checked"
onclick="document.getElementById('console').className='commodore64';"
name="styleButtons" />
<label for="c64RB">Commodore 64</label>
<input type="radio" id="dosRB"
onclick="document.getElementById('console').className='dos';"
name="styleButtons" />
<label for="dosRB">DOS/GWBasic</label>
</div>
<script type="text/javascript">
function init() {
// revive the keypress events for the input controls
var inputs = document.getElementsByTagName('textarea');
for (var i = 0; i < inputs.length; i++) {
var input = inputs[i];
input.onfocus = function () { cancelKeyEffects = false; };
input.onblur = function () { cancelKeyEffects = true; };
}
}
init();
</script>
</form>
</body>
</html>
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.