'use strict'; console.log('Location', window.location); // storage const storageUsername = window.localStorage.name || ''; const storageEmail = window.localStorage.email || ''; // signup const signupUsernameInput = document.getElementById('signupUsernameInput'); const signupEmailIdInput = document.getElementById('signupEmailIdInput'); const signupPasswordIdInput = document.getElementById('signupPasswordIdInput'); const signupRepeatPasswordIdInput = document.getElementById('signupRepeatPasswordIdInput'); const signupTermsBtn = document.getElementById('signupTermsBtn'); const signupBtn = document.getElementById('signupBtn'); // login const loginUsernameInput = document.getElementById('loginUsernameInput'); const loginEmailIdInput = document.getElementById('loginEmailIdInput'); const loginPasswordIdInput = document.getElementById('loginPasswordIdInput'); const loginBtn = document.getElementById('loginBtn'); // support const supportBtn = document.getElementById('supportBtn'); const config = { support: true, //... }; !config.support && elementDisplay(supportBtn, false); // Login/Signup const chk = document.getElementById('chk'); const login = document.querySelector('.login'); const loginLabel = document.querySelector('.login label'); const signupLabel = document.querySelector('.signup label'); signupUsernameInput.value = storageUsername; signupEmailIdInput.value = storageEmail; signupPasswordIdInput.value = ''; signupRepeatPasswordIdInput.value = ''; loginUsernameInput.value = storageUsername; loginEmailIdInput.value = storageEmail; loginPasswordIdInput.value = ''; elementDisplay(signupBtn, false); elementDisplay(signupTermsBtn, true); showLogin(); chk.addEventListener('change', () => { chk.checked ? showSignUp() : showLogin(); }); loginBtn.addEventListener('click', handleLogin); signupTermsBtn.addEventListener('click', handleSignupTerms); signupBtn.addEventListener('click', handleSignup); supportBtn.onclick = () => { window.open('https://codecanyon.net/user/miroslavpejic85', '_blank'); }; function handleLogin(e) { e.preventDefault(); const validationError = validateInput(loginUsernameInput, loginEmailIdInput, loginPasswordIdInput); if (validationError) { popupMessage('warning', validationError); return false; } const data = gatherInputData(loginUsernameInput, loginEmailIdInput, loginPasswordIdInput); signupOrLogin(data); } function handleSignupTerms() { Swal.fire({ title: 'Terms & Conditions', html: `
By using the Room Scheduler, you agree to comply with our Terms and Conditions. Please read them carefully before using the service.
Do not use this service for any illegal, harmful, or abusive activities. You agree to use the service only for lawful purposes and in compliance with applicable laws and regulations.
We do not store your video, audio, or chat messages. Your data is processed securely and in accordance with our Privacy Policy. We may collect and use certain non-personally identifiable information for service improvement purposes.
You are responsible for maintaining the confidentiality of your account and password. You agree to notify us immediately of any unauthorized use of your account or any other security breach.
We strive to maintain the availability of the Room Scheduler, but cannot guarantee continuous or uninterrupted access. We may temporarily suspend the service for maintenance, upgrades, or technical issues.
We may update or modify these Terms and Conditions at any time. Any changes will be posted on this page, and it is your responsibility to review the Terms regularly. Continued use of the service constitutes acceptance of any modifications.
We are not liable for any damages arising from the use or inability to use the Room Scheduler, including but not limited to direct, indirect, incidental, or consequential damages.
We reserve the right to suspend or terminate your access to the service at any time, for any reason, including violation of these Terms and Conditions.
Do you agree to these Terms & Conditions?