anutimetable
anutimetable copied to clipboard
Show only tutorials or only lectures
Requested via email
I requested this last year. I was playing around with jQuery and came up with this. It hides all timeslots that are not lectures. It works but it is slow.
$('td.timeslot').each(function (i,x) {
children=x.children;
for (i=0; i<children.length;i++) {
child=children[i];
if (!child.getAttribute('data-group').toLowerCase().includes('lecture')) {
//x.style.display = 'none';
//x.className += 'hide';
child.getElementsByClassName('hide_temp')[0].click();
}
}
});
@tail-recursion I'll add this as soon as I can, thanks for providing the code :) Feel free to submit a pull request if you've added and tested the feature.