29 lines
750 B
JavaScript
29 lines
750 B
JavaScript
let socket = io.connect();
|
|
|
|
socket.on("marksDetails", data=>{
|
|
if(data.error){
|
|
alert(data.error.message);
|
|
}else{
|
|
document.getElementById("dsName").value = data.dsName;
|
|
document.getElementById("dsMarks").value = data.dsMarks;
|
|
document.getElementById("dsRang").value = data.dsRang;
|
|
document.getElementById("dsCoeff").value = data.dsCoeff;
|
|
document.getElementById("dsMoy").value = data.dsMoy;
|
|
}
|
|
})
|
|
|
|
|
|
function setVisible(targetId) {
|
|
socket.emit("marksDetails", {
|
|
"dsId": targetId
|
|
});
|
|
document.getElementById("notvisible").id = "visible";
|
|
}
|
|
|
|
function setNotVisible(targetId) {
|
|
document.getElementById(targetId).id = "notvisible";
|
|
}
|
|
|
|
function marksformChange(targetId) {
|
|
document.getElementById("marksform").style.display = "block";
|
|
}
|