Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed code for Math3d objects #348

Open
lunarbrogue opened this issue Jun 27, 2022 · 2 comments
Open

Embed code for Math3d objects #348

lunarbrogue opened this issue Jun 27, 2022 · 2 comments

Comments

@lunarbrogue
Copy link

I'm creating a Numbas assessment item involving use of a triple integral. Math3d is the simplest, fastest and most elegant tool I have yet found for visualising 3d mathematical phenomena (in my case, a tetrahedron and various other features related to the integral).

The only way I have been able to include a Math3d object in the question is as an iframe. But this has certain defaults that are undesirable - eg, left-hand sidebar accessible and open, topbar viewable.

It would be great if it were possible to embed a Math3d object (with suitable attribution) in such a way that only the graphic is shown or, more flexibly, there are options with the embed code widget that enable user configuration.

Thanks for building and offering to the world this excellent resource.

@siriwarwick
Copy link

Hi. This is a long overdue reply as I've just been sent this thread by a colleague.
I use Math3d as well - I think it's wonderful. I have been using iframe to cut away everything but the graphics. For example, try embedding this.

<iframe scrolling="no" src="https://www.math3d.org/nSenaOOr" style="border: 0px none; margin-left: -450px; height: 600px; margin-top: -50px; width: 1000px;"> </iframe>

Another way is to use Plotly in Javascript.

@lunarbrogue
Copy link
Author

Thanks siriwarwick. That worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants