added header image to infoscreen

This commit is contained in:
peter
2017-05-31 23:52:47 +02:00
parent bb4adf2eb7
commit d313e712f1

View File

@@ -66,16 +66,25 @@
%> %>
<script> <script>
var dayOfWeek = (new Date).getDay(); var d = new Date();
var hours = ["Closed", // Sunday var n = d.getDay();
"7 AM to 5 PM", // Monday var now = d.getHours() + "." + d.getMinutes();
"8 AM to 5 PM", // Tuesday var weekdays = [
"9 AM to 3 PM", // Wednesday ["Sunday"],
"8 AM to 5 PM", // Thursday ["Monday", 9.00, 15.00],
"9 AM to 2 PM", // Friday ["Tuesday", 9.00, 15.00],
"10 AM to 2 PM"]; // Saturday ["Wednesday", 9.00, 15.00],
var todaysHours = hours[dayOfWeek]; ["Thursday", 9.00, 15.00],
todaysHours.innerHTML; ["Friday", 9.00, 12.00],
["Saturday"] // we are closed, sorry!
];
var day = weekdays[n];
if (now > day[1] && now < day[2]) {
document.write("<div id='footer' style='background: green; height:100px; width:1280px; bottom:1px; position:absolute'>");
}
else {
document.write("<div id='footer' style='background: red; height:100px; width:1280px; bottom:1px; position:absolute'>");
}
</script> </script>
<div id='footer' style='background: green; height:100px; width:1280px; bottom:1px; position:absolute'> <div id='footer' style='background: green; height:100px; width:1280px; bottom:1px; position:absolute'>
Servicezeiten:9-15 blabla, service@fet blabla, content von lacki ;) <br> Servicezeiten:9-15 blabla, service@fet blabla, content von lacki ;) <br>