Releases: Tch1b0/dsbmobile.js
Releases · Tch1b0/dsbmobile.js
v1.2.0
enhanced the customization: In case your timetable isn't compatible with mine(@Tch1b0), you can now define your own htmlHandler
like this:
TimeTable.htmlHandler = (html) => {
let div = html("my-div")
let data = div.text()
return new TimeTable(...)
}
and then you can get your timetable as you are used to:
const dsb = new Dsbmobile("<id>", "<password>")
// timetable is now parsed using the custom handler
const timetable = await dsb.getTimetable()
To reset to the default handler you can just write:
TimeTable.htmlHandler = undefined
v1.1.9
v1.1.7
v1.1.6
What's Changed
The Subject-short maps can now be updated
timetable.registerSubjectShorts(new Map([["<subject-short>", "<subject-long>"]]))
// or
entry.registerSubjectShorts(new Map([["<subject-short>", "<subject-long>"]]))
Full Changelog: v1.1.5...v1.1.6
v1.1.5
v1.1.4
v1.1.3
Full Changelog: v1.1.2...v1.1.3
v1.1.2
v1.1.1
What's Changed
- Fixed the parsing of multiple class-names in one entry
Full Changelog: v1.1.0...v1.1.1
v1.1.0
What's Changed
Full Changelog: 1.0.9...v1.1.0
Changelog between 1.0.0 and 1.1.0: 1.0.0...v1.1.0