launcher/src/main/resources/org/apidesign/bck2brwsr/launcher/console.xhtml
branchlauncher
changeset 323 d41cfd77842d
child 331 7328b7ba2fa4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/launcher/src/main/resources/org/apidesign/bck2brwsr/launcher/console.xhtml	Sat Dec 15 16:25:28 2012 +0100
     1.3 @@ -0,0 +1,54 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!--
     1.6 +
     1.7 +    Back 2 Browser Bytecode Translator
     1.8 +    Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     1.9 +
    1.10 +    This program is free software: you can redistribute it and/or modify
    1.11 +    it under the terms of the GNU General Public License as published by
    1.12 +    the Free Software Foundation, version 2 of the License.
    1.13 +
    1.14 +    This program is distributed in the hope that it will be useful,
    1.15 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.16 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.17 +    GNU General Public License for more details.
    1.18 +
    1.19 +    You should have received a copy of the GNU General Public License
    1.20 +    along with this program. Look for COPYING file in the top folder.
    1.21 +    If not, see http://opensource.org/licenses/GPL-2.0.
    1.22 +
    1.23 +-->
    1.24 +<!DOCTYPE html>
    1.25 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.26 +    <head>
    1.27 +        <title>Bck2Brwsr Launcher</title>
    1.28 +    </head>
    1.29 +    <body>
    1.30 +        <script src="bck2brwsr.js"></script>
    1.31 +        <script type="text/javascript">
    1.32 +            function ldCls(res) {
    1.33 +                var request = new XMLHttpRequest();
    1.34 +                request.open("GET", "classes/" + res, false);
    1.35 +                request.send();
    1.36 +                var arr = eval('(' + request.responseText + ')');
    1.37 +                return arr;
    1.38 +            }
    1.39 +            var vm = new bck2brwsr(ldCls);
    1.40 +        </script>
    1.41 +        <h1>Bck2Browser Console Launcher</h1>
    1.42 +        
    1.43 +        Class Name:
    1.44 +        <input id="clazz" value="org.apidesign.bck2brwsr.launcher.Console"/>
    1.45 +        <br/>
    1.46 +        Method Name:
    1.47 +
    1.48 +        <input id="method" value="welcome"/>
    1.49 +        <br/>
    1.50 +        
    1.51 +        <button onclick="vm.loadClass('org.apidesign.bck2brwsr.launcher.Console').execute__V();">Execute!</button>
    1.52 +        
    1.53 +        <hr/>
    1.54 +        <textarea id="result" rows="10" cols="80">
    1.55 +        </textarea>
    1.56 +    </body>
    1.57 +</html>