This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
homefunctions.js
69 lines (56 loc) · 1.76 KB
/
homefunctions.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
function votepage(){
data = "";
evalpostAJAXHtml("votepage.php",data);
}
function updates(){
data = "";
evalpostAJAXHtml("updates.php",data);
}
function contactUs(){
Email = $("email").value;
Message = $("message").value;
data = "email=" + Email + "&message=" + Message;
evalpostAJAXHtml("contact.php",data);
}
function contact(){
data = "";
evalpostAJAXHtml("contact.php",data);
}
function about(){
data = "";
evalpostAJAXHtml("about.php",data);
}
function findPassword(){
email = $("lostEmail").value;
data = "email=" + email;
evalpostAJAXHtml("forgot.php",data);
}
function forgotPassword(){
data = "";
evalpostAJAXHtml("forgot.php",data);
}
function goLogin(){
userAlias = $("username").value;
userPass = $("password").value;
data = "userAlias=" + userAlias + "&userPass=" + userPass;
evalpostAJAXHtml("login.php",data);
}
function goRegister(){
userAlias = $("usernamereg").value;
userPass = $("passwordreg").value;
userVPass = $("passwordvreg").value;
userComrade = $("comrade").value;
userEmail = $("emailreg").value;
userGender = $("genderreg").value;
userClass = $("classreg").value;
data = "userAlias=" + userAlias + "&userPass=" + userPass + "&userVPass=" + userVPass + "&userComrade=" + userComrade + "&userEmail=" + userEmail + "&userGender=" + userGender + "&userClass=" + userClass;
evalpostAJAXHtml("register.php",data);
}
function cleanReg(){
document.registrationForm.usernamereg.value = "";
document.registrationForm.emailreg.value = "";
document.registrationForm.passwordreg.value = "";
document.registrationForm.passwordvreg.value = "";
document.registrationForm.genderreg.value = "Male";
document.registrationForm.classreg.value = "Fighter";
}