Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nimon

    (@nimon)

    Hm. I just opened my site in Chromium instead of Firefox and the content loads with no problem. It appears this is a browser problem, so maybe you shouldn’t waste your time.

    Thanks a million.

    Thread Starter nimon

    (@nimon)

    Hi there,

    I wasn’t aware this could affect it! The iframe is from a website called geogebra which allows you to make maths applets so students can muck about with them. Here’s an example:

    <iframe style="border: 0px;" src="https://tube.geogebra.org/material/iframe/id/HK36WiSK/width/1024/height/445/border/888888/rc/false/ai/false/sdz/true/smb/false/stb/false/stbh/true/ld/false/sri/true/at/auto" scrolling="no" height="445px" width="1024px"> </iframe>

    I’m actually just using a function with shortcode to get the id, for example
    [ggb id='HK36WiSK']
    which just echoes the whole iframe tag above with the id in the required place in the url.

    Any advice would be greatly appreciated.

    Hi,

    I have just been working on the same thing! I’m not sure if you have made any progress by now but in case you haven’t, here is what I have found to work.

    Using the snippet tool, include only the lines

    <script src="https://sagecell.sagemath.org/static/jquery.min.js"></script>
    <script src="https://sagecell.sagemath.org/static/embedded_sagecell.js"></script>
    <script>sagecell.makeSagecell({"inputLocation": ".sage"});</script>
    <link rel="stylesheet" type="text/css" href="https://sagecell.sagemath.org/static/sagecell_embed.css">

    Make sure that the snippet tool is set to include this in the Header of the page.

    Now make sure the snippet tool is active on the page your working on, say Sage Test. Edit the page Sage Test and in the Text part of the editor (not the Visual) try and type

    <div class="sage">
      <script type="text/x-sage">1+2</script>
    </div>

    You should get a sage cell on the page Sage Test which computes 1 + 2 and gives the answer 3. I tried to combine this with a VibeTheme and it did not work, then I tried it with a simpler theme (Sumo) and it worked a charm!

    I hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)