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_java.html
More file actions
52 lines (42 loc) · 1.45 KB
/
Copy pathembedded_java.html
File metadata and controls
52 lines (42 loc) · 1.45 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
<!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>
<!-- <script>
window.online_ide_onReady = () => {
let ide = window.online_ide_access.getIDE('abcd');
ide.registerOnRunExitListener((exitStatus)=>{
console.log(`overall: ${exitStatus.testProgress.overall} passed: ${exitStatus.testProgress.passed} failed: ${exitStatus.testProgress.failed}`);
console.log(exitStatus);
});
}
</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': [''],
'spritesheetURL': '/assets/test-spritesheets/Campfire.zip',
'settings': {
'compiler.shadowedSymbolErrorLevel': 'error'
},
'withClassDiagram': true,
'enableRunExitStatusAccess': true
}">
<script type="text/plain" title="Program.java" data-type="java">
for(int i = 0; i < 10; i++){
println(i);
}
System.exit(0);
</script>
</div>
</body>
</html>