Skip to content

Commit a97324a

Browse files
authored
did some output magic
1 parent b6ad92d commit a97324a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

JAGL/JAGL.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
JAGL - Just a Golf Language<br>
2-
<input type="text" placeholder="code" id="code">
3-
<input type="text" placeholder="input" id="input"><br>
2+
<input type="text" placeholder="code" id="c">
3+
<input type="text" placeholder="input" id="i"><br>
44
output:<p id="out"></p>
5-
<input type="button" value="Execute" onclick="ce()">
5+
<input type="button" value="Execute" onclick="ce()"><br>
66
<script>
7-
function ce():
8-
i=prompt("Hello, world?")
9-
alert(i)
7+
function ce(){
8+
c=document.getElementById("c").value;
9+
i=document.getElementById("i").value;
10+
o=[]
11+
alert(c+", "+i)
12+
}
1013
</script>

0 commit comments

Comments
 (0)