-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
35 lines (26 loc) · 1.33 KB
/
script.js
File metadata and controls
35 lines (26 loc) · 1.33 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
const togglePassword = document.getElementById('togglePassword');
const passwordInput = document.getElementById('password');
togglePassword.addEventListener('click', function () {
const isPasswordVisible = passwordInput.type === 'text';
passwordInput.type = isPasswordVisible ? 'password' : 'text';
togglePassword.src = isPasswordVisible ?
'https://res.cloudinary.com/drkmgpcad/image/upload/v1726940114/pnpa3clu4ece0xadanxb.png' :
'https://res.cloudinary.com/drkmgpcad/image/upload/v1726940115/glfy7fmdlvnvzctejgxg.png';
});
/* For Log In yung mula dito pataas dont touch huhu*/
/*for Loading screen to edit mo sa css if you want, di ko magawng trasparent so I make a bg for loading HEHEHEE*/
function showLoadingScreen(message) {
// Create the loading screen HTML
document.body.innerHTML = `
<div class="loading-screen">
<div class="log-in">${message}</div>
<div class="loading-image">
<img src="https://res.cloudinary.com/drkmgpcad/image/upload/v1726841328/rahjpg3k7mdtnow4ttux.png" alt="Loading Image">
</div>
</div>
`;
// Set a timeout to remove the loading screen after 1 second
setTimeout(() => {
document.body.innerHTML = ''; // Clear the loading screen
}, 2000); // 2000 milliseconds = 2 seconds (1 second longer than before)
}