Zooming HTML5 Geogebra embedded in offline html5 page in an iframe

zozo77 shared this question 3 years ago
Answered

Hi!

I'm working on a project where we are trying to produce GeoGebra interactions with some accessibility options. GeoGebra interactions are embedded in an iframe in static html5 page and work very well on most devices, even offline. We would like to implement a button, outside of the GeoGebra applet, that would zoom GeoGebra to available screen space (in a layer, popup window or whatever). Is there any example, tutorial, guidelines or something about zooming GeoGebra?

Zoran

Comments (2)

photo
1

That's not possible using iframe, you will need to use this method:

https://wiki.geogebra.org/e...


and then you can send regular GeoGebra commands to zoom using ggbApplet.evalCommand()

https://wiki.geogebra.org/e...

photo
1

Solved but with different solution. Instead using ggbApplet.evalCommand() that can be used for individual objects of the applet, I used more universal method of zooming. Switching parameter "allowUpscale" from false to true, zooms the applet to available space without distortion.

Here's an example: http://elearning.algebra.hr....

No iFrames, as you suggested.

© 2021 International GeoGebra Institute