forked from martin-pabst/Online-IDE-new-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembedded.html
More file actions
83 lines (62 loc) · 2.18 KB
/
embedded.html
File metadata and controls
83 lines (62 loc) · 2.18 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Embedded-Test</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<script type="module" src="/src/client/embedded/EmbeddedStarter.ts"></script>
</head>
<body>
<h1>Erstes Beispiel</h1>
<div class="java-online" style="width: calc(100% - 10px); height: 500px; margin-left: 5px" data-java-online="{
'id': 'abcd',
'speed': 'max',
'withFileList': true,
'hideEditor': false,
'hideStartPanel': false,
'libraries': ['nrw'],
'settings': {
'compiler.shadowedSymbolErrorLevel': 'error'
},
'withClassDiagram': true
}">
<script type="text/plain" title="Test1.java" data-type="java">
String test(){
println("test() wurde aufgerufen");
return "x";
}
boolean b = true;
String a = b ? "true" : test();
println(a);
</script>
</div>
<!-- <h1>Zweites Beispiel</h1>
<div class="java-online" style="width: calc(80% - 10px); height: 300px; margin-left: 5px" data-java-online="{
'withFileList': true,
'withPCode': false,
'withConsole': false,
'withErrorList': false,
'id': 'abcd2',
'spritesheetURL': 'assets/test_spritesheets/JavaKara-Spritesheet.zip'
}">
<script type="text/plain" title="Test1.java" data-type="java" src="assets/test_programs/test1.java">
</script>
<script type="text/plain" title="Test2.java" data-type="java" src="assets/test_programs/test2.java">
</script>
</div> -->
<!-- <h1>Drittes Beispiel</h1>
<div class="java-online joeCssFence" style="width: 100%; height: 70vh; margin-left: 5px" data-java-online="{
'withBottomPanel': true,
'id': 'abcd3',
'libraries': ['nrw']
}">
<script type="text/plain" title="Test2.java" data-type="java">
World w = new World();
new Circle(200, 200, 100);
</script>
<script type="text/plain" title="Test3.java" data-type="java">
println("Hier!");
</script>
</div> -->
</body>
</html>