Skip to content

Instantly share code, notes, and snippets.

@findepi
Last active August 31, 2023 15:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save findepi/e20f93c04da3d5d4264d54ec4dd99772 to your computer and use it in GitHub Desktop.
Save findepi/e20f93c04da3d5d4264d54ec4dd99772 to your computer and use it in GitHub Desktop.
Przygotuj Librusowy plan lekcji do wydruku na prawdę do wydruku
/*
* Class timetable as rendered in the Librus Synergia system https://synergia.librus.pl/
*/
(function($) {
// przerwy
$('.plan-lekcji tr.line0').remove()
// sobota, niedziela oraz nr lekcji z prawej strony
$('.plan-lekcji tr > * + * + td + td + td + td + td + td').remove()
// waste
$('#mobile-banner').remove()
$('h2:contains("Plan lekcji w danym tygodniu")').remove()
$('tfoot').remove()
// skróty
$('td:contains("Nr lekcji")').text('Nr')
$('td:contains("Nr\xA0lekcji")').text('Nr') // nbsp
// nauczyciele
// TODO
// make up
$('.plan-lekcji td').css('padding', '2px 2px 0')
$('.plan-lekcji tr td:first-child').css('text-align', 'center')
})(jQuery)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment