-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscript.txt
49 lines (44 loc) · 1.12 KB
/
script.txt
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
//thisi is going to be difficult
//hell yeah
//upon clicking not having account
function toggle(){
var blur = document.getElementById('blur');
blur.classList.toggle('active');
document.getElementById('login').style.display='block'
var login = document.getElementById('login');
login.classList.toggle('active');
}
//upon submission checking the entered passwords
function checkPassword(){
if(document.getElementById("pwd").value != document.getElementById("rpwd").value){
alert("Passwords mismateched!!!");
return false;
}
else{
alert("Passwords matched, Submition Successful!!!");
window.location="../html/WorkwithUs.html"
return true;
}
}
//to enable submit button
function enableButton(){
if(document.getElementById("policy").checked){
document.getElementById("btn1").disabled =false;
}
else{
document.getElementById("btn1").disabled =true;
}
}
function Submission(){
alert("Submition Successful!!!");
}
function trypassword(){
var pw1 = document.getElementById("pw").value;
if(pw1 === "admin"){
window.location.href = "../Admin.php";
alert("correct Login");
}
else{
alert("Incorrect Login");
}
}