Skip to content
Snippets Groups Projects
Commit d9c6d2d9 authored by Jonas Zohren's avatar Jonas Zohren :speech_balloon:
Browse files

Update assess_userscript.js

parent e0b8e874
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
// @include https://ess.cs.tu-dortmund.de/ASSESS/* // @include https://ess.cs.tu-dortmund.de/ASSESS/*
// ==/UserScript== // ==/UserScript==
const timetable = ` const timetable = `
<table class="calendar"> <table class="calendar">
<thead class="days-week"> <thead class="days-week">
...@@ -84,8 +85,9 @@ function run() ...@@ -84,8 +85,9 @@ function run()
const slotStartId = timeStr.substr(1,2).toLowerCase()+'_'+ startNum const slotStartId = timeStr.substr(1,2).toLowerCase()+'_'+ startNum
// get prio info // get prio info
const rankElem = row[2].getElementsByTagName('div')[0].getElementsByTagName('div')[2] const rankElem = row[row.length-1].getElementsByTagName('div')[0].getElementsByTagName('div')[2]
try {
// enter into timetable // enter into timetable
const slotElem = document.getElementById(slotStartId) const slotElem = document.getElementById(slotStartId)
slotElem.setAttribute("rowspan", slotLen) slotElem.setAttribute("rowspan", slotLen)
...@@ -93,6 +95,7 @@ function run() ...@@ -93,6 +95,7 @@ function run()
slotElem.setAttribute("style","background-color: #726a6a;") slotElem.setAttribute("style","background-color: #726a6a;")
console.log(slotStartId + ' -> '+slotLen) console.log(slotStartId + ' -> '+slotLen)
} catch (e) {console.error(e)}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment