From e8441c15180fa04ec1b24d76360fcaaa11edbaf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Fri, 20 Mar 2020 00:09:38 +0100 Subject: gsec.js fix --- js/gsec.js | 2 +- pages/timetable.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/gsec.js b/js/gsec.js index ab51b43..488794a 100644 --- a/js/gsec.js +++ b/js/gsec.js @@ -197,7 +197,7 @@ class gsec { var day = subFields[5]; var desc = $(urnikElement).attr("title").split("\n"); var subject = desc[1].split('(').pop().split(')')[0]; // https://stackoverflow.com/a/27522597/11293716 - var abkurzung = desc[0].split(" (")[0]; + var abkurzung = desc[1].split(" (")[0]; var razred = desc[2]; var teacher = desc[3]; var place = desc[4]; diff --git a/pages/timetable.html b/pages/timetable.html index f9a3688..3bdb4fa 100644 --- a/pages/timetable.html +++ b/pages/timetable.html @@ -25,6 +25,7 @@ + -- cgit v1.2.3