Use data attributs instead of class for js integration.
This commit is contained in:
parent
4285a774a0
commit
90e45f224a
1 changed files with 17 additions and 17 deletions
|
|
@ -38,11 +38,11 @@
|
|||
if (location.search.substring(1) !== '') {
|
||||
switch (location.search.substring(1)) {
|
||||
case 'submitted':
|
||||
document.querySelector('.contact-submitted').classList.remove('hidden');
|
||||
document.querySelector(['data-contact-submitted']).classList.remove('hidden');
|
||||
break;
|
||||
|
||||
case 'error':
|
||||
document.querySelector('.contact-error').classList.remove('hidden');
|
||||
document.querySelector(['data-contact-error']).classList.remove('hidden');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue