CAS Popup Examples#

This page demonstrates the cas-popup directive, which creates a button that opens a GeoGebra CAS (Computer Algebra System) window in a popup dialog.

Basic Usage#

Default 350x500 CAS window:

Custom Size#

A larger 600x700 window:

Custom Button Text and Title#

Custom button text and dialog title:

Norwegian Text#

Using Norwegian text for button and title:

Multiple CAS Windows#

You can have multiple CAS windows on the same page:

Features#

The CAS popup directive includes:

  • Resizable and draggable dialog window

  • Scroll-locking when interacting with GeoGebra (prevents page scrolling)

  • Theme-aware styling (adapts to light/dark mode)

  • Touch support for mobile devices

  • Customizable size, text, and layout

  • Norwegian language support in GeoGebra interface

Technical Details#

The directive:

  • Uses jQuery UI for dialog functionality

  • Loads GeoGebra’s CAS perspective

  • Handles window resizing gracefully

  • Prevents background scrolling during interaction

  • Supports multiple instances on the same page