summaryrefslogtreecommitdiff
path: root/site (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-04-08site: implement accessibility hints of WAVEstuebinm1-17/+25
This implements some accessibility guidelines, as hinted at by WAVE [1]: - labels for textareas - fieldsets for multiple-choice answers One thing that's still missing is a set language, which I guess will be best implemented together with an actual language switcher. [1] https://wave.webaim.org/
2021-04-08site: better html attributesstuebinm2-3/+4
(i.e. defined charset & a main tag)
2021-04-08site: better error messagesstuebinm2-34/+47
this includes styling error messages red, and displaying error messages in case not all answers were answered as required (for now, this just means that not selecting any option in radio buttons is disallowed in general, as so far there are no corresponding config fields).
2021-04-07site: sensible sizes for textareasstuebinm1-0/+7
2021-04-07site: better error messagesstuebinm1-14/+27
this includes deduplicating some code, and attempts at error messages for files which could not be parsed as json but aren't actually valid age-encrypted files (there doesn't seem to be some easy way to validate that these files are valid age files without knowing the key).
2021-04-07site: add visual feedback on survey submissionstuebinm2-2/+31
After a submission, the survey will now either redirect to a "thanks for your answers!"-site (if the POST request had status 200) or else display some kind of error message.
2021-04-05site: add headers for survey POST requeststuebinm1-2/+8
2021-04-05add example surveystuebinm3-0/+4
these can be found in site/examples. There is a simple unencrypted survey in "example.json", and an encrypted variant of the same in "encrypted.json". The key used for encryption can be found in "key.age"; in particular, note that the passphrase for the encrypted survey is exactly that private key.
2021-04-05add wasm blobsstuebinm5-0/+695
the nix tooling for rust and wasm appears to be really bad, so binary blobs are easier for now.
2021-04-05load survey from (and submit result to) path given as fragmentstuebinm1-18/+30
syntax: http(s)://domain.tld/path/to/file/index.html#[upload url] The upload url may be relative to the site's position, or absolute. Survey results will be POSTed to [upload path]/upload.
2021-04-04simple python server for testing purposesstuebinm1-0/+15
web assembly needs its own mimetype set to work in the browser, which most other development tools don't support — so this python script can be used instead.