-
Notifications
You must be signed in to change notification settings - Fork 1
/
signUp.js
33 lines (32 loc) · 1.25 KB
/
signUp.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
let client = document.getElementById('client');
let freelancer = document.getElementById('freelancer');
let input1 = document.getElementById('input1');
let input2 = document.getElementById('input2');
let button1 = document.getElementById('button');
let link1 = document.getElementById('link');
function changeButton1(params) {
freelancer.style.outline = "0px";
freelancer.style.border = "1px solid lightgrey";
params.style.outline = "2px solid rgb(20,168,0)";
params.style.border = "2px solid rgb(20,168,0)";
params.style.outlineOffset = "5px";
input2.checked = false;
input1.checked = true;
link1.innerHTML = "Join as a Client";
link1.style.color = "white";
button1.style.backgroundColor = "rgb(20,168,0)";
link1.href = "clientSignUp.html";
}
function changeButton2(params) {
client.style.outline = "0px";
client.style.border = "1px solid lightgrey";
params.style.outline = "2px solid rgb(20,168,0)";
params.style.border = "2px solid rgb(20,168,0)";
params.style.outlineOffset = "5px";
input1.checked = false;
input2.checked = true;
link1.innerHTML = "Apply as a Freelancer";
link1.style.color = "white";
button1.style.backgroundColor = "rgb(20,168,0)";
link1.href = 'freelancerSignUp.html';
}