added header image to infoscreen
This commit is contained in:
@@ -66,17 +66,26 @@
|
||||
%>
|
||||
|
||||
<script>
|
||||
var dayOfWeek = (new Date).getDay();
|
||||
var hours = ["Closed", // Sunday
|
||||
"7 AM to 5 PM", // Monday
|
||||
"8 AM to 5 PM", // Tuesday
|
||||
"9 AM to 3 PM", // Wednesday
|
||||
"8 AM to 5 PM", // Thursday
|
||||
"9 AM to 2 PM", // Friday
|
||||
"10 AM to 2 PM"]; // Saturday
|
||||
var todaysHours = hours[dayOfWeek];
|
||||
todaysHours.innerHTML;
|
||||
</script>
|
||||
var d = new Date();
|
||||
var n = d.getDay();
|
||||
var now = d.getHours() + "." + d.getMinutes();
|
||||
var weekdays = [
|
||||
["Sunday"],
|
||||
["Monday", 9.00, 15.00],
|
||||
["Tuesday", 9.00, 15.00],
|
||||
["Wednesday", 9.00, 15.00],
|
||||
["Thursday", 9.00, 15.00],
|
||||
["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>
|
||||
<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>
|
||||
Freitag 9-12
|
||||
|
||||
Reference in New Issue
Block a user