added header image to infoscreen

This commit is contained in:
peter
2017-05-31 23:35:58 +02:00
parent d6fa4e1dc7
commit d95e1a3399

View File

@@ -52,8 +52,16 @@
<% end %> <% end %>
</div> </div>
<%
<div id="footer" style="background: red; height:100px; width:1280px; bottom:1px; position:absolute"> require 'time'
close_time = Time.parse "03:00 pm"
open_time = Time.parse "09:00 am"
current_time = Time.now
if (current_time > open_time) && (current_time < close_time)
<div id="footer" style="background: green; height:100px; width:1280px; bottom:1px; position:absolute">
else
<div id="footer" style="background: red; height:100px; width:1280px; bottom:1px; position:absolute">
end
Servicezeiten:9-15 blabla, service@fet blabla, content von lacki ;) <br> Servicezeiten:9-15 blabla, service@fet blabla, content von lacki ;) <br>
Freitag 9-12 Freitag 9-12
</div> </div>