-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
32 lines (27 loc) · 981 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Initialize map and direction services (if used elsewhere)
function initMap() {
// Existing map initialization code
}
// Toggle password visibility
function togglePassword(fieldId) {
const passwordField = document.getElementById(fieldId);
if (passwordField.type === "password") {
passwordField.type = "text";
} else {
passwordField.type = "password";
}
}
// Dummy signup function
function signup() {
const username = document.getElementById('signup-username').value;
const password = document.getElementById('signup-password').value;
console.log("Signing up with", username, password);
alert('Signup successful!');
}
// Dummy login function
function login() {
const username = document.getElementById('login-username').value;
const password = document.getElementById('login-password').value;
console.log("Logging in with", username, password);
alert('Login successful!');
}