Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Infoscreen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evy Storozhenko
Infoscreen
Commits
1f889683
Commit
1f889683
authored
9 years ago
by
Rico van Endern
Browse files
Options
Downloads
Patches
Plain Diff
hotfix
parent
5fdae9af
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
panels/mensaPlan/script.js
+13
-12
13 additions, 12 deletions
panels/mensaPlan/script.js
with
13 additions
and
12 deletions
panels/mensaPlan/script.js
+
13
−
12
View file @
1f889683
...
@@ -50,21 +50,22 @@ this.loaded = function(panel, config) {
...
@@ -50,21 +50,22 @@ this.loaded = function(panel, config) {
break
;
break
;
}
}
var
gerichte
=
day
.
gerichte
;
var
gerichte
=
day
.
gerichte
;
document
.
getElementById
(
"
head
"
).
innerHTML
=
day
.
date
;
document
.
getElementById
(
"
head
"
).
innerHTML
=
"
Mensaplan vom
"
+
day
.
date
;
var
tableBody
=
document
.
getElementById
(
"
mensaPlanTable1Body
"
);
var
tableBody1
=
document
.
getElementById
(
"
mensaPlanTable1Body
"
);
tableBody
.
innerHTML
=
""
;
var
tableBody2
=
document
.
getElementById
(
"
mensaPlanTable2Body
"
);
var
counter
=
0
;
tableBody1
.
innerHTML
=
""
;
var
j
=
0
;
tableBody2
.
innerHTML
=
""
;
var
a
=
0
;
var
b
=
0
;
for
(
var
i
=
0
;
i
<
gerichte
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
gerichte
.
length
;
i
++
)
{
if
(
counter
>=
gerichte
.
length
/
2
)
{
var
gericht
=
gerichte
[
i
];
tableBody
=
document
.
getElementById
(
"
mensaPlanTable2Body
"
)
;
if
(
gericht
.
kategorie
==
"
icon-menue-1.png
"
||
gericht
.
kategorie
==
"
icon-menue-2.png
"
||
gericht
.
kategorie
==
"
icon-tagesgericht.png
"
||
gericht
.
kategorie
==
"
icon-aktionsteller.png
"
)
{
tableBody
.
in
n
er
HTML
=
""
;
var
row
=
tableBody
1
.
in
s
er
tRow
(
a
)
;
j
=
0
;
a
++
;
}
else
{
}
else
{
counter
++
;
var
row
=
tableBody2
.
insertRow
(
b
);
b
++
;
}
}
var
gericht
=
gerichte
[
i
];
var
row
=
tableBody
.
insertRow
(
j
);
var
cell1
=
row
.
insertCell
(
0
);
var
cell1
=
row
.
insertCell
(
0
);
var
cell2
=
row
.
insertCell
(
1
);
var
cell2
=
row
.
insertCell
(
1
);
var
cell3
=
row
.
insertCell
(
2
);
var
cell3
=
row
.
insertCell
(
2
);
...
...
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