index.html 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Amber Mini MVP</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  6. <meta name="author" content="Herby Vojčík"/>
  7. <script type='text/javascript' src='the.js'></script>
  8. </head>
  9. <body>
  10. <script type='text/javascript'>
  11. var global = typeof global === "undefined" ? window : global || window;
  12. require(['app'], function (amberPromise) {
  13. amberPromise.then(function (amber) {
  14. amber.initialize({
  15. //used for all new packages in IDE
  16. 'transport.defaultAmdNamespace': "mini-mvp"
  17. }).then(function () {
  18. // This shows IDE dialog in development mode (module is present).
  19. // This silently fails in deploy mode (module is missing).
  20. // Thus, no need to have different page for deploy, leading to less bugs.
  21. require(["amber-ide-starter-dialog"], function (dlg) {
  22. dlg.start();
  23. });
  24. });
  25. });
  26. });
  27. </script>
  28. </body>
  29. </html>