Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement an embed mode for use within an iframe #84
This is somewhere between an RFC and a ready-to-merge PR, so I won't be offended if you don't like the idea or feel it should be implemented in a better or more generally useful way...
Some background: I've been investigating adding embedded instances of jsbeeb to my (long neglected) online conversion of the 8BS Magazine as part of an overhaul, so that the programmes contained on the disks can be run without the user having to download the disc image and fire-up an emulator.
This PR adds a new URL parameter of
Specifically, the 'Discs', 'Cassettes', 'Share' and 'Contact' drop-downs are hidden: disc and cassette selection as it would be expected that an embedded instance would be pre-loaded with a disk or tape and share and contact as they are rather confusing if the app is embedded in a third-party site. The 'About' entry is also changed to 'About jsbeeb', again for clarity.
This PR also sets the href of the navbar header to http://bbc.godbolt.org/ so that interested users can easily click through to the main jsbeeb page if they are using an embedded instance.
Aug 31, 2015
1 check was pending
Thanks for thinking of that :) As long as we can put some kind of thing at
On Mon, Aug 31, 2015 at 8:17 AM, Matt Robinson email@example.com
Just got the site to a good-enough state locally to push my work in progress live - currently I'm just giving the option from each disc index to emulate it in jsbeeb (e.g. http://8bs.nerdoftheherd.com/8BS56-2/emulate/), but will eventually add emulation pages for individual basic and machine code items.
Very cool (I had to fiddle the URL to be
On Sat, Sep 26, 2015 at 12:53 PM, Matt Robinson firstname.lastname@example.org
Oops! I seem to be making a habit of sending people URLs to my (only locally accessible) test systems...
Thanks, will do. Not sure about the LEDs really - they are informative, but they don't sit quite right when overlapping the monitor. Perhaps some CSS rules to hide the labels when the browser viewport is less than the height of the CUB Monitor + the height of the LED panel?