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

SageMath Cells ans CSS #68

Open
jxm-math opened this issue Mar 31, 2017 · 0 comments
Open

SageMath Cells ans CSS #68

jxm-math opened this issue Mar 31, 2017 · 0 comments

Comments

@jxm-math
Copy link
Collaborator

In the embedded SageMath Cells (see for instance http://mathifold.org/en/applet_hyperbolic_tessellations.html), the editor is currently hidden

{% if page.sage %}
  <script src="https://sagecell.sagemath.org/static/embedded_sagecell.js"></script>
  <script>$(function () {
  // Make *any* div with class 'compute' a Sage cell
  sagecell.makeSagecell({inputLocation: 'div.sage', hide: ["editor", "evalButton", "permalink"], autoeval: 1});
  });
  </script>
{% endif %}

(https://github.com/mathifold/mathifold/blob/master/_includes/head.html). However, it is desirable to show this editor, so that the user may see the code and change it if wanted, as in https://sagecell.sagemath.org/. But whenever one changes head.html,

sagecell.makeSagecell({inputLocation: 'div.sage', hide: ["evalButton", "permalink"], autoeval: 1});

the global CSS styles badly interfere with the code editor and it happens to be almost illegible. Which is the best solution for this problem?

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

No branches or pull requests

1 participant