Download the PHP package jt782/require-read-terms-php without Composer
On this page you can find all versions of the php package jt782/require-read-terms-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jt782/require-read-terms-php
More information about jt782/require-read-terms-php
Files in jt782/require-read-terms-php
Package require-read-terms-php
Short Description Display modal for "terms and conditions", and require user read (scroll to bottom) and agree to those terms before submitting form.
License MIT
Homepage https://github.com/jt782/require-read-terms-php
Informations about the package require-read-terms-php
Require Read/Agree to Terms on Form
Display modal for "terms and conditions", and require user read (scroll to bottom) and agree to those terms before submitting form.
Installation
You can install the package via composer:
Usage
-
Initialize class with form target (e.g. ".class" or "#id") and terms content:
- You can modify the following values with these methods:
- Agree Button Text:
- Agree Button Color:
- Cancel Button Text:
- Cancel Button Color:
- Width:
-
Within the form, load content and display button:
- If you want more control of the placement of the button vs the script, you can load them separately:
- For button display:
- For script output:
- If you have a checkbox for agree to terms, you can hide it visually and have the package check it once the user has agreed to terms:
Example
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- John Todd
- All Contributors
License
The MIT License (MIT). Please see License File for more information.