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
17d28c25
Commit
17d28c25
authored
8 years ago
by
Hotte
Browse files
Options
Downloads
Patches
Plain Diff
Ich bin ein Pferd
parent
218872fa
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
+6
-4
6 additions, 4 deletions
panels/mensaPlan/script.js
with
6 additions
and
4 deletions
panels/mensaPlan/script.js
+
6
−
4
View file @
17d28c25
...
@@ -4,7 +4,7 @@ this.checkShowCondition = function() {
...
@@ -4,7 +4,7 @@ this.checkShowCondition = function() {
return
4
*
this
.
tabtime
;
return
4
*
this
.
tabtime
;
}
}
this
.
show
=
function
()
{
this
.
show
=
function
()
{
// switch tabs
// switch tabs
this
.
interval
=
setInterval
(
function
()
{
this
.
interval
=
setInterval
(
function
()
{
var
currentTab
=
$
(
"
#tabs
"
).
tabs
(
'
option
'
,
'
active
'
);
var
currentTab
=
$
(
"
#tabs
"
).
tabs
(
'
option
'
,
'
active
'
);
...
@@ -43,14 +43,16 @@ function padTwo(num) {
...
@@ -43,14 +43,16 @@ function padTwo(num) {
}
}
function
isNextDay
()
{
function
isNextDay
()
{
if
(
new
Date
().
getHours
()
>=
15
)
{
if
(
new
Date
().
getHours
()
>=
15
)
{
console
.
log
(
"
NEXT
"
)
return
true
;
return
true
;
}
}
console
.
log
(
"
CURRENT
"
)
return
false
;
return
false
;
}
}
function
calcDateAPI
()
{
function
calcDateAPI
()
{
if
(
isNextDay
)
{
if
(
isNextDay
()
)
{
return
new
Date
().
getFullYear
()
+
"
-
"
+
padTwo
(
new
Date
().
getMonth
()
+
1
)
+
"
-
"
+
(
padTwo
(
new
Date
().
getDate
()
+
1
));
return
new
Date
().
getFullYear
()
+
"
-
"
+
padTwo
(
new
Date
().
getMonth
()
+
1
)
+
"
-
"
+
(
padTwo
(
new
Date
().
getDate
()
+
1
));
}
else
{
}
else
{
return
new
Date
().
getFullYear
()
+
"
-
"
+
padTwo
(
new
Date
().
getMonth
()
+
1
)
+
"
-
"
+
padTwo
(
new
Date
().
getDate
());
return
new
Date
().
getFullYear
()
+
"
-
"
+
padTwo
(
new
Date
().
getMonth
()
+
1
)
+
"
-
"
+
padTwo
(
new
Date
().
getDate
());
...
@@ -58,7 +60,7 @@ function calcDateAPI() {
...
@@ -58,7 +60,7 @@ function calcDateAPI() {
}
}
function
calcTextDisplay
()
{
function
calcTextDisplay
()
{
if
(
isNextDay
)
{
if
(
isNextDay
()
)
{
return
"
Mensaplan von MORGEN, dem
"
+
(
padTwo
(
new
Date
().
getDate
()
+
1
))
+
"
.
"
+
padTwo
(
new
Date
().
getMonth
()
+
1
)
+
"
.
"
+
new
Date
().
getFullYear
();
return
"
Mensaplan von MORGEN, dem
"
+
(
padTwo
(
new
Date
().
getDate
()
+
1
))
+
"
.
"
+
padTwo
(
new
Date
().
getMonth
()
+
1
)
+
"
.
"
+
new
Date
().
getFullYear
();
}
else
{
}
else
{
return
"
Mensaplan von HEUTE, dem
"
+
padTwo
(
new
Date
().
getDate
())
+
"
.
"
+
padTwo
(
new
Date
().
getMonth
()
+
1
)
+
"
.
"
+
new
Date
().
getFullYear
();
return
"
Mensaplan von HEUTE, dem
"
+
padTwo
(
new
Date
().
getDate
())
+
"
.
"
+
padTwo
(
new
Date
().
getMonth
()
+
1
)
+
"
.
"
+
new
Date
().
getFullYear
();
...
...
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