-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (53 loc) · 1.19 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>playground</title>
<link rel="icon" type="image/png" href="logo.png">
<link rel="shortcut icon" href="logo.png">
<link href='http://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css' />
<link href='codemirror.css' rel='stylesheet' type='text/css' />
<script src="codemirror.js"></script>
<script src="build/js/bundles/bundle-jsweet.js"></script>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
border: 0;
height: 100%;
font-family: 'Poiret One', cursive;
font-size: 18px;
}
.languagePanel {
float: left;
width: 48%;
margin: 1%;
padding: 0;
}
.languagePanel textarea {
width: 100%;
height: 300px;
}
</style>
</head>
<body>
<div class="languagePanel">
Java: <br />
<textarea id="javaEditor">
package org.jsweet;
import static jsweet.dom.Globals.alert;
public class HelloWorld {
public static void main(String[] args) {
alert("Hello you!");
}
}
</textarea>
</div>
<div class="languagePanel">
JS: <br />
<textarea id="jsEditor"></textarea>
<button>run it!</button>
</div>
</body>
</html>