Newer
Older
imgui-js / example / index.html
@Isaac Burns Isaac Burns on 13 Feb 2018 813 bytes allow imgui_impl.ts to be used externally
<html>
  <head>
    <title>ImGui JavaScript+WebGL example</title>
    <!-- <script type="text/javascript" src="../node_modules/systemjs/dist/system.src.js"></script> -->
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.20.19/system.src.js"></script>
    <script type="text/javascript">
    window.addEventListener("load", function(event) {
      SystemJS.config({
        paths: {
          "imgui-js": ".."
        },
        packages: {
          "imgui-js": {
            main: "imgui.js",
            defaultExtension: 'js',
            meta: { "bind-imgui.js": { exports: "Module" } }
          }
        }
      });
      SystemJS.import("./main")
      .then(function (main) { main.default(); })
      .catch(console.error);
    });
    </script>
  </head>
</html>