Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show only tutorials or only lectures #103

Open
catmanjan opened this issue Jul 19, 2016 · 2 comments
Open

Show only tutorials or only lectures #103

catmanjan opened this issue Jul 19, 2016 · 2 comments
Assignees

Comments

@catmanjan
Copy link
Owner

Requested via email

@tail-recursion
Copy link

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();
		}
	}
});

@EMorf
Copy link
Collaborator

EMorf commented Mar 1, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants