1
0

index.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{%= title %}</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  6. <meta name="author" content="{%= author_name %}"/>
  7. <script type='text/javascript' src='the.js'></script>
  8. </head>
  9. <body>
  10. <!-- EXAMPLE APP START -->
  11. <p>This is a sample app. It contains some
  12. <a href="parts.html">batteries included</a>
  13. and should be
  14. <a href="uninstall.html">cleaned up</a>
  15. once you start developing your own app / lib.</p>
  16. <button id="amber-with">Hello from TagBrush >> with:</button>
  17. <button id="silk-tag">Hello from Silk >> TAG:</button>
  18. <button id="jquery-append">Hello from jQuery append</button>
  19. <button id="console-log">Log into JS console</button>
  20. <button id="timeout-alert">Remind me in five seconds</button>
  21. <button id="lambda-status">Inspect status of backend</button>
  22. <ol id="output-list"></ol>
  23. <!-- EXAMPLE APP END -->
  24. <script type='text/javascript'>
  25. var globalThis = typeof globalThis === "undefined" ? window : globalThis || window;
  26. require(['app'], function (amberPromise) {
  27. amberPromise.then(function (amber) {
  28. amber.initialize({
  29. //used for all new packages in IDE
  30. 'transport.defaultAmdNamespace': "{%= namespace %}"
  31. }).then(function () {
  32. // This shows IDE dialog in development mode (module is present).
  33. // This silently fails in deploy mode (module is missing).
  34. // Thus, no need to have different page for deploy, leading to less bugs.
  35. require(["amber-ide-starter-dialog"], function (dlg) {
  36. dlg.start();
  37. });
  38. // Start the app itself.
  39. amber.globals.{%= name %}._start();
  40. });
  41. });
  42. });
  43. </script>
  44. </body>
  45. </html>