-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript2.js
More file actions
55 lines (40 loc) · 1.62 KB
/
script2.js
File metadata and controls
55 lines (40 loc) · 1.62 KB
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
var receptionistButton = document.getElementById("receptionistDatabase");
var patientButton = document.getElementById("patientDatabase");
var patientAppts = document.getElementById("patientAppts");
var patientMedRecord = document.getElementById("patientMedRecord");
receptionistButton.addEventListener("mouseover",function(){
receptionistButton.style.backgroundColor = "black";
});
receptionistButton.addEventListener("mouseout",function(){
receptionistButton.style.backgroundColor = "#007BFF";
});
receptionistButton.addEventListener("click",function(){
window.location.href = "receptionist.php";
});
patientButton.addEventListener("mouseover",function(){
patientButton.style.backgroundColor = "black";
});
patientButton.addEventListener("mouseout",function(){
patientButton.style.backgroundColor = "#007BFF";
});
patientButton.addEventListener("click",function(){
window.location.href = "patient.php";
});
patientAppts.addEventListener("mouseover",function(){
patientAppts.style.backgroundColor = "black";
});
patientAppts.addEventListener("mouseout",function(){
patientAppts.style.backgroundColor = "#007BFF";
});
patientAppts.addEventListener("click",function(){
window.location.href = "patientAppts.php";
});
patientMedRecord.addEventListener("mouseover",function(){
patientMedRecord.style.backgroundColor = "black";
});
patientMedRecord.addEventListener("mouseout",function(){
patientMedRecord.style.backgroundColor = "#007BFF";
});
patientMedRecord.addEventListener("click",function(){
window.location.href = "patientMedRecord.php";
});