diff --git a/static-data/www/onboarding/consentskip.js b/static-data/www/onboarding/consentskip.js new file mode 100644 index 00000000..b00520cb --- /dev/null +++ b/static-data/www/onboarding/consentskip.js @@ -0,0 +1,24 @@ +let skipConsentBtns = function(){ + var skipBtn = document.getElementsByClassName('skipToConsent')[0] + var sections = document.getElementsByClassName('step-item') + var content = document.getElementsByClassName('step-content') + skipBtn.onclick = function(e){ + e.preventDefault() + for (el of document.querySelectorAll('.steps-action a')){ + el.classList.add('is-hidden') + } + for (el of content){ + el.classList.remove('is-active') + var last = el + } + last.classList.add('is-active') + for (el = 0; el <= sections.length; el++){ + sections[el].classList.add('is-completed') + sections[el].classList.remove('is-active') + var last = sections[el] + } + last.classList.add('is-active') + + //is-completed + } +}() \ No newline at end of file diff --git a/static-data/www/onboarding/index.html b/static-data/www/onboarding/index.html index e17d2fe3..f02f4b9e 100644 --- a/static-data/www/onboarding/index.html +++ b/static-data/www/onboarding/index.html @@ -2,29 +2,34 @@
- +