threepipe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Threepipe Svelte Sample</title>
  6. <!-- Import maps polyfill -->
  7. <!-- Remove this when import maps will be widely supported -->
  8. <script async src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script>
  9. <script type="importmap">
  10. {
  11. "imports": {
  12. "threepipe": "./../../dist/index.mjs"
  13. }
  14. }
  15. </script>
  16. <style>
  17. html, body{
  18. width: 100%;
  19. height: 100%;
  20. margin: 0;
  21. overflow: hidden;
  22. }
  23. </style>
  24. <script type="module" src="../examples-utils/simple-code-preview.mjs"></script>
  25. <script src="./../../dist/index.js"></script>
  26. <!-- <script src="https://unpkg.com/threepipe"></script>-->
  27. <script src="https://unpkg.com/svelte-browser-import@0.0.5"></script>
  28. </head>
  29. <body>
  30. <div id="app">
  31. </div>
  32. <script type="module" data-scripts="./App.svelte" id="example-script">
  33. window["svelte-browser-import"].importSvelte('./App.svelte').then(App=> {
  34. const app = new App({
  35. target: document.getElementById('app'),
  36. })
  37. // to destroy the app
  38. // app.$destroy()
  39. })
  40. </script>
  41. </body>
  42. </html>