anutimetable icon indicating copy to clipboard operation
anutimetable copied to clipboard

Show only tutorials or only lectures

Open catmanjan opened this issue 8 years ago • 2 comments

Requested via email

catmanjan avatar Jul 19 '16 00:07 catmanjan

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 avatar Mar 01 '18 02:03 tail-recursion

@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.

EMorf avatar Mar 01 '18 06:03 EMorf