Skip to content
Snippets Groups Projects
Commit 4de3dfc4 authored by Hotte's avatar Hotte
Browse files

FVV + lsfTiming

parent 13be377c
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
{ {
"filename": "DAT_2016_Flyer_DINA6.png", "filename": "DAT_2016_Flyer_DINA6.png",
"enddate": "18.11.2016" "enddate": "18.11.2016"
},
{
"filename": "Ankndigung_FVV.png",
"enddate": "30.11.2016"
} }
] ]
} }
......
...@@ -3,7 +3,7 @@ var lsfViewJson = null; ...@@ -3,7 +3,7 @@ var lsfViewJson = null;
this.checkShowCondition = function() { this.checkShowCondition = function() {
var date = new Date(); var date = new Date();
var roundH = date.getHours()%2 == 1? date.getHours()+1 : date.getHours(); var roundH = date.getHours()%2 == 1? date.getHours()+1 : date.getHours();
if(date.getHours() >= 8 && date.getHours() <= 18 && ((date.getHours()%2 == 1 && date.getMinutes() > 44) || (date.getHours()%2 == 0 && date.getMinutes() <= 15))){ if(date.getHours() >= 8 && date.getHours() <= 18 && ((date.getHours()%2 == 1 && date.getMinutes() >= 30) || (date.getHours()%2 == 0 && date.getMinutes() <= 15))){
for (i = 0; i < lsfViewJson.events.length; i++) { for (i = 0; i < lsfViewJson.events.length; i++) {
if(lsfViewJson.events[i].StartTime.substring(0, 2) == roundH) { if(lsfViewJson.events[i].StartTime.substring(0, 2) == roundH) {
console.log("LSF-View: Event Found"); console.log("LSF-View: Event Found");
...@@ -11,7 +11,7 @@ this.checkShowCondition = function() { ...@@ -11,7 +11,7 @@ this.checkShowCondition = function() {
} }
} }
console.log("LSF-View: No Events"); console.log("LSF-View: No Events");
return 0; return 0; //Skip Panel
} else { } else {
console.log("LSF-View: Out Of Time"); console.log("LSF-View: Out Of Time");
return 0; //Skip Panel return 0; //Skip Panel
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment