From cb22adeb6286ab5186f050c6237f67d81766401e Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Thu, 23 Aug 2018 23:58:35 -0400 Subject: [PATCH] started on Share Embed Link; removed emubevel class; load support scripts at runtime --- css/ui.css | 18 +- doc/notes.txt | 1 - embed.html | 176 + index.html | 25 +- lib/clipboard.min.js | 7 + lib/liblzg.js | 12403 +++++++++++++++++++++++++++++++++++++++ package-lock.json | 135 + package.json | 2 + src/emu.ts | 8 +- src/platform/apple2.ts | 2 +- src/ui.ts | 55 +- src/util.ts | 63 +- test/cli/testutil.js | 2 +- 13 files changed, 12846 insertions(+), 51 deletions(-) create mode 100644 embed.html create mode 100644 lib/clipboard.min.js create mode 100644 lib/liblzg.js diff --git a/css/ui.css b/css/ui.css index d22eb759..989332c3 100644 --- a/css/ui.css +++ b/css/ui.css @@ -215,21 +215,17 @@ div.emulator { margin-top: 20px auto 0; height:100%; } -.emubevel { - width:100%; - height:100%; - padding:5%; - background:#555; -} +/* has to be here b/c renders differently after first load if in inline style */ .emuvideo { border-radius:20px; border: 4px solid #222; - padding: 30px; - margin-top: 10px; - margin-bottom: 10px; - background: #000; outline-color: #666; - width: 100%; + padding: 30px; + background: #000; + margin-top:40px; + margin-left:7.5%; + margin-right:7.5%; + width: 85%; } canvas.pixelated { image-rendering: optimizeSpeed; /* Older versions of FF */ diff --git a/doc/notes.txt b/doc/notes.txt index a56e4484..50ac5f23 100644 --- a/doc/notes.txt +++ b/doc/notes.txt @@ -35,7 +35,6 @@ TODO: - update Javatari version? (and others?) - unify versioning - more UI tests -- base-36 encoding for LZG - disassembler for uploaded ROMs - show tool-specific (readonly) include files - verilog debugging/reloading makes it slow diff --git a/embed.html b/embed.html new file mode 100644 index 00000000..f9e6f9db --- /dev/null +++ b/embed.html @@ -0,0 +1,176 @@ + + + +8bitworkshop IDE + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index.html b/index.html index 0d058843..4cd53c39 100644 --- a/index.html +++ b/index.html @@ -48,11 +48,11 @@ if (window.location.host.endsWith('8bitworkshop.com')) {