-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
50 lines (39 loc) · 1.24 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
var change_username = document.querySelector("#username")
function edit_profile(){
change_username.innerText = "Melody Angus Hamilton";
console.log("melody");
}
var removeTodd = document.querySelector("#Todd")
var removePhil = document.querySelector("#Phil")
var connections = document.querySelector("#connections")
var currentConnections = 418;
var connectionRequests = document.querySelector("#connectionRequests")
var currentRequests = 2;
function accept_Todd(){
removeTodd.remove("#Todd");
currentRequests--;
console.log(currentRequests);
connectionRequests.innerText = currentRequests;
currentConnections++;
connections.innerText = currentConnections;
}
function deny_Todd(){
removeTodd.remove("#Todd");
currentRequests--;
console.log(currentRequests);
connectionRequests.innerText = currentRequests;
}
function accept_Phil(){
removePhil.remove("#Phil")
currentRequests--;
console.log(currentRequests);
connectionRequests.innerText = currentRequests;
currentConnections++;
connections.innerText = currentConnections;
}
function deny_Phil(){
removePhil.remove("#Phil")
currentRequests--;
console.log(currentRequests);
connectionRequests.innerText = currentRequests;
}