wotc-form
v1.0.36
Published
A javascript snippet 8850 form for wotc.com.
Downloads
9
Maintainers
Readme
WOTC.com JavaScript Screening Form
An embedded JavaScript snippet to generate the WOTC.com screening form directly in your website or application.
Basic Implementation
<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
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
npm run start
Features:
- ES6 Support via babel (v7)
- JavaScript Linting via eslint
- SASS Support via sass-loader
- Autoprefixing of browserspecific CSS rules via postcss and postcss-preset-env
- Style Linting via stylelint