-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgsingup.js
35 lines (25 loc) · 934 Bytes
/
gsingup.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
33
34
document.querySelector("#btnsign").addEventListener("click",emailSign);
var mail=document.getElementById("eemail").value;
var error=document.getElementById("error");
function emailSign()
{
if(document.getElementById("eemail").value==null || document.getElementById("eemail").value==''){
error.style.display="block";
}
else{
window.location.href="gsignin.html";
}
// window.location.href="gsignin.html";
}
const body = document.body;
let lastScroll = 0;
window.addEventListener("scroll", () => {
if (window.pageYOffset >= 336) {
document.querySelector(".section").style.display = "flex";
document.querySelector(".section").style.position = "sticky";
document.querySelector(".section").style.top = "0";
document.querySelector(".section").style.zIndex = "200";
} else {
document.querySelector(".section").style.display = "none";
}
});