-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimer.js
77 lines (77 loc) · 1.64 KB
/
timer.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
async function scheduleTimer({ providerRes, parserRes } = {}) {
return {
totalWeek: 20, // 总周数:[1, 30]之间的整数
startSemester: "", // 开学时间:时间戳,13位长度字符串,推荐用代码生成
showWeekend: true, // 是否显示周末
forenoon: 5, // 上午课程节数:[1, 10]之间的整数
afternoon: 8, // 下午课程节数:[0, 10]之间的整数
night: 0, // 晚间课程节数:[0, 10]之间的整数
sections: [
{
section: 1,
startTime: "08:00",
endTime: "08:45",
},
{
section: 2,
startTime: "08:50",
endTime: "09:35",
},
{
section: 3,
startTime: "09:50",
endTime: "10:35",
},
{
section: 4,
startTime: "10:40",
endTime: "11:25",
},
{
section: 5,
startTime: "11:30",
endTime: "12:15",
},
{
section: 6,
startTime: "14:00",
endTime: "14:45",
},
{
section: 7,
startTime: "14:50",
endTime: "15:35",
},
{
section: 8,
startTime: "15:50",
endTime: "16:35",
},
{
section: 9,
startTime: "16:40",
endTime: "17:25",
},
{
section: 10,
startTime: "17:35",
endTime: "18:20",
},
{
section: 11,
startTime: "18:25",
endTime: "19:10",
},
{
section: 12,
startTime: "19:20",
endTime: "20:05",
},
{
section: 13,
startTime: "20:10",
endTime: "20:55",
},
],
};
}