forked from muratyucedag/Doccure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSignalRIndexUI.txt
More file actions
36 lines (28 loc) · 1.11 KB
/
Copy pathSignalRIndexUI.txt
File metadata and controls
36 lines (28 loc) · 1.11 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
connection.on("PatientCalled", function (queueNumber, patientName, branchName, appointmentTime) {
console.log("PatientCalled Event");
console.log(queueNumber, patientName, branchName, appointmentTime);
document.getElementById("currentQueueNumber").textContent =
String(queueNumber).padStart(3, '0');
document.getElementById("currentPatientName").textContent =
patientName;
const branchElement = document.getElementById("currentBranchName");
if (branchElement) {
branchElement.textContent = branchName;
}
const timeElement = document.getElementById("hq-call-time");
if (timeElement && appointmentTime) {
const date = new Date(appointmentTime);
timeElement.textContent = date.toLocaleTimeString("tr-TR", {
hour: "2-digit",
minute: "2-digit"
});
}
const card = document.querySelector(".hq-num-box");
if (card) {
card.style.transition = "transform .25s ease";
card.style.transform = "scale(1.08)";
setTimeout(() => {
card.style.transform = "scale(1)";
}, 400);
}
});