added header image to infoscreen
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user