Implement Web Assets' theme system and selection, and add 'light' theme #118
@ -3,6 +3,11 @@
|
|||||||
function agreeWithTerms() {
|
function agreeWithTerms() {
|
||||||
const agreeWithTermsInput = document.querySelector('.js-agree-with-terms-input');
|
const agreeWithTermsInput = document.querySelector('.js-agree-with-terms-input');
|
||||||
|
|
||||||
|
if (!agreeWithTermsInput) {
|
||||||
|
// Stop function execution if agreeWithTermsInput is not present
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
agreeWithTermsInput.addEventListener('change', function(e) {
|
agreeWithTermsInput.addEventListener('change', function(e) {
|
||||||
const agreeWithTermsBtnSubmit = document.querySelector('.js-agree-with-terms-btn-submit');
|
const agreeWithTermsBtnSubmit = document.querySelector('.js-agree-with-terms-btn-submit');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user