-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
134 lines (111 loc) · 3.83 KB
/
index.html
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
<!doctype html>
<html lang="en-us">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-L2GSXEGN0N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-L2GSXEGN0N');
</script>
<title>A quick and dirty experiment on compiling Batari Basic programs on the Browser.</title>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
</head>
<body>
<a class="github-fork-ribbon" href="https://github.com/haroldo-ok/bb4web" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
<h1 class="title">A quick and dirty experiment on compiling Batari Basic programs on the Browser.</h1>
<style>
textarea {
white-space: pre;
}
.fill-vertically {
height: 60vh;
overflow-y: auto;
}
.full-height {
height: 100%;
}
.full-height-without-heading.textarea[rows] {
height: calc(100% - 3em);
}
.footer {
padding: 0;
}
.float-right {
float: right;
}
</style>
<div class="columns is-mobile">
<div class="column fill-vertically">
<div class="panel full-height is-primary">
<p class="panel-heading">
Input
<button id="compile-button" class="button is-outlined is-small float-right">
<span>▶️ Compile</span>
</button>
</p>
<textArea id="input" class="textarea is-family-code full-height-without-heading" rows="10">
rem Hello World
playfield:
................................
......X.X.XXX.X...X...XXX.......
......X.X.X...X...X...X.X.......
......XXX.XX..X...X...X.X.......
......X.X.X...X...X...X.X.......
......X.X.XXX.XXX.XXX.XXX.......
................................
.....X...X.XXX.XX..X...XX.......
.....X...X.X.X.X.X.X...X.X......
.....X.X.X.X.X.XX..X...X.X......
.....XX.XX.XXX.X.X.XXX.XX.......
end
COLUPF = 22
COLUBK = 2
mainloop
drawscreen
score = score + 1
goto mainloop
</textArea>
</div>
</div>
<div id="output" class="column fill-vertically">
<div class="panel is-warning">
<p class="panel-heading">Loading</p>
<textArea id="preprocess" class="textarea is-family-code">Please wait...</textArea>
</div>
</div>
<div class="column fill-vertically is-success">
<div class="panel is-success">
<p class="panel-heading">Results</p>
<div class="block"></div>
<div class="block">
<button id="downloadROM" class="button is-success" disabled>Download ROM</button>
</div>
<div id="javatari" class="block">
<div id="javatari-screen"></div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="panel is-danger">
<p class="panel-heading">Errors</p>
<textArea id="error" class="textarea is-family-code has-text-danger" style="color: red"></textArea>
</div>
</footer>
<script type="text/javascript" src="third-party/bb2600basic.js"></script>
<script type="text/javascript" src="third-party/bbpreprocess.js"></script>
<script type="text/javascript" src="third-party/dasm.js"></script>
<script type="text/javascript" src="third-party/FileSaver.js"></script>
<script src="https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js"></script>
<script src="https://cdn.jsdelivr.net/npm/underscore@1.12.0/underscore-min.js"></script>
<script type="text/javascript" src="fsContents.js"></script>
<script type="text/javascript" src="compiler.js"></script>
<script type="text/javascript" src="ui.js"></script>
<script src="third-party/javatari.js"></script>
</body>
</html>