Adding a simple math calculator

I need to add an on image click - popup simple math calculator

In Wix editor

What are you trying to achieve:
Adding a simple math calculator

What have you already tried:
Searched all day on the web, only able to find ROI, loan etc, calculators

Additional information:
I’m very new to Wix and html, so I’ll need simple instructions

Is this the kind of calculator you’re referring to? :thinking:

https://codepen.io/dino-didief/pen/xbKQpxp

1 Like

Yes, like that but just in a popup box. Pops up when a calculator image is clicked on.

If you find a safe MIT-licensed code, such as the calculator code mentioned earlier, and it’s already a complete HTML file, you can simply embed it into your Wix site using an iframe element.

To set it up, add a Lightbox to your site and place an iframe inside it to embed the calculator’s HTML code. Then, simply create a trigger to open the Lightbox. You can add a button (or even an image) to your page and assign an onClick event to it.

Finally, add the openLightbox() function inside the event handler, and you’re all set! :smiling_face_with_halo:

Thank you. It seems the light box with backgound covers the whole page. I just want a small popup with students able to see the original problem with the calculator on top

I see. How about placing a container element (with an iframe inside) in the bottom right corner of the screen and pinning it there? By pinning it, the calculator’s iframe will always stay in the bottom right corner, no matter how far you scroll. :innocent: