diff --git a/static-data/www/onboarding/index.html b/static-data/www/onboarding/index.html index d808d9bc..69c613f2 100644 --- a/static-data/www/onboarding/index.html +++ b/static-data/www/onboarding/index.html @@ -16,10 +16,6 @@ - - - - @@ -68,16 +64,15 @@
+

Welcome. There are just a few questions for you to answer before you get started.


-
+
- I am worried about the following targeting me... + I am concerned about the following targeting me...
- -
- +

@@ -97,16 +92,17 @@
I want to...
- +
- +
- +

+

diff --git a/static-data/www/onboarding/onboarding.css b/static-data/www/onboarding/onboarding.css index c59a1580..cb15c040 100644 --- a/static-data/www/onboarding/onboarding.css +++ b/static-data/www/onboarding/onboarding.css @@ -17,3 +17,9 @@ img{ form{ margin-left: 2%; } + + +noscript{ + font-size: 2em; + color: yellow; +} \ No newline at end of file diff --git a/static-data/www/onboarding/onboarding.js b/static-data/www/onboarding/onboarding.js index 41ef71a1..613372db 100644 --- a/static-data/www/onboarding/onboarding.js +++ b/static-data/www/onboarding/onboarding.js @@ -4,5 +4,23 @@ fetch('/getnewkeys', { }}) .then((resp) => resp.text()) // Transform the data into text .then(function(resp) { - keys = keys.split('') - }) \ No newline at end of file + keys = resp.split('') +}) + +function getCheckValue(elName){ + return document.getElementsByName(elName)[0].checked +} + +document.getElementById('onboardingForm').onsubmit = function(e){ + submitInfo = {} + submitInfo.massSurveil = getCheckValue('state') + submitInfo.stateTarget = getCheckValue('stateTarget') + submitInfo.localThreat = getCheckValue('local') + submitInfo.networkContrib = getCheckValue('networkContribution') + submitInfo.plainContrib = getCheckValue('networkContributionPlain') + submitInfo.donate = getCheckValue('donate') + submitInfo.deterministic = getCheckValue('useDeterministic') + submitInfo.mail = getCheckValue('useMail') + + e.preventDefault() +} \ No newline at end of file