You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Timetable}from"@itzkrofi/timetable-parser";consttimetable=newTimetable(/*Content of index.html file*/);// Returns: String containing title of the timetableconsttitle=timetable.getTitle();// Returns: String containing path to lista.html fileconstlist=timetable.getListPath();
Parsing Timetable List
import{TimetableList}from"@itzkrofi/timetable-parser";consttimetableList=newTimetableList(/*Content of lista.html file*/);// Returns: Object of 3 listsconstlist=timetableList.getList();// Returns: String containing path to school logoconstlogo=timetableList.getLogoSrc();
Parsing Table
import{Table}from"@itzkrofi/timetable-parser";consttable=newTable(/*Content of plany/XYY.html file*/);// Returns: String containing title of the timetableconsttitle=table.getTitle();// Returns: Array of days from timetable headersconstdayNames=table.getDayNames();// Returns: Object of hoursconsthours=table.getHours();// Returns: Array of lessons sorted by lesson numberconstrawDays=table.getRawDays();// Returns: Array of lessons sorted by daysconstdays=table.getDays();// Returns: String containing timetable generation dateconstgenerated=title.getGeneratedDate();// Returns: String containing timetable effective dateconstgenerated=title.getVersionInfo();