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
ec121172
Commit
ec121172
authored
8 years ago
by
Hotte
Browse files
Options
Downloads
Patches
Plain Diff
TimestampMagic
parent
b63d784c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/layouts/default.json
+1
-9
1 addition, 9 deletions
config/layouts/default.json
config/layouts/default.json.skel
+1
-1
1 addition, 1 deletion
config/layouts/default.json.skel
panels/werbung/script.js
+15
-7
15 additions, 7 deletions
panels/werbung/script.js
with
17 additions
and
17 deletions
config/layouts/default.json
+
1
−
9
View file @
ec121172
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
},
},
{
{
"filename"
:
"OpenSourceInfoscreen.jpg"
,
"filename"
:
"OpenSourceInfoscreen.jpg"
,
"enddate"
:
"18.11.201
6
"
"enddate"
:
"18.11.201
7
"
}
}
]
]
}
}
...
@@ -44,14 +44,6 @@
...
@@ -44,14 +44,6 @@
{
{
"type"
:
"panel"
,
"type"
:
"panel"
,
"name"
:
"ufc"
"name"
:
"ufc"
},
{
"type"
:
"panel"
,
"name"
:
"mensaPlan"
},
{
"type"
:
"panel"
,
"name"
:
"lsfView"
}
}
]
]
}
}
...
...
This diff is collapsed.
Click to expand it.
config/layouts/default.json.skel
+
1
−
1
View file @
ec121172
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
},
},
{
{
"filename": "OpenSourceInfoscreen.jpg",
"filename": "OpenSourceInfoscreen.jpg",
"enddate": "18.11.201
6
"
"enddate": "18.11.201
7
"
}
}
]
]
}
}
...
...
This diff is collapsed.
Click to expand it.
panels/werbung/script.js
+
15
−
7
View file @
ec121172
...
@@ -5,13 +5,15 @@ var werbung_panel = null;
...
@@ -5,13 +5,15 @@ var werbung_panel = null;
this
.
loaded
=
function
(
panel
,
config
)
{
this
.
loaded
=
function
(
panel
,
config
)
{
werbung_panel
=
panel
;
werbung_panel
=
panel
;
werbung_config
=
config
werbung_config
=
config
;
}
}
function
setNextWerbung
()
{
function
setNextWerbung
()
{
if
(
nextWerbung
+
1
<
werbung_config
.
files
.
length
)
{
if
(
nextWerbung
+
1
<
werbung_config
.
files
.
length
)
{
console
.
log
(
"
Werbung: SETNEXT - (
"
+
nextWerbung
+
"
+ 1)
"
);
nextWerbung
+=
1
;
nextWerbung
+=
1
;
}
else
{
}
else
{
console
.
log
(
"
Werbung: SETNEXT - (0)
"
);
nextWerbung
=
0
;
nextWerbung
=
0
;
}
}
}
}
...
@@ -27,22 +29,28 @@ this.resize=function() {
...
@@ -27,22 +29,28 @@ this.resize=function() {
this
.
hide
=
function
()
{
this
.
hide
=
function
()
{
}
}
function
getUTC
()
{
return
Date
.
UTC
(
new
Date
().
getFullYear
(),
new
Date
().
getMonth
(),
new
Date
().
getDate
());
}
this
.
checkShowCondition
=
function
()
{
this
.
checkShowCondition
=
function
()
{
var
werbungOriginalNext
=
nextWerbung
;
var
werbungOriginalNext
=
nextWerbung
;
var
enddateEl
=
werbung_config
.
files
[
nextWerbung
].
enddate
.
split
(
"
.
"
);
var
enddateEl
=
werbung_config
.
files
[
nextWerbung
].
enddate
.
split
(
"
.
"
);
if
(
Date
.
now
()
<=
Date
.
UTC
(
enddateEl
[
2
],
enddateEl
[
1
],
enddateEl
[
0
]))
{
if
(
getUTC
()
<=
Date
.
UTC
(
enddateEl
[
2
],
enddateEl
[
1
],
enddateEl
[
0
]))
{
console
.
log
(
"
Werbung: CurrentWerbung =
"
+
nextWerbung
+
"
D:
"
+
getUTC
()
+
"
D2:
"
+
Date
.
UTC
(
enddateEl
[
2
],
enddateEl
[
1
],
enddateEl
[
0
]));
return
20
;
return
20
;
}
else
{
}
else
{
console
.
log
(
"
Werbung: Skipped - Out Of Date
"
);
console
.
log
(
"
Werbung: Skipped - Out Of Date
- (
"
+
nextWerbung
+
"
)
"
);
setNextWerbung
()
setNextWerbung
()
;
}
}
while
(
nextWerbung
!=
werbungOriginalNext
){
while
(
nextWerbung
!=
werbungOriginalNext
){
enddateEl
=
werbung_config
.
files
[
nextWerbung
].
enddate
.
split
(
"
.
"
);
enddateEl
=
werbung_config
.
files
[
nextWerbung
].
enddate
.
split
(
"
.
"
);
if
(
Date
.
now
()
<=
Date
.
UTC
(
enddateEl
[
2
],
enddateEl
[
1
],
enddateEl
[
0
]))
{
if
(
getUTC
()
<=
Date
.
UTC
(
enddateEl
[
2
],
enddateEl
[
1
],
enddateEl
[
0
]))
{
console
.
log
(
"
Werbung: CurrentWerbung =
"
+
nextWerbung
+
"
D:
"
+
getUTC
()
+
"
D2:
"
+
Date
.
UTC
(
enddateEl
[
2
],
enddateEl
[
1
],
enddateEl
[
0
]));
return
20
;
return
20
;
}
else
{
}
else
{
console
.
log
(
"
Werbung: Skipped - Out Of Date
"
);
console
.
log
(
"
Werbung: Skipped - Out Of Date
- (
"
+
nextWerbung
+
"
)
"
);
setNextWerbung
()
setNextWerbung
()
;
}
}
}
}
return
0
;
return
0
;
...
...
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