From 2a5fb8ca693c423f72dd81046ddba3a7263eb48d Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 1 Mar 2022 09:26:51 -0500 Subject: [PATCH] cleanup and reogranization --- build.sh | 5 +++-- www/index.html | 46 +++++++++++++++++++++++----------------------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/build.sh b/build.sh index 82db915..a7e7f82 100755 --- a/build.sh +++ b/build.sh @@ -7,7 +7,8 @@ llvm-strip --strip-all pkg/integral_site_bg.wasm rm -fr tmp | true #delete tmp folder if exists mkdir tmp tmp/pkg -cp -r pkg/integral_site_bg.wasm pkg/integral_site.js tmp/pkg/ +cp -r pkg/integral_site_bg.wasm pkg/integral_site.js tmp/ cp www/index.html www/style.css tmp/ -sed -i 's/\.\.\/pkg/\.\/pkg/g' tmp/index.html \ No newline at end of file +echo "Total size: $(du -sb tmp)" +echo "Binary size: $(du -sb tmp/integral_site_bg.wasm)" \ No newline at end of file diff --git a/www/index.html b/www/index.html index 60bfafc..1a56c59 100644 --- a/www/index.html +++ b/www/index.html @@ -1,33 +1,33 @@ - - + + - - Integral Demonstration - - + + Integral Demonstration + + - -
-

- Loading… -

-
-
+ +
+

+ Loading… +

+
+
- +