1
0

Comment structure

This commit is contained in:
clerie 2020-09-19 20:11:06 +02:00
parent 357fff97f2
commit 4efc000794

View File

@ -70,8 +70,10 @@ var connection_result_observer = new MutationObserver((mutations) => {
if (target.tagName === 'TD') {
var timetable = target.querySelector("td div.detailContainer table.result tbody");
/*
* COLLECT DATA
*/
var data = [];
var relations = timetable.querySelectorAll("tr.first");
relations.forEach((relation, i) => {
var relationend = relation.nextElementSibling;
@ -141,6 +143,10 @@ var connection_result_observer = new MutationObserver((mutations) => {
console.log(data);
/*
* INJECT CUSTOM UI
*/
var trains = timetable.querySelectorAll("tr.first td.products");
trains.forEach((train) => {
var train_names = train.querySelectorAll("span a");