1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
letu/public/javascripts/marks.js

30 lines
750 B
JavaScript
Raw Permalink Normal View History

2020-12-14 22:02:36 +01:00
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;
}
})
2020-11-23 21:24:43 +01:00
function setVisible(targetId) {
2020-12-14 22:02:36 +01:00
socket.emit("marksDetails", {
"dsId": targetId
});
2020-11-23 21:24:43 +01:00
document.getElementById("notvisible").id = "visible";
}
function setNotVisible(targetId) {
document.getElementById(targetId).id = "notvisible";
}
function marksformChange(targetId) {
document.getElementById("marksform").style.display = "block";
}