Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Assess Calendar Userscript
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oh14.dev
Assess Calendar Userscript
Commits
d9c6d2d9
Commit
d9c6d2d9
authored
6 years ago
by
Jonas Zohren
Browse files
Options
Downloads
Patches
Plain Diff
Update assess_userscript.js
parent
e0b8e874
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
assess_userscript.js
+4
-1
4 additions, 1 deletion
assess_userscript.js
with
4 additions
and
1 deletion
assess_userscript.js
+
4
−
1
View file @
d9c6d2d9
...
@@ -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
)}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment