Skip to content

Instantly share code, notes, and snippets.

@findepi
Last active August 31, 2023 15:49

Revisions

  1. findepi revised this gist Sep 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion librus-plan-lekcji-przygotuj-do-wydruku.js
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@

    // skróty
    $('td:contains("Nr lekcji")').text('Nr')
    $('td:contains("Nr lekcji")').text('Nr') // nbsp
    $('td:contains("Nr\xA0lekcji")').text('Nr') // nbsp

    // nauczyciele
    // TODO
  2. findepi revised this gist Sep 18, 2017. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions librus-plan-lekcji-przygotuj-do-wydruku.js
    Original file line number Diff line number Diff line change
    @@ -1,30 +1,30 @@
    /*
    * Class timetable as rendered in the Librus Synergia system https://synergia.librus.pl/
    */
    */

    (function($) {

    // przerwy
    $('.plan-lekcji tr.line0').remove()
    $('.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 lekcji")').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)
    ;
    ;
  3. findepi created this gist Sep 18, 2017.
    30 changes: 30 additions & 0 deletions librus-plan-lekcji-przygotuj-do-wydruku.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    /*
    * 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 lekcji")').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)
    ;