diff --git a/tools/3rs-orbit/.gitignore b/tools/3rs-orbit/.gitignore new file mode 100644 index 0000000..fc5bd90 --- /dev/null +++ b/tools/3rs-orbit/.gitignore @@ -0,0 +1 @@ +/pkg diff --git a/tools/3rs-orbit/index.html b/tools/3rs-orbit/index.html new file mode 100644 index 0000000..c03e88c --- /dev/null +++ b/tools/3rs-orbit/index.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <meta content="text/html;charset=utf-8" http-equiv="Content-Type"/> + <script type="module" src="index.js"></script> + <style> + html, body { + height: 100%; + } + </style> + </head> + <body> + <button id="open-computer">Open From Computer</button> + <canvas style="position: absolute;top:0;bottom: 0;left: 0;right: 0;margin:auto;"></canvas> + <canvas style="position: absolute;top:0;bottom: 0;left: 600;right: 0;margin:auto;"></canvas> + </body> +</html> diff --git a/tools/3rs-orbit/index.js b/tools/3rs-orbit/index.js new file mode 100644 index 0000000..0f1b5c1 --- /dev/null +++ b/tools/3rs-orbit/index.js @@ -0,0 +1,11 @@ +import init from './pkg/web.js'; + +async function run() { + try { + await init(); + } catch(e) { + console.error(e); + } +} + +run(); diff --git a/tools/index.html b/tools/index.html index b57d8fa..96540f5 100644 --- a/tools/index.html +++ b/tools/index.html @@ -15,6 +15,7 @@ <p>This is just a collection of tools or stuff I've made, out there for any to use.</p> <ul> <li><a href="qalc">qalc</a> - Popular libqalculate tool compiled for the web</li> + <li><a href="3rs-orbit">3rs-orbit</a> - Just <a href="https://github.com/javalsai/3rs-orbit/">a wasm project</a> built and hosted on my website to test it. Prob not the at the latest commit.</li> </ul> </main> <!--# include virtual="/components/footer.html" -->