holding the calculator iframe. The iframe is written here so it has * an accessible title and shows even when a caching plugin delays JavaScript. ActiveCalculator's embed.js * then takes over the existing iframe and resizes it to the calculator's height. * * @package activecalculator */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Starting height of the calculator iframe, in pixels, before embed.js resizes it. */ define( 'ACTIVECALCULATOR_INITIAL_HEIGHT', 600 ); /** * Pattern for calculator IDs: cuid/cuid2 (20–32 letters and digits) or a uuid. Hyphenated words such as a * custom link name must not match. Kept in sync with src/utils/parse-calculator-input.js. */ define( 'ACTIVECALCULATOR_ID_PATTERN', '/^(?:[a-z0-9]{20,32}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/i' ); /** * Turns a calculator ID, embed code or ActiveCalculator link into a calculator ID. * * Accepts a bare ID, the embed code from Share → Embed (