-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremoveSchedule.js
39 lines (37 loc) · 1.15 KB
/
removeSchedule.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
34
35
36
37
38
39
function deleteS(temp) { //스케줄 삭제
var tag = document.getElementById(temp);
// var parent = tag.parentNode;
// parent.removeChild(tag); //태그 삭제
tag.style.visibility="hidden"; //태그 안보이게
var num = parseInt(temp[4]);
var day = schedules[num].day;
/* if(day == "월") { //ver.태그 삭제
console.log("delete monday schedule");
mon_cnt -= schedules[num].timediff/109;
}
else if(day == "화") {
console.log("delete tuesday schedule");
tue_cnt -= schedules[num].timediff/109;
}
else if(day == "수") {
console.log("delete wednesday schedule");
wed_cnt -= schedules[num].timediff/109;
}
else if(day == "목") {
console.log("delete thursday schedule");
thu_cnt -= schedules[num].timediff/109;
}
else if(day == "금") {
console.log("delete friday schedule");
fri_cnt -= schedules[num].timediff/109;
}
else if(day == "토") {
console.log("delete saturday schedule");
sat_cnt -= schedules[num].timediff/109;
}
else if(day == "일") {
console.log("delete sunday schedule");
sun_cnt -= schedules[num].timediff/109;
} */
schedules[num].day = "";
}