Primer parser d'horaris (JQuery)

Funciona posant-ho a la console a les webs: https://fme-intranet.upc.edu/appsext/mrbs/web/day.php?year=2020&month=9&day=17&area=2 i https://fme-intranet.upc.edu/appsext/mrbs/web/day.php?year=2020&month=9&day=17&area=6
diff --git a/table-parser.js b/table-parser.js
new file mode 100644
index 0000000..2a4460c
--- /dev/null
+++ b/table-parser.js
@@ -0,0 +1,30 @@
+let hores = [], newhour;
+for (let h = 8; h < 22; ++h) {
+    newhour = "";
+    if (h < 10) newhour += "0";
+    newhour += h.toString();
+    
+    hores.push(newhour + ":00");
+    hores.push(newhour + ":30");
+}
+
+hores.forEach(hora => {
+    let column = 1;
+    let td = $("td:contains(" + hora + ")").next();
+
+    while (td.text().indexOf(hora) == -1) {
+        
+        if (td.text().indexOf("CDATA") == -1) {
+            let aula = $("#day_main th")[column].textContent.trim();
+            let durada = parseInt(td.attr("rowspan"))*30;
+            
+            console.log(td.text()
+                + ", " + hora
+                + ", " + durada + "mins"
+                + ", " + aula);
+        }
+        
+        td = td.next();
+        ++column;
+    }
+});