0.1.3 • Published 3 years ago
form4free v0.1.3
The Lector Experience
🚀 Demo
Hi
First time:
git clone git@github.com:robo-monk/lector.git
cd freeform
yarn install
- Python 3 required (prefferably installed with
brew
) - virtualenv (
pip install virtualenv
)
Run this to compile the code when you make changes:
Depends on your package manager (my recommendation would be yarn
)
source setup yarn
source setup npm
Install
Use npm or yarn:
yarn install freeform
Set up
Blah
freeform.injectStyles()
const end = `
<div class='end-message'>
<h1> Thanks for participating </h1>
</div>
`
freeform.createForm(
["@Persona What are you going to use Fready for?",
"$work Work",
"$bigbrain My own thing",
["$university University", [
'@UniDiscipline What discipline?',
'$social Social Sciences',
"$stem STEM",
'$money Economics',
'$law Law',
'$art Art',
'$other Other'
]]
],
["@Problem What are you seeking to improve?",
"$focus Focus",
"$time Time",
"$comprehension Comprehension",
"$mountain I don't know"
]).on('done', function(results) {
this.html(end)
console.log('DONEE', results)
})