-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathprofile.js
58 lines (43 loc) · 1.44 KB
/
profile.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
function toggle(num)
{
if(num===1) //open profile page
{
$("#s1").css("border-bottom","2px solid #76D7C4");
$("#s2").css("border-bottom","2px solid white");
$("#otherinfo").css("display","block");
$("#holder").css("display","none");
}
else //open announcements page
{
$("#s2").css("border-bottom","2px solid #76D7C4");
$("#s1").css("border-bottom","2px solid white");
$("#holder").css("display","block");
$("#otherinfo").css("display","none");
}
}
function enlreq(reqid,accid)
{
var enlreq=createreqobj();
enlreq.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
alert(this.responseText);
}
};
var param = "reqid="+reqid+"&accid="+accid+"&reqtype=enlighten";
enlreq.open("POST", "enlightenmentorreq.php", true);
enlreq.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
enlreq.send(param);
}
function mentorreq(startupid,mentorid)
{
var menreq=createreqobj();
menreq.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
alert(this.responseText);
}
};
var param = "sid="+startupid+"&mid="+mentorid+"&reqtype=mentorship";
menreq.open("POST", "enlightenmentorreq.php", true);
menreq.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
menreq.send(param);
}