Fixed missing id kebab-case
This commit is contained in:
parent
898f6c28f7
commit
a1e4027533
7 changed files with 32 additions and 32 deletions
|
|
@ -1,6 +1,6 @@
|
|||
document.addEventListener("DOMContentLoaded", function() {
|
||||
const checkTerms = document.querySelector('#cgvCheck');
|
||||
const createAccountButton = document.querySelector('#btnCreateAccount');
|
||||
const checkTerms = document.querySelector('#cgv-check');
|
||||
const createAccountButton = document.querySelector('#btn-create-account');
|
||||
const readTerms = document.querySelector('#readTerms');
|
||||
console.log(checkTerms, createAccountButton);
|
||||
checkTerms.addEventListener("change", function() {
|
||||
|
|
|
|||
|
|
@ -5,16 +5,16 @@ function initTooltips(section) {
|
|||
}
|
||||
|
||||
function checkTermsandConditions(){
|
||||
const checkTerms = document.getElementById('cgvCheck'),
|
||||
createAccountButton = document.getElementById('btnCreateAccount');
|
||||
const checkTerms = document.getElementById('cgv-check'),
|
||||
createAccountButton = document.getElementById('btn-create-account');
|
||||
createAccountButton.disabled = !checkTerms.checked;
|
||||
}
|
||||
|
||||
const updateMeet = () => {
|
||||
const meetOption1 = document.getElementById('userMeetOptionReal'),
|
||||
meetOption2 = document.getElementById('userMeetOptionVirtual'),
|
||||
meetOption3 = document.getElementById('userMeetOptionHybrid'),
|
||||
meetLocation = document.getElementById('usertandem-meetLocation');
|
||||
const meetOption1 = document.getElementById('user-meetoption-real'),
|
||||
meetOption2 = document.getElementById('user-meetoption-virtual'),
|
||||
meetOption3 = document.getElementById('user-meetoption-hybrid'),
|
||||
meetLocation = document.getElementById('user-tandemmeet-location');
|
||||
if (meetLocation) {
|
||||
meetLocation.style.display = (meetOption1?.checked || meetOption3?.checked) ? 'block' : 'none';
|
||||
[meetOption1, meetOption2, meetOption3].forEach(option => {
|
||||
|
|
@ -26,8 +26,8 @@ const updateMeet = () => {
|
|||
};
|
||||
|
||||
const toggleMenus = ({ matches }) => {
|
||||
const offMenu = document.getElementById("offSideMenu"),
|
||||
sideMenu = document.getElementById("secondNav");
|
||||
const offMenu = document.getElementById("offside-menu"),
|
||||
sideMenu = document.getElementById("second-nav");
|
||||
if(offMenu && sideMenu){
|
||||
offMenu.style.display = matches ? "block" : "none";
|
||||
sideMenu.style.display = matches ? "none" : "block";
|
||||
|
|
@ -36,8 +36,8 @@ const toggleMenus = ({ matches }) => {
|
|||
};
|
||||
|
||||
const radiusUpdate = () => {
|
||||
const rangeInput = document.getElementById('townRadius'),
|
||||
rangeValue = document.getElementById('townRadiusValue');
|
||||
const rangeInput = document.getElementById('town-radius'),
|
||||
rangeValue = document.getElementById('town-radius-value');
|
||||
if (rangeInput && rangeValue) {
|
||||
rangeInput.addEventListener('input', () => {
|
||||
rangeValue.textContent = rangeInput.value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue