wotc-form
Version:
A javascript snippet 8850 form for wotc.com.
48 lines (34 loc) • 1.3 kB
Markdown
# WOTC.com JavaScript Screening Form
An embedded JavaScript snippet to generate the WOTC.com screening form directly in your website or application.

### Basic Implementation
```html
<form id="specialForm"></form>
<script src="https://cdn.jsdelivr.net/gh/wotc-com/wotc-form@master/build/js/forms.js"></script>
<script>
WotcForm.init('specialForm', {
groupId: 484158277, // required
formId: 589972586, // required
data: { // optional to prefill form
name: 'Bob Hope',
dob: '1903-05-29'
}
});
</script>
```
## React
### Installation
```sh
npm install
```
> NOTE: Importing directly to a React project and using a react component has not been tested. Currently only testing has been direct front-end implementation.
### Start Dev Server
```sh
npm run start
```
### Features:
- ES6 Support via [babel](https://babeljs.io/) (v7)
- JavaScript Linting via [eslint](https://eslint.org/)
- SASS Support via [sass-loader](https://github.com/jtangelder/sass-loader)
- Autoprefixing of browserspecific CSS rules via [postcss](https://postcss.org/) and [postcss-preset-env](https://github.com/csstools/postcss-preset-env)
- Style Linting via [stylelint](https://stylelint.io/)