General
The Clinch - Legal Box: PreExpanded widget adds a legal overlay that appears in a pre-expanded area. It includes customizable options for dimensions, auto-scrolling, and other attributes. This overlay is ideal for pharmaceutical and similar ad types that require legal information to be displayed without user interaction. Read more about how to access The Widget Editor.
Important: The JavaScript for this widget is centrally hosted by Clinch. If you’d like to customize the JavaScript, you may create your own widget by copying/duplicating the code directly in your widget or hosting the new .js file in your account asset library and revising the .js script location.
Usage Guide Sections
This usage guide provides Widget Editor UI references for the widget's following sections:
Widget Editor UI
Section: Drawer
| Attributes | Type, Default Value | Purpose |
| Text | TEXTAREA, default Lorem ipsum… | Injects HTML content into the drawer |
| Font | FONT, default "" | Defines the font family and weight for all drawer text. |
| Font Size (px) | NUMBER, px, default 10 | Sets the base font size (in px) for the drawer |
| Text Color | COLOR, default #000000 | Sets the color of text inside the scrolling content. |
| Text Alignment | SELECT, default left | Sets horizontal text alignment inside the drawer:
|
| Top Padding (px) | NUMBER, px, default 16 | Defines the top padding (in px) of the content container. |
| Horizontal Padding (px) | NUMBER, px, default 16 | Applies left/right padding (in px) around the content |
| Bottom Padding (px) | NUMBER, px, default 16 | Defines the bottom padding (in px) of the content container. |
| Background Color | COLOR, default #ffffff | Applies the drawer backdrop color. |
| Transparency (%) | NUMBER, %, default 90 | Drawer background opacity percentage. |
Section: Scroll
| Attributes | Type, Default Value | Purpose |
| Auto Scroll | BOOLEAN, default Yes | Enables or disables automatic vertical scrolling of the drawer text. |
| Auto Scroll Speed | NUMBER, fps, default 30 | Controls the frame rate for smooth scrolling (frames per second). |
| Auto Scroll Duration | NUMBER, s, default 15 | Duration in seconds before auto-scroll stop. |
| Auto Scroll Start Delay | NUMBER, s, default 2 | Delay in seconds before auto-scroll begins. |
Section: Scroll Bar
| Attributes | Type, Default Value | Purpose |
| Track Color | COLOR, default #cccccc | Color of the scrollbar's track in the drawer. |
| Thumb Color | COLOR, default #999999 | Color of the scrollbar's thumb in the drawer. |