<!DOCTYPE html>
<html onload="">

<head>
    <title>ONCE 1.0.0 index.html</title>
    <meta charset="utf-8">
    <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0">

    <script>
        class App {
            static start() {
               document.body.append("Hello World ;)");
                   WebBeans = WebBeans.getInstance();
               return "Hello World ;)";
            }
            constructor {
            }

            static init() {
               console.log("start loading App components...");
               return "start loading App components...";
            }
            static loadDescriptor() {
               console.log("loading "+component.value);
               var ior = new IOR().init(component.value);
               ONCE.start(ior).then(
               aClass => {
                   console.log("loaded ",aClass.type.name);
                   if (aClass.demo)
                      aClass.demo();

               });

//               Thinglish.loadAndStartAll(null,[ior]);
               return null;
            }
        }
        
    </script>
    <script src="/EAMD.ucp/Components/tla/EAM/layer1/Thinglish/Once/1.0.0/src/js/Once.class.js" type="text/javascript"></script>

    <style type="text/css">
        html,
        body {
            height: 100%;
            overflow: auto
        }
        
        .fullHeight {
            height: 100%;
        }
        
        header,
        footer,
        .panel-heading,
        .panel-footer {
            height: 10%;
            background-color: lightblue;
        }
        
        .content,
        .panel-body {
            height: 80%;
            overflow-y: scroll
        }
    </style>
</head>

<body>
    <label for="component">Absoluter Pfad zu einem EAMD.ucp ComponentenDescriptor
        <input size="100" type="text" name="descriptorAbsoluteFilename" id="component" value="/EAMD.ucp/Components/ski/kornel/SlipJS/2.1.0-Once/SlipJS.component.xml">
    </label>
    <a class="btn btn-default"href="javascript:App.loadDescriptor()">load</a>
    <div id="weBeanRoot" drop>
    </div>

</body>

</html>