author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Sat, 15 Dec 2012 22:46:26 +0100 | |
branch | launcher |
changeset 331 | 7328b7ba2fa4 |
parent 323 | d41cfd77842d |
child 332 | 6949044415df |
permissions | -rw-r--r-- |
jaroslav@323 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
jaroslav@323 | 2 |
<!-- |
jaroslav@323 | 3 |
|
jaroslav@323 | 4 |
Back 2 Browser Bytecode Translator |
jaroslav@323 | 5 |
Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
jaroslav@323 | 6 |
|
jaroslav@323 | 7 |
This program is free software: you can redistribute it and/or modify |
jaroslav@323 | 8 |
it under the terms of the GNU General Public License as published by |
jaroslav@323 | 9 |
the Free Software Foundation, version 2 of the License. |
jaroslav@323 | 10 |
|
jaroslav@323 | 11 |
This program is distributed in the hope that it will be useful, |
jaroslav@323 | 12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
jaroslav@323 | 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
jaroslav@323 | 14 |
GNU General Public License for more details. |
jaroslav@323 | 15 |
|
jaroslav@323 | 16 |
You should have received a copy of the GNU General Public License |
jaroslav@323 | 17 |
along with this program. Look for COPYING file in the top folder. |
jaroslav@323 | 18 |
If not, see http://opensource.org/licenses/GPL-2.0. |
jaroslav@323 | 19 |
|
jaroslav@323 | 20 |
--> |
jaroslav@323 | 21 |
<!DOCTYPE html> |
jaroslav@323 | 22 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
jaroslav@323 | 23 |
<head> |
jaroslav@323 | 24 |
<title>Bck2Brwsr Launcher</title> |
jaroslav@323 | 25 |
</head> |
jaroslav@323 | 26 |
<body> |
jaroslav@323 | 27 |
<script src="bck2brwsr.js"></script> |
jaroslav@323 | 28 |
<script type="text/javascript"> |
jaroslav@323 | 29 |
function ldCls(res) { |
jaroslav@323 | 30 |
var request = new XMLHttpRequest(); |
jaroslav@323 | 31 |
request.open("GET", "classes/" + res, false); |
jaroslav@323 | 32 |
request.send(); |
jaroslav@323 | 33 |
var arr = eval('(' + request.responseText + ')'); |
jaroslav@323 | 34 |
return arr; |
jaroslav@323 | 35 |
} |
jaroslav@323 | 36 |
var vm = new bck2brwsr(ldCls); |
jaroslav@323 | 37 |
</script> |
jaroslav@323 | 38 |
<h1>Bck2Browser Console Launcher</h1> |
jaroslav@323 | 39 |
|
jaroslav@323 | 40 |
Class Name: |
jaroslav@331 | 41 |
<input id="clazz" value="$0"/> |
jaroslav@323 | 42 |
<br/> |
jaroslav@323 | 43 |
Method Name: |
jaroslav@323 | 44 |
|
jaroslav@331 | 45 |
<input id="method" value="$1"/> |
jaroslav@323 | 46 |
<br/> |
jaroslav@323 | 47 |
|
jaroslav@323 | 48 |
<button onclick="vm.loadClass('org.apidesign.bck2brwsr.launcher.Console').execute__V();">Execute!</button> |
jaroslav@323 | 49 |
|
jaroslav@323 | 50 |
<hr/> |
jaroslav@331 | 51 |
<textarea id="result" rows="10" cols="80" disabled=""> |
jaroslav@323 | 52 |
</textarea> |
jaroslav@331 | 53 |
|
jaroslav@331 | 54 |
<script type="text/javascript"> |
jaroslav@331 | 55 |
if ($2) { |
jaroslav@331 | 56 |
vm.loadClass('org.apidesign.bck2brwsr.launcher.Console').execute__V(); |
jaroslav@331 | 57 |
} |
jaroslav@331 | 58 |
</script> |
jaroslav@323 | 59 |
</body> |
jaroslav@323 | 60 |
</html> |