-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGithub.js
More file actions
27 lines (27 loc) · 865 Bytes
/
Github.js
File metadata and controls
27 lines (27 loc) · 865 Bytes
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
var header = document.getElementById("header");
var navHeader = document.getElementById("nav_header");
var content = document.getElementById("content");
var showSidebar = false;
var email = document.getElementById('email');
var password = document.getElementById('password');
function toggleSidebar() {
showSidebar = !showSidebar;
console.log(showSidebar);
if (showSidebar) {
navHeader.style.marginLeft = "-10vw";
} else {
navHeader.style.marginLeft = "-100vw";
}
}
email.addEventListener('focus',()=>{
email.style.borderColor = '#e8ce0c'
})
email.addEventListener('blur',()=>{
email.style.borderColor = '#1c1c1c'
})
password.addEventListener('focus',()=>{
password.style.borderColor = '#e8ce0c'
})
password.addEventListener('blur',()=>{
password.style.borderColor = '#1c1c1c'
})