Skip to content

Commit 99c0ac5

Browse files
committed
html templates
1 parent f865796 commit 99c0ac5

3 files changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html><title>SwingJS test _NAME_</title>
3+
<head><meta charset="utf-8" />
4+
<script src="swingjs/swingjs2.js"></script>
5+
<script>
6+
if (!self.Clazz)alert('swingjs2.js was not found')
7+
Info = {
8+
code: _CODE_,
9+
main: _MAIN_,
10+
width: 850,
11+
height: 550,
12+
serverURL: 'http://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
13+
j2sPath: '.',
14+
console:'sysoutdiv',
15+
allowjavascript: true
16+
}
17+
</script>
18+
</head>
19+
<body>
20+
<script>
21+
SwingJS.getApplet('testApplet', Info)
22+
</script>
23+
<div style="position:absolute;left:900px;top:30px;width:600px;height:300px;">
24+
<div id=sysoutdiv style="border:1px solid green;width:100%;height:95%;overflow:auto"></div>
25+
This is System.out. <a href="javascript:testApplet._clearConsole()">clear it</a>
26+
</div>
27+
</body>
28+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/bin/
2+
/site/
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html><title>SwingJS test _NAME_</title>
3+
<head><meta charset="utf-8" />
4+
<script src="swingjs/swingjs2.js"></script>
5+
<script>
6+
if (!self.SwingJS)alert('swingjs2.js was not found. It needs to be in swingjs folder in the same directory as ' + document.location.href)
7+
Info = {
8+
code: _CODE_,
9+
main: _MAIN_,
10+
width: 850,
11+
height: 550,
12+
serverURL: 'http://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
13+
j2sPath: 'swingjs/j2s',
14+
console:'sysoutdiv',
15+
allowjavascript: true
16+
}
17+
</script>
18+
</head>
19+
<body>
20+
<script>
21+
SwingJS.getApplet('testApplet', Info)
22+
</script>
23+
<div style="position:absolute;left:900px;top:30px;width:600px;height:300px;">
24+
<div id=sysoutdiv style="border:1px solid green;width:100%;height:95%;overflow:auto"></div>
25+
This is System.out. <a href="javascript:testApplet._clearConsole()">clear it</a>
26+
</div>
27+
</body>
28+
</html>

0 commit comments

Comments
 (0)